/* =========================================================
   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);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 80px rgba(0,0,0,.7);
}

/* =========================================================
   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;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(218,197,167,0.3));
}

.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%; }
.main-nav a.is-active {
  background: rgba(218,197,167,0.1);
  border-radius: var(--radius);
}

.brand a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.brand a:hover::after,
.brand 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;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.hero-media:hover img {
  filter: brightness(1.1) contrast(1.05);
  transform: scale(1.02);
}


.hero-content {
  position: relative;
  z-index: 3;
  max-width: 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);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.slider-track.logos img:hover {
  filter: drop-shadow(0 4px 8px rgba(218,197,167,0.2));
  transform: translateY(-4px);
}

.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, var(--bg), transparent);
}

.fade-edges .edge-right {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

/* =========================================================
   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 .6s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding .5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity .4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform .5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
}

.accordion[aria-open="true"] .accordion-body {
  padding: 16px 18px 18px;
  opacity: 1;
  transform: scaleY(1);
}

.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 .3s cubic-bezier(0.68, -0.55, 0.265, 1.55), 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%;
  aspect-ratio: 5/3;
  object-fit: cover;
  display: block;
  padding: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card-media-top .thumb:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* 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;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.dot:hover, .arrow:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(218,197,167,0.1);
  border-color: rgba(218,197,167,0.4);
}

.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);
}

.stars a {
  color: var(--primary);
  text-decoration: none;
  transition: box-shadow 0.3s ease;
}

.stars a:hover {
  box-shadow: 0 0 0 1px rgba(218,197,167,0.5);
  border-radius: 4px;
}

.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);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.logo-circle:hover {
  transform: scale(1.1);
  border-color: rgba(218,197,167,0.3);
  background: rgba(218,197,167,0.05);
}

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

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

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 80px rgba(0,0,0,.7);
}

/* =========================================================
   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, transform .2s ease;
  text-align: left;
  font-size: inherit;
  line-height: inherit;
}

.faq-toggle:hover {
  background: #23211E;
  border-color: #595347;
  transform: translateY(-2px);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  border-top: 1px solid var(--card-edge);
  transition: max-height .6s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding .5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity .4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform .5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform, opacity, max-height;
}

.faq-item.open .faq-body { padding: 18px; max-height: none; opacity: 1; transform: scaleY(1); }

.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: var(--bg);
  color: var(--ink);
  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: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(218,197,167,0.08);
  border: 2px solid rgba(218,197,167,0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-socials a:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(218, 197, 167, 0.4);
  border-color: var(--primary);
}

.footer-socials a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(218, 197, 167, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.footer-socials a:hover::before {
  width: 300px;
  height: 300px;
}

.footer-socials svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Footer logo */
.footer-logo .logo {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 32px rgba(218, 197, 167, 0.3);
  margin: 0 auto 1.5rem auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo .logo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(218, 197, 167, 0.4);
}

/* 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: 12px;
    border: 1px solid rgba(218,197,167,.2);
    border-radius: 8px;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
  }
  .main-nav.open { display: flex; }

  .menu-toggle { display: block; }

  .site-header { padding: 0; }

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

  .hero-content {
    padding-top: calc(60vw + var(--hero-offset));
    font-size: 1em; /* empêche le doublement des em */
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
  }

  .hero h2 {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-media {
    width: 100vw;
  }

  .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: 24px;
    margin: 22px 0;
  }

  .item.placeholder { display: none; }

  .item .content { margin: 0; }

  .item::before {
    content: attr(data-step);
    position: absolute;
    left: 4px;
    top: 4px;
    transform: none;
    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);
  }

  /* Ensure reviews section is visible on mobile */
  .reviews.reveal {
    opacity: 1;
    transform: none;
  }

  /* Adjust stars for mobile */
  .stars {
    font-size: 3rem;
    letter-spacing: 0.3rem;
  }
}

/* =========================================================
    15) vCard Styles
    ========================================================= */
.business-card-page {
  background: var(--bg);
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
}

.card-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  background: linear-gradient(135deg, rgba(14, 14, 14, 0.7) 0%, rgba(14, 14, 14, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/img/mentalisme-regard.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.card-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  color: var(--ink);
}

.card-hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary);
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
}

.business-card {
  background: transparent;
  padding: 2rem 1.5rem;
  max-width: none;
  width: 100%;
}

.card-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.card-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 32px rgba(218, 197, 167, 0.3);
  margin-bottom: 1.5rem;
}

.card-name {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 300;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
  font-family: var(--font-primary);
  text-align: center;
}

.card-title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.5rem 0;
  font-family: var(--font-primary);
  text-align: center;
}

.card-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  font-family: var(--font-primary);
  text-align: center;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--transition-medium);
  min-height: 60px;
  border: 2px solid var(--primary);
  background: rgba(218, 197, 167, 0.1);
  backdrop-filter: blur(10px);
}

.action-btn-primary {
  background: var(--primary);
  color: #000;
}

.action-btn-primary:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(218, 197, 167, 0.4);
}

.action-btn-secondary {
  background: transparent;
  color: var(--primary);
}

.action-btn-secondary:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-2px);
}

.action-btn-tertiary {
  background: rgba(218, 197, 167, 0.05);
  color: var(--ink);
  border-color: rgba(218, 197, 167, 0.3);
}

.action-btn-tertiary:hover {
  background: rgba(218, 197, 167, 0.1);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.social-section {
  padding: 2rem 1.5rem;
  background: rgba(218, 197, 167, 0.02);
  border-top: 1px solid rgba(218, 197, 167, 0.1);
}

.social-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(218, 197, 167, 0.08);
  border: 2px solid rgba(218, 197, 167, 0.2);
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-medium);
}

.social-link:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(218, 197, 167, 0.4);
  border-color: var(--primary);
}

.social-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.website-section {
  background: rgba(218, 197, 167, 0.05);
  padding: 1.5rem;
  margin: 0 1rem;
  border-radius: 16px;
  border: 1px solid rgba(218, 197, 167, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.website-info {
  flex: 1;
  text-align: center;
}

.website-url {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.website-domain {
  font-size: 0.9rem;
  color: var(--muted);
}

.website-nav {
  display: flex;
  gap: 1rem;
}

.website-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(218, 197, 167, 0.1);
  border: 1px solid rgba(218, 197, 167, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.website-btn:hover {
  background: var(--primary);
  color: #000;
}

.nav-arrow {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* vCard Mobile responsive */
@media (max-width: 768px) {
  .business-card-page {
    background: var(--card-bg);
    border: 1px solid var(--card-edge);
    box-shadow: var(--shadow);
    border-radius: 20px;
    overflow: hidden;
    margin: 24px 0;
    padding: 32px;
  }

  .card-hero {
    height: 45vh;
    min-height: 350px;
  }

  .card-hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .card-photo {
    width: 120px;
    height: 120px;
  }

  .card-name {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .card-title {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .card-subtitle {
    font-size: 0.9rem;
  }

  .action-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-height: 56px;
  }

  .btn-icon {
    width: 20px;
    height: 20px;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    width: 48px;
    height: 48px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  .website-section {
    margin: 0 0.5rem;
    padding: 1rem;
  }

  .website-nav {
    gap: 0.5rem;
  }

  .website-btn {
    width: 36px;
    height: 36px;
  }

  .nav-arrow {
    width: 16px;
    height: 16px;
  }
}

@media (min-width: 769px) {
    .business-card-page {
        max-width: 480px;
        margin: 24px auto;
        background: var(--card-bg);
        border: 1px solid var(--card-edge);
        border-radius: 20px;
        box-shadow: var(--shadow);
        overflow: hidden;
        padding: 32px;
    }

    .card-hero {
        height: 300px;
    }
}

/* vCard animations */
html {
  scroll-behavior: smooth;
}

.action-btn,
.social-link,
.website-btn {
  position: relative;
  overflow: hidden;
}

.action-btn::before,
.social-link::before,
.website-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(218, 197, 167, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.action-btn:hover::before,
.social-link:hover::before,
.website-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* =========================================================
    16) Contact Form Styles
    ========================================================= */
.form-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.tf-card {
  background: var(--card-bg);
  border: 1px solid var(--card-edge);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px;
  margin: 24px 0;
}

.form-header {
  text-align: center;
}

.form-header .logo-link {
  display: inline-block;
}

.form-header .vcard-download-btn {
  display: inline-block;
  margin-left: 16px;
  padding: 8px 12px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.2s ease;
  vertical-align: top;
}

.form-header .vcard-download-btn:hover {
  background: var(--primary);
  color: #000;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-container {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--primary);
  border-radius: 0;
  padding: 0;
}

.logo {
  display: block;
  width: 28px;
  height: auto;
}

.logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.tf-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin: 0 0 16px;
  text-align: center;
  color: var(--ink);
}

.tf-sub {
  font-size: 1.2em;
  color: var(--muted);
  text-align: center;
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-section {
  margin-bottom: 32px;
}

.form-section>.section-title {
  font-size: 1.5em;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--ink);
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--card-edge);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 1em;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Autocomplete styles */
.form-group input:-webkit-autofill,
.form-group select:-webkit-autofill,
.form-group textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  -webkit-text-fill-color: var(--ink);
}

.form-group input:-moz-autofill,
.form-group select:-moz-autofill,
.form-group textarea:-moz-autofill {
  box-shadow: 0 0 0 1000px var(--bg) inset;
  text-fill-color: var(--ink);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group .field-error {
  color: #ff6b6b;
  font-size: 0.9em;
  margin-top: 4px;
  display: none;
}

.submit-section {
  text-align: center;
  margin-top: 32px;
}

.submit-btn {
  background: var(--primary);
  color: #000;
  border: 1px solid var(--primary);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.submit-btn:hover {
  background: transparent;
  color: var(--primary);
}

.privacy-notice {
  font-size: 0.9em;
  color: var(--muted);
  margin-top: 16px;
}

.confirmation-message {
  text-align: center;
  padding: 32px;
}

.confirmation-message .tf-title {
  color: var(--primary);
}

.error-box {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid #ff6b6b;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  color: #ff6b6b;
}

.error-box ul {
  margin: 0;
  padding-left: 20px;
}

.error-box li {
  margin-bottom: 4px;
}

/* Contact Responsive */
@media (max-width: 780px) {
  .form-shell {
    padding: 0 16px;
  }

  .tf-card {
    padding: 24px;
    margin: 16px 0;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .tf-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .tf-sub {
    font-size: 1em;
  }
}

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

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

/* =========================================================
   17) Utilities / Accessibility
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


