/* =============================================================
   LE TROISIÈME ÉTAGE — Feuille de style principale
   le-troisieme-etage.fr
   ============================================================= */

/* --- Variables -------------------------------------------- */
:root {
  --rouge:       #D12817;
  --noir:        #0A0A0A;
  --gris-fonce:  #1A1A1A;
  --gris-moyen:  #6B6B6B;
  --gris-clair:  #F5F5F5;
  --blanc:       #FFFFFF;
  --bordure:     #E5E5E5;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   220ms var(--ease);

  --max-w:        1280px;
  --pad-x:        clamp(24px, 5vw, 80px);
  --pad-section:  clamp(72px, 10vw, 128px);
  --nav-h:        68px;
  --radius:       2px;
}

/* --- Reset minimal --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--noir);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Container ------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* --- Section label --------------------------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 20px;
}
.section-label--light { color: rgba(255,255,255,.45); }

/* --- Boutons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--rouge);
  color: var(--blanc);
  border-color: var(--rouge);
}
.btn--primary:hover {
  background: transparent;
  color: var(--rouge);
}
.btn--ghost {
  background: transparent;
  color: var(--noir);
  border-color: var(--noir);
}
.btn--ghost:hover {
  background: var(--noir);
  color: var(--blanc);
}
.btn--full { width: 100%; }

/* --- Fade-in (Intersection Observer) --------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Form error ------------------------------------------ */
.form__input.error { border-color: var(--rouge) !important; }

/* --- Form success (après envoi Formspree) ---------------- */
.form__success {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--blanc);
  text-align: center;
  line-height: 1.5;
  padding: 60px 20px;
}


/* =============================================================
   NAVIGATION
   ============================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-color: var(--bordure);
  box-shadow: 0 1px 24px rgba(0,0,0,.07);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav__logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--noir);
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--gris-moyen);
  position: relative;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--rouge);
  transition: width var(--transition);
}
.nav__link:hover          { color: var(--noir); }
.nav__link:hover::after   { width: 100%; }
.nav__link--cta           { color: var(--rouge); font-weight: 500; }
.nav__link--cta::after    { background: var(--rouge); }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-right: -8px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--noir);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* =============================================================
   HERO
   ============================================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top:    clamp(56px, 10vh, 100px);
  padding-bottom: clamp(56px, 10vh, 100px);
}

/* Visuel hero — placeholder remplaçable par une <img> */
.hero__visual {
  background: var(--gris-clair);
  border: 1px dashed var(--bordure);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  position: relative;
}
.hero__visual-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 96px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: #DEDEDE;
}
.hero__visual-hint {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-moyen);
}
/* Quand l'image est intégrée, remplacer le <div> par :
   <img src="links/hero-visuel.jpg" alt="…" class="hero__visual-img"> */
.hero__visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.01;
  letter-spacing: -0.035em;
  color: var(--noir);
  margin-bottom: 28px;
}
.hero__title-accent { color: var(--rouge); }

.hero__slogan {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(15px, 1.8vw, 21px);
  color: var(--gris-moyen);
  letter-spacing: 0.18em;
  font-style: italic;
  margin-bottom: 48px;
}
.hero__cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: var(--pad-x);
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--rouge) 0%, transparent 100%);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: .25; transform: scaleY(.5); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);  transform-origin: top; }
}


/* =============================================================
   STATS
   ============================================================= */
.stats {
  background: var(--gris-clair);
  padding: 56px 0;
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 40px 0 0;
  border-right: 1px solid var(--bordure);
}
.stat:last-child  { border-right: none; padding-right: 0; }
.stat:first-child { padding-left: 0; }
.stat__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--rouge);
}
.stat__label {
  font-size: 13px;
  color: var(--gris-moyen);
  line-height: 1.4;
}


/* =============================================================
   À PROPOS
   ============================================================= */
.about {
  padding: var(--pad-section) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}
.about__meta { padding-top: 6px; }

.about__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--noir);
  margin-bottom: 28px;
}
.about__text p {
  font-size: 16px;
  line-height: 1.8;
  color: #2A2A2A;
  margin-bottom: 18px;
}
.about__text p:last-child { margin-bottom: 0; }
.about__text em {
  font-style: normal;
  color: var(--rouge);
  font-weight: 500;
}
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gris-moyen);
  border: 1px solid var(--bordure);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
}
.tag:hover {
  border-color: var(--rouge);
  color: var(--rouge);
}


/* =============================================================
   OFFRES — blocs empilés
   ============================================================= */
.offers {
  background: var(--blanc);
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
  padding-top: var(--pad-section);
}
.offers__header {
  display: flex;
  flex-direction: column;
  margin-bottom: 64px;
}
.offers__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--noir);
}

/* --- Bloc offre (empilé) ---------------------------------- */
.offer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--bordure);
  /* Pas de padding global : les deux colonnes gèrent leur propre espace */
}

/* Inversé : visuel à droite, texte à gauche */
.offer-row--reverse .offer-row__visual { order: 2; }
.offer-row--reverse .offer-row__content { order: 1; }

/* Visuel placeholder */
.offer-row__visual {
  background: var(--gris-clair);
  min-height: clamp(320px, 45vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-right: 1px solid var(--bordure);
  overflow: hidden;
  position: relative;
}
.offer-row--reverse .offer-row__visual {
  border-right: none;
  border-left: 1px solid var(--bordure);
}
.offer-row__visual-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 12vw, 160px);
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--bordure);
  user-select: none;
}
.offer-row__visual-hint {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-moyen);
}
/* Remplacer le <div class="offer-row__visual"> par une <img> le moment venu :
   class="offer-row__visual-img" → s'adapte automatiquement */
.offer-row__visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenu texte */
.offer-row__content {
  padding: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.offer-row__num-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--bordure);
}
.offer-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--noir);
}
.offer-row__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gris-moyen);
  font-weight: 400;
}
.offer-row__body {
  font-size: 15px;
  line-height: 1.8;
  color: #3A3A3A;
}
.offer-row__verbatim {
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: var(--rouge);
  line-height: 1.6;
  border-left: 2px solid var(--rouge);
  padding-left: 14px;
  margin-top: 4px;
}
.offer-row__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offer-row__list li {
  font-size: 14px;
  color: var(--gris-fonce);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.offer-row__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1.5px;
  background: var(--rouge);
}
.offer-row__note {
  font-size: 12px;
  font-style: italic;
  color: var(--gris-moyen);
  border-top: 1px solid var(--bordure);
  padding-top: 16px;
}
.offer-row__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rouge);
  margin-top: 8px;
  transition: gap var(--transition);
}
.offer-row__link:hover { gap: 12px; }


/* =============================================================
   CONTACT
   ============================================================= */
.contact-section {
  background: var(--gris-fonce);
  padding: var(--pad-section) 0;
  color: var(--blanc);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--blanc);
  margin-bottom: 20px;
}
.contact__text {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.5);
  margin-bottom: 40px;
}
.contact__links { display: flex; flex-direction: column; gap: 0; }
.contact__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.contact__link:last-child { border-bottom: none; }
.contact__link:hover .contact__link-value { color: var(--rouge); }
.contact__link-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
}
.contact__link-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--blanc);
  transition: color var(--transition);
}

/* Formulaire */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: flex; gap: 14px; }
.form__row--half > * { flex: 1; }
.form__field { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.form__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.form__req { color: var(--rouge); }

.form__input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--blanc);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  transition: border-color var(--transition), background var(--transition);
}
.form__input::placeholder { color: rgba(255,255,255,.2); }
.form__input:focus {
  border-color: var(--rouge);
  background: rgba(255,255,255,.09);
}
.form__select { cursor: pointer; }
.form__select option { background: var(--gris-fonce); color: var(--blanc); }
.form__textarea { resize: vertical; min-height: 130px; }

/* Bouton dans contexte sombre */
.contact-section .btn--primary:hover {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.4);
}

.form__legal {
  font-size: 11px;
  color: rgba(255,255,255,.2);
  line-height: 1.5;
  text-align: center;
}


/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--noir);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__logo  { width: 30px; height: 30px; object-fit: contain; opacity: .85; }
.footer__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--blanc);
}
.footer__slogan {
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.28);
}
.footer__nav ul { display: flex; gap: 32px; }
.footer__nav a {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--blanc); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer__legal {
  font-size: 12px;
  color: rgba(255,255,255,.22);
}
.footer__legal a {
  color: rgba(255,255,255,.22);
  transition: color var(--transition);
}
.footer__legal a:hover { color: rgba(255,255,255,.6); }


/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablette large */
@media (max-width: 1024px) {
  /* Hero : empilé (texte au-dessus, visuel en-dessous) */
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    aspect-ratio: 16 / 7;
    min-height: 220px;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about__meta { padding-top: 0; }

  /* Offres : visuel au-dessus, texte en-dessous */
  .offer-row {
    grid-template-columns: 1fr;
  }
  .offer-row--reverse .offer-row__visual { order: 0; }
  .offer-row--reverse .offer-row__content { order: 1; }
  .offer-row__visual {
    min-height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--bordure);
  }
  .offer-row--reverse .offer-row__visual {
    border-left: none;
    border-bottom: 1px solid var(--bordure);
  }
}

/* Tablette */
@media (max-width: 768px) {

  /* Nav → mobile */
  .nav__burger { display: flex; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--blanc);
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    border-top: 1px solid var(--bordure);
    transform: translateX(100%);
    transition: transform 300ms var(--ease);
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__link {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--noir);
  }
  .nav__link::after { display: none; }
  .nav__link--cta   { color: var(--rouge); }

  /* Stats 2×2 */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  .stat { border-right: none; padding: 0; }

  /* Offres : padding réduit */
  .offer-row__content { padding: 36px 28px; }

  /* Contact empilé */
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .form__row     { flex-direction: column; }

  /* Footer empilé */
  .footer__top { flex-direction: column; gap: 28px; }
  .footer__nav ul { flex-direction: column; gap: 14px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Mobile */
@media (max-width: 480px) {
  .hero__cta-group { flex-direction: column; }
  .btn { width: 100%; }
  .stat__number { font-size: 36px; }
  .offer-row__content { padding: 28px 20px; }
  .offer-row__visual  { min-height: 200px; }
}

/* Préférence de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { transition: none; }
  .hero__scroll-line { animation: none; }
}
