/* ============ GPN Sàrl — Carrelage premium ============ */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}

:root {
  --ivory: #F2EDE4;
  --paper: #FAF7F0;
  --ink: #16171B;
  --ink-2: #212228;
  --ink-3: #2C2D34;
  --terra: #C2593B;
  --terra-deep: #A9472B;
  --stone: #857D6E;
  --line: rgba(22, 23, 27, .14);
  --line-soft: rgba(22, 23, 27, .08);
  --line-inv: rgba(242, 237, 228, .16);
  --font: 'Archivo', system-ui, sans-serif;
  --radius: 2px;
  --pad-section: clamp(72px, 10vw, 136px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }
em { font-style: normal; }

.container { width: min(1240px, 100% - clamp(40px, 8vw, 128px)); margin-inline: auto; }

/* ---------- Typo ---------- */
h1, h2, h3, .display {
  font-weight: 740;
  font-stretch: 118%;
  line-height: 1.04;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 em, h2 em, .display em { color: var(--terra); }
h2 { font-size: clamp(30px, 4.6vw, 58px); }
h3 { font-size: clamp(19px, 2vw, 24px); line-height: 1.15; }
p { max-width: 62ch; }

.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--stone);
  margin-bottom: 22px; max-width: none;
}
.section-label .tick { width: 12px; height: 12px; border: 2px solid var(--terra); display: inline-block; }
.dark .section-label { color: rgba(242,237,228,.55); }

.lead { font-size: clamp(17px, 1.5vw, 20px); color: rgba(22,23,27,.74); }
.dark .lead { color: rgba(242,237,228,.72); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 650; font-size: 15px; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 15px 28px; min-height: 48px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost, .cta-final .btn-ghost { border-color: var(--line-inv); color: var(--ivory); }
.dark .btn-ghost:hover, .cta-final .btn-ghost:hover { border-color: var(--ivory); }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-sm { padding: 11px 20px; min-height: 40px; font-size: 13px; }

/* ---------- Skip ---------- */
.skip-link {
  position: absolute; left: -9999px; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, transform .3s ease;
}
.site-header.scrolled {
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.header-inner {
  width: min(1360px, 100% - 40px); margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; grid-template-columns: repeat(2, 9px); gap: 2px;
}
.brand-mark span { width: 9px; height: 9px; background: var(--ink); }
.brand-mark span.terra { background: var(--terra); }
.brand-text { font-size: 21px; font-weight: 780; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.01em; }
.brand-text em { color: var(--terra); font-weight: 600; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 16px; text-decoration: none;
  font-size: 14px; font-weight: 560; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(22,23,27,.78); transition: color .15s ease;
}
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--terra); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.main-nav li { position: relative; }
.main-nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--paper); border: 1px solid var(--line-soft);
  padding: 8px; display: none; flex-direction: column; gap: 0;
  box-shadow: 0 16px 40px rgba(22,23,27,.12);
}
.main-nav li:hover .sub, .main-nav li:focus-within .sub { display: flex; }
.main-nav .sub a { text-transform: none; letter-spacing: 0; font-size: 15px; padding: 10px 14px; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--terra); }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px; justify-content: center;
  width: 48px; height: 48px; background: none; border: 0; cursor: pointer; align-items: center;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 64px;
  background: var(--ivory);
  overflow: clip;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 82%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }

.hero h1 {
  font-size: clamp(40px, 5.3vw, 78px);
  margin: 18px 0 26px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 620; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra);
}
.hero-kicker::before { content: ''; width: 26px; height: 2px; background: var(--terra); }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: rgba(22,23,27,.72); max-width: 46ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-trust li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 560; color: rgba(22,23,27,.75); }
.hero-trust li::before { content: ''; width: 8px; height: 8px; background: var(--terra); flex: none; }

.hero-visual { position: relative; min-height: 480px; }
.hero-poster { position: relative; height: 100%; min-height: 480px; }
.hero-poster img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; border-radius: var(--radius); }
.hero-poster::after {
  content: ''; position: absolute; inset: auto -16px -16px auto; width: 58%; height: 58%;
  border: 2px solid var(--terra); z-index: -1;
}
.hero-poster::before {
  content: ''; position: absolute; inset: -16px auto auto -16px; width: 44%; height: 44%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px; z-index: -1;
}

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--stone);
  z-index: 2;
}
.hero-scroll-cue::after { content: ''; width: 1px; height: 42px; background: linear-gradient(var(--stone), transparent); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink); color: var(--ivory);
  padding: 18px 0; overflow: clip; white-space: nowrap;
  border-block: 1px solid var(--ink);
}
.marquee-track { display: inline-flex; gap: 0; animation: marquee 28s linear infinite; will-change: transform; }
.marquee span {
  font-size: 15px; font-weight: 640; font-stretch: 118%; letter-spacing: .18em; text-transform: uppercase;
  padding: 0 28px; display: inline-flex; align-items: center; gap: 28px;
}
.marquee span::after { content: '◆'; color: var(--terra); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections génériques ---------- */
.section { padding-block: var(--pad-section); position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .btn { flex: none; }

.dark { background: var(--ink); color: var(--ivory); }
.dark h2, .dark h3 { color: var(--ivory); }
.dark p { color: rgba(242,237,228,.78); }

/* grout texture pour sections sombres */
.grout {
  background-image:
    linear-gradient(var(--line-inv) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
  background-size: 120px 120px;
  background-color: var(--ink);
}

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card {
  position: relative; padding: 36px 28px 96px; min-height: 340px;
  border-right: 1px solid var(--line);
  text-decoration: none; display: flex; flex-direction: column; gap: 16px;
  background: var(--paper);
  transition: background .25s ease;
  overflow: hidden;
}
.service-card:last-child { border-right: 0; }
.service-card:hover { background: #fff; }
.service-num { font-size: 13px; font-weight: 620; letter-spacing: .18em; color: var(--stone); }
.service-card h3 { transition: color .2s ease; }
.service-card p { font-size: 15px; color: rgba(22,23,27,.66); }
.service-card .go {
  position: absolute; left: 28px; bottom: 28px;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .25s ease;
}
.service-card:hover .go { background: var(--terra); border-color: var(--terra); color: #fff; transform: translateX(6px); }
.service-card .tile-icon { display: grid; grid-template-columns: repeat(3, 10px); gap: 3px; margin-bottom: 4px; }
.service-card .tile-icon i { width: 10px; height: 10px; background: var(--line); transition: background .3s ease; }
.service-card:hover .tile-icon i { background: var(--terra); }
.service-card:hover .tile-icon i:nth-child(2) { transition-delay: .05s; }
.service-card:hover .tile-icon i:nth-child(3) { transition-delay: .1s; }
.service-card:hover .tile-icon i:nth-child(4) { transition-delay: .15s; }
.service-card:hover .tile-icon i:nth-child(5) { transition-delay: .2s; }
.service-card:hover .tile-icon i:nth-child(6) { transition-delay: .25s; }

/* ---------- Process ---------- */
.process-list { display: grid; gap: 0; border-top: 1px solid var(--line-inv); }
.process-item {
  display: grid; grid-template-columns: 110px minmax(0,.85fr) minmax(0,1.3fr);
  gap: clamp(16px, 4vw, 56px); align-items: start;
  padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line-inv);
}
.process-num {
  font-size: clamp(38px, 5vw, 64px); font-weight: 200; font-stretch: 80%;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242,237,228,.5);
  line-height: 1;
}
.process-item h3 { font-size: clamp(20px, 2.4vw, 30px); }
.process-item p { font-size: 16px; }

/* ---------- Stats ---------- */
.stats-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--ivory); padding: clamp(32px, 4vw, 56px) 24px; text-align: center; }
.stat-num { font-size: clamp(44px, 6vw, 80px); font-weight: 760; font-stretch: 118%; line-height: 1; color: var(--terra); max-width: none; }
.stat-num sup { font-size: .45em; font-weight: 600; }
.stat-label { margin: 10px auto 0; max-width: none; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-weight: 600; }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: rgba(22,23,27,.85); color: var(--ivory); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--radius);
}
.g-a { grid-column: span 7; aspect-ratio: 16/10; }
.g-b { grid-column: span 5; aspect-ratio: 4/3.57; }
.g-c { grid-column: span 4; aspect-ratio: 4/3.4; }
.g-d { grid-column: span 4; aspect-ratio: 4/3.4; }
.g-e { grid-column: span 4; aspect-ratio: 4/3.4; }

/* ---------- Split (about teaser / service pages) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); width: 100%; object-fit: cover; aspect-ratio: 4/3.6; }
.split-media::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--line); z-index: -1; border-radius: var(--radius);
}
.split-media .badge {
  position: absolute; right: -14px; top: -14px;
  background: var(--terra); color: #fff; padding: 16px 20px;
  font-weight: 720; font-stretch: 118%; text-transform: uppercase; font-size: 14px; letter-spacing: .08em;
  line-height: 1.25; text-align: center;
}
.split-media .badge strong { display: block; font-size: 26px; }
.checklist { display: grid; gap: 14px; margin: 28px 0 36px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 540; }
.checklist li::before {
  content: '✓'; flex: none; width: 26px; height: 26px; margin-top: 2px;
  display: grid; place-items: center;
  background: var(--terra); color: #fff; font-size: 14px; font-weight: 800;
}
.dark .checklist li::before { background: var(--terra); }

/* ---------- Témoignage ---------- */
.quote-band { text-align: center; }
.quote-band blockquote p {
  font-size: clamp(22px, 3.2vw, 40px); font-weight: 640; font-stretch: 112%;
  line-height: 1.25; text-transform: none; letter-spacing: -.01em; max-width: 24ch; margin-inline: auto;
  color: var(--ink);
}
.quote-band blockquote p::before { content: '«\00a0'; color: var(--terra); }
.quote-band blockquote p::after { content: '\00a0»'; color: var(--terra); }
.quote-band figcaption { margin-top: 24px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-weight: 600; }

/* ---------- Zone ---------- */
.zone-flex { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 720px; }
.zone-chip {
  border: 1px solid var(--line-inv); border-radius: 999px; padding: 10px 20px;
  font-size: 14px; font-weight: 560; color: rgba(242,237,228,.85);
}
.zone-chip.main { background: var(--terra); border-color: var(--terra); color: #fff; }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--terra); color: #fff; text-align: center;
  padding-block: var(--pad-section);
  position: relative; overflow: clip;
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 110px 110px;
}
.cta-final .container { position: relative; }
.cta-final .section-label { justify-content: center; color: rgba(255,255,255,.75); }
.cta-final .section-label .tick { border-color: #fff; }
.cta-title { font-size: clamp(34px, 5.4vw, 72px); color: #fff; }
.cta-title em { color: var(--ink); }
.cta-sub { margin: 24px auto 40px; color: rgba(255,255,255,.85); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-final .btn-primary { background: var(--ink); }
.cta-final .btn-primary:hover { background: #000; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(242,237,228,.75); padding: clamp(56px, 7vw, 96px) 0 32px; }
.footer-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line-inv);
}
.footer-word { font-size: clamp(40px, 5vw, 64px); font-weight: 780; font-stretch: 122%; text-transform: uppercase; color: var(--ivory); line-height: .95; }
.footer-word span { color: var(--terra); font-weight: 500; margin-left: 8px; }
.footer-tag { font-size: 15px; max-width: 46ch; margin-top: 18px; color: rgba(242,237,228,.7); }
.footer-cta { flex: none; }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px); padding: clamp(40px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line-inv);
}
.footer-head { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); font-weight: 640; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { text-decoration: none; font-size: 15px; transition: color .15s ease; }
.footer-col a:hover { color: var(--terra); }
.footer-contact li { font-size: 15px; line-height: 1.5; }
.footer-col-contact a { font-weight: 600; color: var(--ivory); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 28px; font-size: 13px; color: rgba(242,237,228,.5); }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--terra); }

/* ---------- Pages internes ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 112px)) 0 clamp(48px, 7vw, 88px); position: relative; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 76px); margin: 16px 0 22px; max-width: 18ch; }
.page-hero .lead { max-width: 58ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--stone); margin-bottom: 8px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; }

.content-section h2 { font-size: clamp(26px, 3.4vw, 44px); margin-bottom: 24px; text-align: center; }
.content-section .faq-list { margin-inline: auto; }
.prose { display: grid; gap: 18px; max-width: 68ch; }
.prose p { color: rgba(22,23,27,.78); }
.dark .prose p { color: rgba(242,237,228,.78); }

.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 22px 4px; font-weight: 640; font-size: 17px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 24px; color: var(--terra); font-weight: 400; transition: transform .25s ease; flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 4px 24px; color: rgba(22,23,27,.72); max-width: 66ch; }

/* ---------- Formulaire contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-card { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-card .k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); font-weight: 640; }
.contact-card a { font-size: clamp(19px, 2vw, 26px); font-weight: 700; text-decoration: none; }
.contact-card a:hover { color: var(--terra); }
.form {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); display: grid; gap: 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 640; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--terra); outline-offset: 0; border-color: var(--terra); }
.form-note { font-size: 13px; color: var(--stone); }

/* ---------- Reveals (no-JS safe) ---------- */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js.reduced-motion [data-reveal] { opacity: 1; transform: none; }

/* ============ Mise en page centrée — TÉLÉPHONE UNIQUEMENT ============ */
@media (max-width: 767px) {
main { text-align: center; }
/* centre la boîte de chaque paragraphe (sinon max-width 62ch les colle à gauche) */
main p { margin-inline: auto; }

/* Blocs qui restent alignés à gauche (lisibilité / UX) */
.checklist { width: fit-content; max-width: 100%; margin-inline: auto; }
.checklist li { text-align: left; }
.faq-list { text-align: left; margin-inline: auto; }
.faq-list details p { margin-inline: 0; }
.form { text-align: left; }
.form .form-note { margin-inline: 0; }
.field label { text-align: left; }

/* Centrage des rangées flex/grid */
.section-label { justify-content: center; }
.hero-actions, .cta-actions, .zone-flex, .hero-trust, .breadcrumb { justify-content: center; }
.hero-inner, .section-head, .split, .process-item, .contact-grid { grid-template-columns: 1fr; justify-items: center; }
/* le process passe en une seule colonne empilée centrée (bat le bloc responsive 920) */
main .process-item { grid-template-columns: 1fr; }
main .process-item p { grid-column: auto; }

/* Largeurs contraintes recentrées */
.hero-copy { max-width: 860px; }
.hero-sub, .lead, .prose, .process-item p, .cta-sub, .page-hero h1 { margin-inline: auto; }
.split > div { max-width: 720px; }
.section-head { gap: 26px; }
.process-item { gap: 14px; }

/* Hero */
.hero { min-height: auto; padding-block: calc(var(--header-h) + 56px) 72px; }
.hero-inner { gap: 44px; }
.hero-visual { width: min(720px, 100%); margin-inline: auto; }

/* Cartes services centrées */
.service-card { align-items: center; padding: 36px 28px 34px; }
.service-card .tile-icon { justify-content: center; }
.service-card .go { position: static; margin-top: 6px; }
.service-card:hover .go { transform: translateY(4px); }

/* Médias split : on retire les décos décalées en version centrée */
.split-media { width: min(600px, 100%); }
.split-media::before, .split-media::after { display: none; }

/* Contact */
.contact-grid { gap: clamp(36px, 5vw, 56px); }
.contact-card { width: min(560px, 100%); }
.form { width: min(640px, 100%); }

/* Footer centré */
.footer-top { align-items: center; text-align: center; }
.footer-tag { margin-inline: auto; }
.footer-grid { text-align: center; }
.footer-bottom { justify-content: center; text-align: center; }
} /* fin centrage mobile */

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { border-bottom: 1px solid var(--line); min-height: 300px; }
  .service-card:nth-child(even) { border-right: 0; }
  .service-card:nth-child(n+3) { border-bottom: 0; }
}

@media (max-width: 920px) {
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .brand, .header-actions { position: relative; z-index: 2; }
  .main-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: calc(var(--header-h) + 14px) 24px 36px;
    transform: translateY(-100%); transition: transform .35s ease;
    max-height: 100svh; overflow: auto;
    box-shadow: 0 24px 48px rgba(22,23,27,.16);
  }
  .nav-open .main-nav { transform: translateY(0); }
  .nav-open .site-header { background: var(--paper); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-size: 18px; padding: 14px 4px; }
  .main-nav .sub { position: static; display: flex; border: 0; box-shadow: none; background: transparent; padding: 0 0 8px 18px; }
  .main-nav .sub a { font-size: 15px; padding: 8px 4px; color: var(--stone); }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 0; }
  .hero-poster, .hero-poster img { min-height: 300px; }
  .hero-scroll-cue { display: none; }

  .split { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .process-item { grid-template-columns: 64px 1fr; }
  .process-item p { grid-column: 2; }
  .stats-band { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-a, .g-b, .g-c, .g-d, .g-e { grid-column: span 2; aspect-ratio: 16/11; }
  .g-c, .g-d { grid-column: span 1; aspect-ratio: 1/1.05; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 26px; }
  .footer-cta { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-col-contact { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .header-actions .btn-primary { display: none; }
  .header-inner { width: min(1360px, 100% - 32px); }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; padding: 30px 26px 84px; }
  .service-card:nth-child(n+3) { border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
}
