/* =========================================================================
   COMPOSANTS UI NEUTRES — bâtis sur styles/tokens.css
   Hero, nav, cartes services, « pourquoi choisir », bloc technologies (sombre),
   FAQ, témoignages, CTA, footer. Contenu = placeholders (aucune marque source).
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-700); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--color-copper); outline-offset: 3px; border-radius: var(--radius-sm); }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--color-charcoal); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-lg) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout ---- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--container-pad);
}
.section { padding-block: var(--section-py); }
@media (min-width: 64rem) { .section { padding-block: var(--section-py-lg); } }
.section--cream    { background: var(--color-cream); }
.section--dark     { background: var(--grad-dark); color: var(--text-on-dark); }
.section--brand    { background: var(--color-primary-500); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--brand h1, .section--brand h2, .section--brand h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  font-size: var(--text-xs); font-weight: var(--fw-semibold);
  color: var(--color-copper);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--color-copper); }
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--text-3xl); font-weight: var(--fw-bold); }
@media (min-width: 48rem) { .section-head h2 { font-size: var(--text-4xl); } }
.section-head p { color: var(--text-muted); font-size: var(--text-lg); }
.section--dark .section-head p, .section--brand .section-head p { color: rgba(255,255,255,.82); }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  padding: .85rem 1.6rem; border-radius: var(--radius-full);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--duration-base) var(--ease-standard),
              background-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.btn--primary { background: var(--color-copper); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: #b3854f; }
.btn--dark { background: var(--color-charcoal); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); background: #1c1714; }
.btn--outline { background: transparent; color: var(--text); border-color: var(--color-primary-300); }
.btn--outline:hover { border-color: var(--color-copper); color: var(--color-copper); }
.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(var(--overlay-blur)); }
.btn--ghost-light:hover { background: #fff; color: var(--color-charcoal); }
.btn-group { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- En-tête / Nav ---- */
/* En-tête SOLIDE par défaut (pages internes) */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  background: rgba(250, 247, 244, .9);
  backdrop-filter: saturate(160%) blur(var(--backdrop-blur));
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-lg); color: var(--color-charcoal); }
.brand__mark {
  width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: var(--radius-full); background: var(--color-copper); color: #fff;
  font-family: var(--font-display); font-weight: var(--fw-bold);
}
.brand small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; opacity: .8; }

.nav__menu { display: none; list-style: none; margin: 0; padding: 0; gap: .3rem; align-items: center; }
.nav__menu > li { position: relative; }
.nav__menu a { padding: .5rem .85rem; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--color-charcoal-light); transition: var(--transition-color); }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--color-copper); }
.nav__cta { margin-left: .4rem; }
.nav__cta a[aria-current="page"] { color: #fff; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--color-charcoal);
  color: #fff; border: 1px solid var(--color-charcoal); border-radius: var(--radius-full);
  padding: .5rem .9rem; font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
}

/* Variante TRANSPARENTE sur le hero (accueil) */
.site-header--overlay { background: transparent; backdrop-filter: none; border-bottom-color: transparent; box-shadow: none; }
.site-header--overlay .brand { color: #fff; }
.site-header--overlay .nav__menu a { color: rgba(255,255,255,.92); }
.site-header--overlay .nav__menu a:hover { color: #fff; }
.site-header--overlay .nav__toggle { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); backdrop-filter: blur(var(--overlay-blur)); }
.site-header--overlay.is-scrolled {
  background: rgba(250, 247, 244, .9);
  backdrop-filter: saturate(160%) blur(var(--backdrop-blur));
  border-bottom-color: var(--border); box-shadow: var(--shadow-sm);
}
.site-header--overlay.is-scrolled .brand { color: var(--color-charcoal); }
.site-header--overlay.is-scrolled .nav__menu a { color: var(--color-charcoal-light); }
.site-header--overlay.is-scrolled .nav__menu a:hover { color: var(--color-copper); }
.site-header--overlay.is-scrolled .nav__toggle { background: var(--color-charcoal); border-color: var(--color-charcoal); }

/* Sous-menu déroulant « Spécialités » */
.nav__drop { position: relative; }
.nav__drop > summary { list-style: none; cursor: pointer; padding: .5rem .85rem; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--color-charcoal-light); display: inline-flex; align-items: center; gap: .3rem; }
.nav__drop > summary::-webkit-details-marker { display: none; }
.nav__drop > summary::after { content: "▾"; font-size: .8em; color: var(--color-copper); }
.site-header--overlay .nav__drop > summary { color: rgba(255,255,255,.92); }
.site-header--overlay.is-scrolled .nav__drop > summary { color: var(--color-charcoal-light); }
.nav__drop[open] > summary { color: var(--color-copper); }
.nav__drop ul { position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; list-style: none; margin: 0; padding: .4rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.nav__drop ul a { display: block; color: var(--color-charcoal-light); border-radius: var(--radius-md); }
.nav__drop ul a:hover { background: var(--color-cream); color: var(--color-copper); }
@media (min-width: 64rem) {
  .nav__menu { display: flex; }
  .nav__toggle { display: none; }
}
/* Menu mobile déroulant */
.nav__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-cream); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg); padding: .5rem 1.2rem 1.2rem;
  max-height: 0; overflow: hidden; transition: max-height var(--duration-base) var(--ease-standard);
}
.nav__panel.is-open { max-height: 30rem; }
.nav__panel ul { list-style: none; margin: 0; padding: 0; }
.nav__panel a { display: block; padding: .8rem .2rem; color: var(--color-charcoal); border-bottom: 1px solid var(--border); font-weight: 500; }
@media (min-width: 64rem) { .nav__panel { display: none; } }

/* ---- Hero ---- */
.hero { position: relative; min-height: var(--hero-height); display: grid; align-items: center; overflow: hidden; color: #fff; }
@media (min-width: 48rem) { .hero { min-height: var(--hero-height-lg); } }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media > * { width: 100%; height: 100%; object-fit: cover; }
.hero__content {
  padding-block: 7rem 4rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero .eyebrow { color: #f0dcc7; justify-content: center; }
.hero .eyebrow::before { background: #f0dcc7; }
.hero h1 { color: #fff; font-weight: var(--fw-bold); font-size: var(--text-4xl); max-width: 20ch; margin-inline: auto; }
@media (min-width: 40rem) { .hero h1 { font-size: var(--text-5xl); } }
@media (min-width: 64rem) { .hero h1 { font-size: var(--text-6xl); } }
.hero__sub { font-size: var(--text-lg); color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 2rem; }
.hero .btn-group { justify-content: center; }

/* ---- Grille de cartes ---- */
.grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.card__icon {
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: var(--radius-lg); background: var(--color-primary-100);
  color: var(--color-primary-700); margin-bottom: 1.2rem;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: var(--text-xl); font-weight: var(--fw-semibold); }
.card p { color: var(--text-muted); margin-bottom: 1.2rem; }
.card__link { color: var(--color-copper); font-weight: var(--fw-semibold); font-size: var(--text-sm); display: inline-flex; align-items: center; gap: .4rem; transition: gap var(--duration-base) var(--ease-standard); }
.card:hover .card__link { gap: .8rem; }

/* Carte média (image placeholder) */
.media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--color-primary-100); }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Split (intro / à propos) */
.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 64rem) { .split { grid-template-columns: 1fr 1fr; } .split--media-first .split__media { order: -1; } }

/* Liste bénéfices */
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.benefits li { display: flex; gap: .9rem; align-items: flex-start; }
.benefits .b-ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--color-copper); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.section--dark .b-ic { background: var(--color-copper); }

/* Bloc technologies (cartes verre en section sombre) */
.tech-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-xl); padding: 1.8rem; backdrop-filter: blur(var(--backdrop-blur)); }
.tech-card h3 { font-size: var(--text-lg); font-weight: var(--fw-semibold); }
.tech-card p { color: rgba(255,255,255,.75); margin: 0; font-size: var(--text-sm); }
.tech-card .card__icon { background: rgba(196,149,106,.2); color: #e7c8a8; }

/* Chiffres clés */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: var(--fw-bold); color: var(--color-copper); }
.stat__label { font-size: var(--text-sm); color: var(--text-muted); }
.section--dark .stat__label, .section--brand .stat__label { color: rgba(255,255,255,.8); }

/* FAQ */
.faq { max-width: 48rem; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-xl); background: #fff; margin-bottom: .9rem; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; font-weight: var(--fw-semibold); color: var(--text); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--color-copper); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }

/* Témoignages */
.quote { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-lg); }
.quote__stars { color: var(--color-copper); letter-spacing: .15em; margin-bottom: .8rem; }
.quote p { font-style: italic; color: var(--text); }
.quote__author { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.quote__avatar { width: 46px; height: 46px; border-radius: var(--radius-full); background: var(--color-primary-200); overflow: hidden; flex: 0 0 auto; }
.quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote__name { font-weight: var(--fw-semibold); font-size: var(--text-sm); }
.quote__role { font-size: var(--text-xs); color: var(--text-muted); }

/* CTA band */
.cta { text-align: center; }
.cta h2 { font-size: var(--text-3xl); }
@media (min-width: 48rem) { .cta h2 { font-size: var(--text-4xl); } }

/* Footer */
.site-footer { background: var(--grad-dark); color: rgba(255,255,255,.8); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h3 { font-family: var(--font-sans); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--color-copper); }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); font-size: var(--text-sm); color: rgba(255,255,255,.55); }
