/* ==========================================================================
   Brun Mouton Couverture — single page
   Palette héritée du site d'origine : ardoise (#4d535a / #737c86) et or (#dc9f27)
   ========================================================================== */

:root {
  --slate-950: #16191d;
  --slate-900: #1f2328;
  --slate-800: #2a2f35;
  --slate-700: #3a4047;
  --slate-600: #4d535a;   /* gris du logo */
  --slate-400: #737c86;
  --slate-200: #c9cdd2;
  --slate-100: #e8eaec;

  --amber-600: #c48714;
  --amber-500: #dc9f27;   /* or historique */
  --amber-300: #f2c56f;
  --amber-100: #fbf0d9;

  --cream: #f6f3ed;
  --white: #ffffff;
  --text: #22262b;
  --text-muted: #5b636c;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(22, 25, 29, .08);
  --shadow: 0 14px 40px -12px rgba(22, 25, 29, .28);
  --shadow-lg: 0 30px 70px -20px rgba(22, 25, 29, .45);

  --header-h: 84px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: var(--amber-600); text-underline-offset: 3px; }
a:hover { color: var(--amber-500); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.6rem; font-weight: 600; }
p { margin: 0 0 1em; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--amber-500); color: var(--slate-950); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em;
  font: 600 1rem/1.1 var(--font-body);
  letter-spacing: .01em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }

.btn-primary { background: var(--amber-500); color: var(--slate-950); box-shadow: 0 10px 24px -10px rgba(220, 159, 39, .7); }
.btn-primary:hover { background: var(--amber-300); color: var(--slate-950); }

.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .08); }

.btn-ghost-dark { border-color: var(--slate-200); color: var(--slate-800); }
.btn-ghost-dark:hover { border-color: var(--slate-800); color: var(--slate-900); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, height .35s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { position: relative; display: block; }
.brand img { width: auto; height: 62px; transition: opacity .35s, height .35s; }
.brand .logo-on-light { position: absolute; top: 0; left: 0; opacity: 0; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  position: relative; display: block;
  padding: 8px 12px;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: .03em;
  color: rgba(255, 255, 255, .82); text-decoration: none;
  transition: color .25s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--amber-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--white); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.nav-cta { padding: .65em 1.15em; font-size: .95rem; }

.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(22, 25, 29, .06), 0 8px 24px -16px rgba(22, 25, 29, .35);
}
.site-header.is-scrolled .brand img { height: 50px; }
.site-header.is-scrolled .brand .logo-on-dark { opacity: 0; }
.site-header.is-scrolled .brand .logo-on-light { opacity: 1; }
.site-header.is-scrolled .main-nav ul a { color: var(--slate-700); }
.site-header.is-scrolled .main-nav ul a:hover,
.site-header.is-scrolled .main-nav ul a.is-active { color: var(--slate-950); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1);
  cursor: pointer; position: relative; z-index: 2;
}
.nav-toggle .bar {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: var(--white); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, background-color .3s;
}
.site-header.is-scrolled .nav-toggle { background: var(--slate-100); }
.site-header.is-scrolled .nav-toggle .bar { background: var(--slate-900); }
.nav-toggle[aria-expanded="true"] .bar { background: var(--white); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 140px;
  color: var(--white);
  background:
    radial-gradient(900px 520px at 85% 15%, rgba(220, 159, 39, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(115, 124, 134, .35), transparent 60%),
    linear-gradient(160deg, var(--slate-800) 0%, var(--slate-950) 85%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before { /* rangs de tuiles en filigrane */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 34px, rgba(255, 255, 255, .025) 34px 36px);
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}
.hero-mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 200px; }
.hero-mountains .m-back { fill: rgba(255, 255, 255, .05); }
.hero-mountains .m-front { fill: var(--white); }

.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber-300);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--amber-500); }

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 24px;
}
.hero h1 .accent { display: block; color: var(--amber-500); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .78); max-width: 560px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.hero-trust li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; color: rgba(255, 255, 255, .72);
}
.hero-trust li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316191d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.hero-visual { position: relative; height: clamp(440px, 46vw, 560px); }
.photo {
  position: absolute; margin: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, .9);
  background: var(--slate-700);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-main { width: 58%; aspect-ratio: 4 / 5; left: 20%; top: 8%; z-index: 2; }
.photo-top { width: 36%; aspect-ratio: 4 / 5; right: 0; top: 0; transform: rotate(5deg); z-index: 1; }
.photo-bottom { width: 38%; aspect-ratio: 4 / 5; left: 0; bottom: 0; transform: rotate(-6deg); z-index: 3; }

.hero-badge {
  position: absolute; right: 2%; bottom: 6%; z-index: 4;
  max-width: 230px; padding: 16px 18px;
  background: var(--white); color: var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .88rem; line-height: 1.4;
}
.hero-badge strong {
  display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--amber-600);
  margin-bottom: 4px;
}

/* ---------- Chiffres clés ---------- */
.stats { position: relative; z-index: 2; margin-top: -70px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--slate-900); color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat { padding: 30px 26px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(255, 255, 255, .08); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--amber-500); }
.stat-num small { font-size: .5em; margin-left: 2px; }
.stat-label { font-size: .95rem; color: rgba(255, 255, 255, .72); line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.stats + .section { padding-top: clamp(64px, 8vw, 104px); }
.section-cream { background: var(--cream); }
.section-dark {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(220, 159, 39, .14), transparent 60%),
    var(--slate-900);
  color: var(--white);
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head > p:last-child { color: var(--text-muted); font-size: 1.12rem; margin-bottom: 0; }
.section-dark .section-head > p:last-child { color: rgba(255, 255, 255, .7); }
.section-head-inline {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
}
.section-head-inline > p { max-width: 440px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-600); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-dark .kicker { color: var(--amber-300); }
.about-copy .kicker, .contact-card > .kicker { color: var(--amber-600); }

/* ---------- Savoir-faire ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.service {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.service-feature { display: flex; flex-direction: column; overflow: hidden; }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--slate-200); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service-media img { transform: scale(1.06); }
.service-body { position: relative; padding: 38px 24px 26px; }
.service-body p { color: var(--text-muted); font-size: 1rem; margin: 0; }

.service-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--amber-500); color: var(--slate-950);
}
.service-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.service-feature .service-icon { position: absolute; top: -28px; left: 24px; box-shadow: 0 10px 22px -8px rgba(196, 135, 20, .7); }

.service-mini {
  grid-column: span 2;
  display: flex; align-items: center; gap: 20px; padding: 24px 26px;
  background: var(--cream); border-color: transparent; box-shadow: none;
}
.service-mini .service-icon { background: var(--slate-900); color: var(--amber-500); }
.service-mini h3 { margin-bottom: .2em; }
.service-mini p { margin: 0; color: var(--text-muted); }

/* ---------- Galerie ---------- */
.gallery-section { padding: 0 0 clamp(80px, 11vw, 140px); }
.gallery-section .section-head-inline > p { color: var(--text-muted); margin: 0; }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 250px; gap: 14px;
}
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; position: relative; background: var(--slate-200);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.gallery-item::after {
  content: attr(data-caption);
  position: absolute; inset: auto 0 0; padding: 40px 16px 14px;
  font-size: .9rem; color: var(--white); text-align: left; line-height: 1.35;
  background: linear-gradient(transparent, rgba(22, 25, 29, .85));
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Entreprise ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy p { color: var(--text-muted); }
.about-copy strong { color: var(--text); }

.about-photo { margin: 0; position: relative; }
.about-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.about-photo::before {
  content: ""; position: absolute; top: 22px; left: 22px; width: 100%; aspect-ratio: 1; z-index: -1;
  border: 3px solid var(--amber-500); border-radius: var(--radius-lg);
}
.about-photo { isolation: isolate; }
.about-photo figcaption { margin-top: 36px; font-size: .9rem; color: var(--text-muted); }

.timeline {
  list-style: none; margin: clamp(56px, 8vw, 90px) 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px;
  background: linear-gradient(90deg, var(--amber-500), var(--slate-200));
}
.timeline li { position: relative; padding-top: 38px; }
.timeline li::before {
  content: ""; position: absolute; top: 2px; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream); border: 4px solid var(--amber-500);
}
.tl-year { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--slate-900); margin-bottom: 6px; }
.tl-text { color: var(--text-muted); font-size: .98rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.pillar p { color: var(--text-muted); font-size: 1rem; }
.pillar p:last-child { margin-bottom: 0; }
.pillar strong { color: var(--text); }
.pillar-num {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--amber-600); background: var(--amber-100);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}

.certifs { margin-top: clamp(56px, 8vw, 90px); }
.certifs-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate-400); text-align: center; margin-bottom: 28px;
}
.certifs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.certifs-list li {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
}
.certifs-list img { width: 84px; height: 84px; object-fit: contain; border-radius: 10px; flex-shrink: 0; }
.certifs-list strong { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; margin-bottom: 4px; }
.certifs-list span { font-size: .92rem; color: var(--text-muted); line-height: 1.45; display: block; }

/* ---------- Engagements ---------- */
.promises {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.promises li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  transition: background-color .3s, border-color .3s, transform .35s var(--ease);
}
.promises li:hover { background: rgba(255, 255, 255, .07); border-color: rgba(220, 159, 39, .45); transform: translateY(-3px); }
.promises strong { color: var(--white); font-weight: 600; }
.promises svg {
  width: 34px; height: 34px; padding: 7px; border-radius: 50%;
  background: var(--amber-500); fill: none; stroke: var(--slate-950); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Avantages ---------- */
.tab-list {
  display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px;
  background: var(--slate-100); border-radius: 999px; margin-bottom: 36px;
}
.tab {
  font: 600 1rem/1 var(--font-body); color: var(--slate-600);
  padding: 14px 22px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.tab:hover { color: var(--slate-950); }
.tab[aria-selected="true"] { background: var(--white); color: var(--slate-950); box-shadow: var(--shadow-sm); }
.tab-panel:focus-visible { outline-offset: 8px; }
.tab-panel:not([hidden]) { animation: fade-up .45s var(--ease); }

.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.rate {
  padding: 30px 28px; border-radius: var(--radius-lg);
  background: var(--cream); display: flex; flex-direction: column;
}
.rate-value { font-family: var(--font-display); font-weight: 700; font-size: 4.2rem; line-height: 1; color: var(--slate-900); }
.rate-value small { font-size: .5em; }
.rate-name { font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--amber-600); margin: 10px 0 14px; }
.rate p { color: var(--text-muted); font-size: 1rem; margin: 0; }
.rate-hl { background: var(--slate-900); color: var(--white); box-shadow: var(--shadow); }
.rate-hl .rate-value { color: var(--amber-500); }
.rate-hl .rate-name { color: var(--amber-300); }
.rate-hl p { color: rgba(255, 255, 255, .75); }

.conditions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.condition { border: 1px solid var(--slate-100); border-radius: var(--radius-lg); padding: 26px 26px 18px; }
.condition h3 { font-size: 1.35rem; }
.condition ul, .more ul, .checklist { list-style: none; padding: 0; margin: 0; }
.condition li, .more li, .checklist li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--text-muted); font-size: 1rem; line-height: 1.5;
}
.condition li::before, .more li::before, .checklist li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--amber-500); transform: rotate(45deg);
}
.condition strong, .checklist strong { color: var(--text); }

.more {
  margin-top: 22px; border-radius: var(--radius); background: var(--cream);
  padding: 0 24px;
}
.more summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "+"; font-size: 1.6rem; line-height: 1; color: var(--amber-600); transition: transform .3s var(--ease);
}
.more[open] summary::after { transform: rotate(45deg); }
.more ul { padding-bottom: 14px; }

.aides { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.aides h3 { font-size: 1.45rem; margin-top: 30px; }
.rge-callout {
  display: flex; align-items: center; gap: 18px;
  background: var(--amber-100); border-radius: var(--radius); padding: 18px;
}
.rge-callout img { width: 72px; height: 72px; border-radius: 10px; flex-shrink: 0; }
.rge-callout p { margin: 0; font-size: 1rem; line-height: 1.5; }
.note {
  margin-top: 20px; font-size: .96rem; color: var(--text-muted);
  border-left: 3px solid var(--amber-500); padding: 4px 0 4px 16px;
}
.note strong { color: var(--text); }

.table-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption {
  caption-side: top; text-align: left; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2;
  background: var(--slate-900); color: var(--white);
}
th, td { padding: 15px 24px; text-align: left; border-bottom: 1px solid var(--slate-100); }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-400); font-weight: 600; background: var(--cream); }
td:last-child { font-weight: 600; color: var(--slate-900); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfaf6; }

/* ---------- Contact ---------- */
.contact-section {
  background:
    linear-gradient(180deg, var(--cream) 0 50%, var(--slate-900) 50% 100%);
}
.contact {
  display: grid; grid-template-columns: 1fr 1.15fr;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--white);
}
.contact-card { padding: clamp(32px, 5vw, 56px); }
.contact-card > p { color: var(--text-muted); }

.contact-phone {
  display: inline-flex; align-items: center; gap: 14px; margin: 10px 0 24px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1;
  color: var(--slate-900); text-decoration: none;
}
.contact-phone svg { width: 50px; height: 50px; padding: 12px; border-radius: 50%; background: var(--amber-500); fill: var(--slate-950); transition: transform .3s var(--ease); }
.contact-phone:hover { color: var(--amber-600); }
.contact-phone:hover svg { transform: rotate(-12deg) scale(1.05); }

.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; }
.contact-list svg { width: 24px; height: 24px; margin-top: 1px; fill: none; stroke: var(--amber-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: var(--text); text-decoration-color: var(--amber-500); }
.contact-list a:hover { color: var(--amber-600); }

.map { position: relative; min-height: 460px; background: var(--slate-800); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 32px; color: rgba(255, 255, 255, .8);
  background:
    radial-gradient(420px 260px at 50% 40%, rgba(220, 159, 39, .2), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 22px),
    var(--slate-800);
}
.map-placeholder > svg { width: 54px; height: 54px; fill: var(--amber-500); stroke: var(--slate-900); stroke-width: 1.2; }
.map-placeholder p { margin: 0; font-size: 1.05rem; }
.map-placeholder strong { color: var(--white); font-family: var(--font-display); font-size: 1.8rem; }
.map-placeholder small { color: rgba(255, 255, 255, .5); max-width: 280px; line-height: 1.4; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--slate-900); color: rgba(255, 255, 255, .7); padding: 20px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start;
  padding-top: 40px; padding-bottom: 40px;
}
.footer-brand img { height: 74px; width: auto; opacity: .92; }
.slogan { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--amber-300); margin: 14px 0 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: var(--amber-300); }
.footer-contact { display: grid; gap: 8px; }
.footer-contact a:first-child { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; padding-bottom: 26px; font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* ---------- Visionneuse ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 24px; background: rgba(16, 18, 21, .94);
  animation: fade .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-height: 78vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255, 255, 255, .8); text-align: center; }
.lightbox button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: var(--white); font-size: 2rem; line-height: 1;
  transition: background-color .25s;
}
.lightbox button:hover { background: var(--amber-500); color: var(--slate-950); }
.lb-close { position: absolute; top: 18px; right: 18px; }

/* ---------- Bouton d'appel flottant (mobile) ---------- */
.fab-call {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: none; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--amber-500); box-shadow: 0 12px 30px -8px rgba(196, 135, 20, .8);
}
.fab-call svg { width: 26px; height: 26px; fill: var(--slate-950); }

/* ---------- Animations ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .hero-copy > * { animation: fade-up .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .hero-visual > * { animation: fade-up 1s var(--ease) both; }
.js .hero-visual > :nth-child(2) { animation-delay: .15s; }
.js .hero-visual > :nth-child(3) { animation-delay: .3s; }
.js .hero-visual > :nth-child(4) { animation-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service-mini { grid-column: span 1; }
  .promises { grid-template-columns: repeat(2, 1fr); }

  /* galerie en carrousel horizontal */
  .gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px;
    scrollbar-width: thin;
  }
  .gallery li { flex: 0 0 clamp(220px, 34vw, 300px); height: clamp(280px, 42vw, 380px); scroll-snap-align: start; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .brand img { height: 52px; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 36px;
    background: var(--slate-950);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 6px; }
  .main-nav ul a, .site-header.is-scrolled .main-nav ul a { font-size: 2rem; color: rgba(255, 255, 255, .85); }
  .main-nav ul a.is-active, .site-header.is-scrolled .main-nav ul a.is-active { color: var(--white); }
  .nav-cta { font-size: 1.1rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open .site-header .brand { z-index: 2; }
  body.nav-open .site-header .brand .logo-on-dark { opacity: 1; }
  body.nav-open .site-header .brand .logo-on-light { opacity: 0; }

  .hero { min-height: 0; padding-bottom: 130px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: clamp(380px, 80vw, 520px); max-width: 560px; width: 100%; margin-inline: auto; }


  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; }
  .pillars, .certifs-list, .rates, .conditions { grid-template-columns: 1fr; }
  .aides { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .fab-call { display: grid; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .hero-badge { right: 0; bottom: -2%; max-width: 200px; padding: 12px 14px; font-size: .8rem; }
  .hero-badge strong { font-size: 1.6rem; }
  .services { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 22px 18px; }
  .stat, .stat:first-child { border-left: 0; }
  .stat + .stat { border-top: 1px solid rgba(255, 255, 255, .08); }
  .stat-num { font-size: 2.6rem; }
  .stat-label { font-size: .86rem; }

  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 9px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--amber-500), var(--slate-200)); }
  .timeline li { padding: 0 0 26px 40px; }
  .timeline li::before { top: 4px; }
  .tab-list { display: flex; border-radius: var(--radius); }
  .tab { flex: 1 1 auto; border-radius: 10px; padding: 12px 14px; }
  th, td { padding: 13px 16px; }
  caption { padding: 16px; }
  td:last-child { white-space: normal; }
  .rge-callout { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 16px 24px; }
  .lb-prev, .lb-next { position: absolute; bottom: 24px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lightbox img { max-height: 70vh; }
}

.js-email { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.js-email:hover { color: var(--amber-500); }

/* Mentions légales */
.legal-link { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .75); cursor: pointer; text-decoration: none; }
.legal-link:hover { color: var(--amber-300); }
.legal-modal { border: 0; border-radius: var(--radius); padding: 32px 28px; width: min(640px, calc(100% - 32px)); max-height: 86vh; background: var(--white); color: var(--slate-800); box-shadow: var(--shadow-lg); }
.legal-modal::backdrop { background: rgba(15, 18, 22, .7); }
.legal-modal h2 { margin-top: 0; }
.legal-modal h3 { margin: 1.2em 0 .3em; }
.legal-modal a { color: inherit; text-decoration: underline; }
.legal-note { font-size: .9rem; opacity: .8; }
.legal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--slate-200); color: var(--slate-900); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.legal-close:hover { background: var(--amber-500); }
