/* =========================================================
   0) Variables & Fonts
   ========================================================= */
:root {
  --primary: #dac5a7;
  --bg: #0e0e0e;
  --ink: #dac5a7;
  --muted: #b9a78f;
  --card-edge: #dac5a726;
  --card-bg: #dac5a70d;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 1px;
  --gap: 28px;
  --max: 90vw;
  --header-h: 74px;
  --reveal-duration: 600ms;
  --reveal-translateY: 16px;
  --header-h: 64px;           /* hauteur visuelle du header (garde ta valeur) */
  --hero-offset: 45px;        /* distance fixe voulue sous le haut de page */
}

@font-face {
  font-family: 'Gambetta';
  src: url('../assets/fonts/Gambetta-VariableItalic.woff2') format('woff2-variations');
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/Satoshi-Variable.woff2') format('woff2'),
       url('../assets/fonts/Satoshi-Variable.woff') format('woff');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   1) Reset & Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Satoshi', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.04em;
  font-weight: 100;
  line-height: 1.6;
  padding-top: calc(var(--header-h) + 10px);
}

button, input, select, textarea { font-family: inherit; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { text-decoration: underline; }

/* Typo quick adjustments (présentes dans la feuille initiale) */
p, li { font-size: 1.3em; }
h2 { font-weight: 100; }
h3 { font-weight: 100; font-family: 'Satoshi'; }

/* =========================================================
   2) Structure Commune (layout, utilitaires)
   ========================================================= */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 24px 0; }
.section-full { padding: 0; }

.section-title {
  font-size: clamp(1.8rem, 1.1rem + 2vw, 2.8rem);
  margin: 0 0 18px;
}

.muted { color: var(--muted); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =========================================================
   3) Header (site-header, nav, brand, langue, burger)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 30px 0;
}

.nav-shell {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(14,14,14,.4);
  border: 1px solid rgba(218,197,167,.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  backdrop-filter: blur(30px);
  background-color: var(--token-81ab93ff-d515-4aca-b63b-24f83b57a3ab, rgba(218, 197, 167, 0.05));
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .95rem;
  opacity: .9;
}

.lang-switch a { padding: 6px 6px; border-radius: 4px; }
.lang-switch a[aria-current="true"] { text-decoration: underline; }

/* Logo dans la barre (aspect monogramme beige sur fond sombre) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;              /* espace entre logo et 1er item de menu */
}

.logo {
  display: inline-grid;
  place-items: center;
  width: 44px;            /* zone cliquable confortable */
  height: 44px;
  background: transparent;/* pas de pastille */
  color: var(--primary);  /* le SVG hérite via currentColor */
  border-radius: 0;       /* pas d'arrondi visible */
  padding: 0;
}

.logo svg {
  display: block;
  width: 28px;            /* taille visuelle du monogramme */
  height: auto;
}

/* Optionnel : léger décalage optique vertical si besoin */
.nav-bar .brand { padding-left: 2px; }

.main-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: medium;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  opacity: .9;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: opacity .2s, background .2s;
}

/* Soulignement animé */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }

.cta {
  display: inline-block;
  border: 1px solid var(--primary);
  padding: .6rem 1rem;
  border-radius: 999px;
  transition: all .2s ease;
  background: var(--primary);
  color: #000;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .3s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   4) Hero
   ========================================================= */
.hero{
  position: relative;
  overflow: hidden;
  /* on “mord” sous le header de (header - offset) */
  margin-top: calc(-1 * (var(--header-h) - var(--hero-offset)));
  padding-top: 0;
  padding-bottom: 12px;
  min-height: calc(100vh - var(--header-h) - 24px);
}

/* Image centrée, ratio 4:3 comme le modèle */
.hero-media{
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1172px, calc(100vw - 96px));
  aspect-ratio: 4.6 / 3;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.hero-content {
  position: relative;
  z-index: 3;
  max-width: min(1172px, calc(100vw - 96px));
  margin: 0 auto;
  padding: 20px;
  /* 4:3 => 0.75 * largeur + petit espace + l’offset pour ne pas masquer l’image */
  padding-top: calc(min(1172px, calc(100vw - 96px)) * 0.6 + var(--hero-offset) + 16px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 2em;
  text-align: center;
}

.hero h1 {
  font-family: 'Satoshi', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 4.5em;
  line-height: 1.04;
  margin: 0;
}

.hero h2 {
  font-family: 'Gambetta', serif;
  font-style: italic;
  font-weight: 300;
  font-optical-sizing: auto;
  font-variation-settings: "wght" 280;
  font-size: 4em;
  line-height: 1.06;
  margin: .2rem 0 0;
}

.hero p {
  font-size: 1.1em;
  line-height: 1.4;
  max-width: 900px;
  margin: .6rem auto 0;
  opacity: .9;
}

/* =========================================================
   5) Media (Vidéo sous le hero)
   ========================================================= */
.video-embed-full {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.video-embed .ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: #000;
}

.video-embed-full .ratio {
  border-radius: 0;
  border: 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   6) Références (carrousel logos)
   ========================================================= */
#references { width: 70%; padding:80px 0}

.carousel { position: relative; overflow: hidden; }

.slider-track {
  display: flex;
  gap: 120px;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
  align-items: center;
}

.slider-track.logos img {
  display: block;
  line-height: 0;
  height: clamp(40px, 7vw, 72px);
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 0 transparent);
}

.fade-edges .edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}

.fade-edges .edge-left {
  left: 0;
  background: linear-gradient(90deg, rgba(14,14,14,1), rgba(14,14,14,0));
}

.fade-edges .edge-right {
  right: 0;
  background: linear-gradient(-90deg, rgba(14,14,14,1), rgba(14,14,14,0));
}

/* =========================================================
   7) Services & Magie (accordéons cartes)
   ========================================================= */
/* Grille des cartes */
.accordion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: flex-start;
}

.accordion-grid > .card {
  width: calc((100% - (var(--gap) * 2)) / 3);
}

/* Cartes média top */
.card-media-top .thumb {
  border-bottom: 1px solid var(--card-edge);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

/* Intention initiale (padding 0) — conservée pour l’ordre, sera écrasée plus bas par la règle plus spécifique/plus tardive */
.card-media-top .thumb img { padding: 0; }

/* Composition flex des cartes accordéon */
.accordion.card {
  display: flex;
  flex-direction: column;
}
.accordion.card .accordion-body { flex-grow: 0; }
.accordion.card .accordion-toggle { flex-shrink: 0; }

/* Allow full subtitle text */
.accordion .accordion-toggle .muted { display: block; overflow: visible; }

/* Titre/texte dans le toggle */
.accordion .accordion-toggle > div{ flex:1; text-align:left }
.accordion .accordion-toggle h1,
.accordion .accordion-toggle h2,
.accordion .accordion-toggle h3,
.accordion .accordion-toggle .muted{ 
  margin: 0;
  text-align: left;
  min-height: 30px;
}

.accordion .accordion-toggle h3 {
  text-transform: uppercase;
  font-weight: 100;
  font-size: 2em;
  line-height: 1.1;
}

/* Bouton toggle */
.accordion .accordion-toggle {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: #181716;
  border: 0;
  color: var(--ink);
  padding: 16px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  cursor: pointer;
  transition: background .2s ease;
  text-align: left;
}

.accordion .accordion-toggle > div {
  flex: 1;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}

.accordion .accordion-toggle:hover {
  background: #23211E;
  border-color: #595347; 
}

/* Corps de l’accordéon */
.accordion .accordion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  border-top: 1px solid var(--card-edge);
  transition: max-height .5s ease, padding .35s ease;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.accordion[aria-open="true"] .accordion-body {
  padding: 16px 18px 18px;
}

.accordion-head { margin: 0 0 20px 0; }

/* Icône (chevron/plus) partagée */
.accordion .chev,
.faq-toggle .plus {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #383838;
  display: inline-block;
  flex: 0 0 32px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  font-size: 0;
}

.accordion .chev::before,
.accordion .chev::after,
.faq-toggle .plus::before,
.faq-toggle .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform .25s ease, opacity .25s ease;
}

.accordion .chev::after,
.faq-toggle .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion .accordion-toggle:hover .chev,
.faq-toggle:hover .plus {
  background: rgba(218,197,167,.06);
  border-color: rgba(218,197,167,.35);
}

.accordion[aria-open="true"] .chev,
.faq-item.open .plus {
  transform: rotate(45deg);
}

/* Ajustements de média dans cartes (règle tardive qui l’emporte) */
.card-media-top .thumb img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  padding: 20px;
}

/* Désactiver soulignement dans ces scopes interactifs */
.accordion a:hover { text-decoration: none; }
.accordion.card:hover .accordion-toggle { text-decoration: none; }

/* =========================================================
   8) Processus (timeline 4 étapes)
   ========================================================= */
:root { --rail-gap: 40px; }

.process .kicker {
  color: var(--primary);
  letter-spacing: .14em;
  margin: 0 0 8px;
  text-transform: uppercase;
  text-align: center;
}

.process-title { font-weight: 400; text-align: center; margin: 0; }
.process-title span { display: block; font-style: italic; }

.process-lead {
  text-align: center;
  font-size: 1.5em;
  opacity: .9;
  max-width: 500px;
  margin: 10px auto 36px;
}

.rail-top {
  position: relative;
  height: 60px; /* plus d'espace entre la flèche et le premier point */
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.rail-top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(40px + var(--rail-gap)); /* cercle flèche (40px) + gap */
  bottom: -26px;
  width: 2px;
  background: #2b2b2b;
  transform: translateX(-50%);
}

.timeline3 .trow:last-child .rail::after {
  display: none;
}

.timeline3 { position: relative; }
.timeline3 h3 {
  font-size: 1.4em;
}
.timeline3::before { display: none; }

.trow {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;; /* colonne centrale = rail */
  gap: 40px 0;
}

.item { display: flex; align-items: center; }

.item .content { padding: 24px 26px; }

.item.placeholder { min-height: 120px; }

.rail {
  position: relative;
  display: grid;
  align-items: stretch;
  justify-items: center;
}

/* Segments de rail au-dessus et au-dessous du point pour créer l'espace (gap) */
.rail::before,
.rail::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  background: #2b2b2b;
  transform: translateX(-50%);
}

.rail::before { top: 0; height: calc(50% - var(--rail-gap)); }
.rail::after  { bottom: 0; height: calc(50% - var(--rail-gap)); }

.dot, .arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: rgba(218,197,167,0.05);
  border: 1px solid #3a3a3a;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 0 3px var(--bg);
  z-index: 1;
}

.arm { display: none; }
.arm-right { left: 50%; }
.arm-left { right: 50%; }

/* =========================================================
   9) Avis Clients (reviews)
   ========================================================= */
.giant-title {
  font-size: clamp(3.4rem, 3rem + 3vw, 6.2rem);
  text-align: center;
  font-weight: 300;
  line-height: 1.1;
}
.giant-title .em { font-family: Gambetta; font-style: italic; }

.center { text-align: center; }

.lead {
  opacity: .9;
  max-width: 800px;
  margin: 4px auto 12px;
}

.stars {
  font-size: 5rem;
  letter-spacing: .5rem;
  text-align: center;
  margin: 8px 0 4px;
  color: var(--primary);
}

.small { opacity: .9; }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.review-card { padding: 24px; }

.review-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.logo-circle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--card-edge);
  display: grid;
  place-items: center;
  background: #151515;
  color: var(--primary);
}

/* =========================================================
   10) À propos
   ========================================================= */
.about-card { padding: 24px; }

.about-card .about-text {
  display: grid;
  gap: 18px;
}

/* =========================================================
   11) FAQ
   ========================================================= */
.faq .faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: start;
}
.faq-title {
  font-family: Gambetta;
}
.faq .faq-title {
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  margin: .2rem 0 0;
}

.faq .faq-right {
  display: grid;
  gap: 16px;
}

.faq-item { 
  overflow: hidden; 
  font-size:1.5em;
}

.faq-toggle {
  width: 100%;
  background: #181716;
  color: var(--ink);
  padding: 18px;
  border: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s ease;
  text-align: left;
  font-size: inherit;
  line-height: inherit;
}

.faq-toggle:hover { 
  background: #23211E;
  border-color: #595347; }

.faq-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  border-top: 1px solid var(--card-edge);
  transition: max-height .45s ease, padding .3s ease;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.faq-item.open .faq-body { padding: 18px; max-height: none; }

.faq-body p { margin: 0; font-size: 0.9em }

/* Pas de soulignement hover dans la FAQ */
.faq a:hover { text-decoration: none; }

/* =========================================================
   12) Footer
   ========================================================= */
.site-footer {
  background: #111;
  color: #dac5a7;
  text-align: center;
  padding: 2rem 1rem;
}

.footer-logo img {
  height: 48px;
  margin: 0 auto 1.5rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(218,197,167,0.05);
  border: 1px solid rgba(218,197,167,0.15);
  backdrop-filter: blur(10px);
  transition: background .3s, transform .2s;
}

.footer-socials a:hover {
  background: rgba(218,197,167,0.15);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 24px;
  height: 24px;
  fill: #dac5a7;
}

/* Footer logo inline SVG : même hauteur que l'ancienne image */
.footer-logo svg {
  display: block;
  height: 48px;     /* même rendu que .footer-logo img { height: 48px; } */
  width: auto;
}

/* Optionnel : si tu veux renforcer la couleur au cas où */
.site-footer .footer-logo { color: var(--primary); } /* déjà la couleur footers globale, mais explicite */

/* =========================================================
   13) Animations Générales
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-translateY));
  transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) ease;
}

/* =========================================================
   14) Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .accordion-grid > .card { width: calc((100% - var(--gap)) / 2); }
  .reviews-grid { grid-template-columns: 1fr; }
  .faq .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .hero { min-height: 62vh; }
}

@media (max-width: 780px) {
  .accordion-grid > .card { width: 100%; }

  .main-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 62px;
    background: #121212;
    backdrop-filter: blur(10px);
    padding: 16px;
    border: 1px solid rgba(218,197,167,.2);
    border-radius: 8px;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
  }
  .main-nav.open { display: flex; }

  .menu-toggle { display: block; }

  .main-nav a { padding: 12px 10px; border-radius: 6px; text-align: center; }
  .main-nav a.cta { margin-top: 8px; width: 100%; }

  .faq .faq-title { font-size: 2.2rem; }

  /* Mobile timeline */
  .timeline3::before { left: 24px; }

  .trow {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 6px 0;
  }

  .rail { display: none; }

  .item {
    position: relative;
    padding-left: 68px;
    margin: 22px 0;
  }

  .item.placeholder { display: none; }

  .item .content { margin: 0; }

  .item::before {
    content: attr(data-step);
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #111;
    border: 1px solid #3a3a3a;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    box-shadow: 0 0 0 3px var(--bg);
  }
}

@media (max-width: 680px) {
  .hero { min-height: 68vh; }
}

@media (min-width: 900px) {
  .logo-img { height: 40px; }
}
