/* jordanphotographie.com — feuille de style commune (issue des maquettes de l'identité visuelle) */
:root {
  --ink: #0B0B0B;
  --paper: #FFFFFF;
  --grey: #F4F4F4;
  --mute: #4A4A4A;
  --line: #E2E2E2;
  --soft: #D6D6D6;
  --yellow: #FFD23F;
  --pale: #FFF6D1;
  --rose: #E9D6D0;
  --rose-ink: #3A3330;
  --rose-line: #C9B5AF;
  --rose-bg: #F7F2F0;
  --accent: var(--yellow);
  --wrap: 1280px;
  --gut: 24px;
  --sec: 96px;
  --font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}
.is-mariage { --accent: var(--rose); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
a:hover { opacity: .8; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--yellow); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--yellow); padding: 10px 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sec) 0; }
.sec > .wrap { display: flex; flex-direction: column; gap: 40px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.narrow { max-width: 860px; }
.center-col { max-width: 960px; margin: 0 auto; }

/* fonds */
.bg-dark { background: var(--ink); color: #fff; }
.bg-grey { background: var(--grey); }
.bg-rose { background: var(--rose); }
.bg-rose-soft { background: var(--rose-bg); }
.bg-yellow { background: var(--yellow); }
.bg-dark .muted, .bg-dark p { color: var(--soft); }
.bg-rose .muted, .bg-rose p { color: var(--rose-ink); }

/* typo */
.kicker { font-size: 14px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; }
.bg-dark .kicker { color: var(--yellow); }
.h1 { font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -.03em; line-height: 1.02; }
.h1.xl { font-size: clamp(40px, 6vw, 80px); line-height: 1; }
.h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.02em; line-height: 1.08; }
.h2.big { font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -.03em; line-height: 1.05; }
.lead { font-size: 20px; line-height: 1.55; color: var(--mute); }
.bg-dark .lead { color: var(--soft); }
.bg-rose .lead { color: var(--rose-ink); }
.muted { color: var(--mute); }
.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 30px; letter-spacing: -.02em; line-height: 1.15; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }

/* boutons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 17px; padding: 16px 26px; border: 2px solid transparent; line-height: 1.2; cursor: pointer; font-family: inherit; }
.btn:hover { opacity: 1; filter: brightness(.95); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-link { padding: 0; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.bg-dark .btn-dark { background: var(--yellow); color: var(--ink); }
.badge { display: inline-block; align-self: flex-start; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; padding: 8px 14px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.chip { display: inline-block; background: var(--yellow); font-size: 14px; font-weight: 500; padding: 6px 10px; line-height: 1.3; }
.bg-dark .chip-outline, .chip-outline { background: transparent; border: 1px solid currentColor; }

/* en-tête */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 56px; height: 43px; flex: none; }
.brand span { font-size: 22px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .btn { padding: 12px 20px; font-size: 16px; border: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 24px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--accent); padding-left: 12px; }
  .nav .btn { margin-top: 16px; text-align: center; border: 0; }
}

/* pied de page */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 32px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; opacity: 1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h2 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--soft); }
.foot-brand { display: flex; flex-direction: column; gap: 14px; color: var(--soft); }
.foot-brand .brand { color: #fff; }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2A2A2A; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #9A9A9A; font-size: 13px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* images et emplacements */
.media { position: relative; overflow: hidden; background: var(--grey); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ph { border: 2px dashed #9A9A9A; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--mute); font-size: 17px; padding: 20px; background: var(--grey); }
.bg-dark .ph { border-color: #6B6B6B; color: #BDBDBD; background: transparent; }
.bg-rose .ph { border-color: #8A7A75; background: #fff; color: #5A4E4A; }

/* héros */
.hero { padding: 64px 0 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-media { flex: 1 1 420px; min-width: 0; aspect-ratio: var(--ar, 4 / 3); }
.hero-media.is-portrait { flex: 0 1 400px; }
.hero-media.is-square { flex: 0 1 460px; }
.hero.stack-layout .wrap { flex-direction: column; align-items: stretch; gap: 20px; }
.hero.stack-layout .hero-text { flex: none; max-width: 1000px; }
.hero.stack-layout .hero-media { flex: none; height: auto; aspect-ratio: 16 / 7; width: 100%; }
.hero.stack-layout .hero-media.is-portrait, .hero.stack-layout .hero-media.is-square { aspect-ratio: var(--ar); width: min(100%, 520px); }
@media (max-width: 700px) { .hero { padding: 40px 0 64px; } .hero.stack-layout .hero-media.is-landscape { aspect-ratio: var(--ar); } .hero-media.is-portrait { width: 100%; max-width: 440px; margin-inline: auto; } }

/* accueil : deux grandes cartes */
.home-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.home-card { flex: 1 1 420px; min-width: 0; min-height: 440px; text-decoration: none; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.home-card:hover { opacity: 1; transform: translateY(-2px); transition: transform .2s; }
.home-card .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.home-card .media, .home-card .ph { flex-grow: 1; min-height: 180px; }
.home-card .t { font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.home-card .sub { font-size: 17px; }
.home-card.bg-dark .sub { color: var(--soft); }
.home-card.bg-rose .sub { color: var(--mute); }
@media (max-width: 560px) { .home-card { padding: 28px; min-height: 0; } .home-card .t { font-size: 28px; } }

/* grilles */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.item { display: flex; flex-direction: column; gap: 10px; }
.item h3 { font-size: 22px; line-height: 1.25; }
.item p { font-size: 16px; line-height: 1.6; color: var(--mute); }
.bg-dark .item p { color: var(--soft); }
.item.lines { border-top: 3px solid var(--accent); padding-top: 20px; }
.item.lines h3 { font-size: 24px; }
.item.lines p { font-size: 17px; }
.item.boxed { background: var(--grey); padding: 28px; }
.bg-grey .item.boxed, .bg-rose-soft .item.boxed { background: #fff; }
.item.topline { background: #fff; padding: 28px; border-top: 4px solid var(--accent); }
.item.bordered { border: 2px solid var(--ink); padding: 28px; gap: 14px; }
.item.bordered.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.item.bordered.dark p { color: var(--soft); }
.num { font-size: 44px; font-weight: 700; line-height: 1.1; }
.bg-dark .num { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* étapes */
.steps .num { color: inherit; }
.bg-dark .steps .num { color: var(--accent); }

/* tableau comparatif */
.compare { overflow-x: auto; }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 17px; }
.compare th, .compare td { text-align: left; padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-bottom: 2px solid var(--ink); }
.compare thead th:nth-child(2) { color: var(--mute); }
.compare thead th:nth-child(3) { background: var(--yellow); }
.compare td:first-child { font-weight: 700; }
.compare td:nth-child(2) { color: var(--mute); }
.compare td:nth-child(3) { background: var(--pale); }
.compare tr:last-child td { border-bottom: 0; }

/* blocs « deux offres » (clé en main / sur mesure) */
.offers { display: flex; flex-wrap: wrap; gap: 24px; }
.offer { flex: 1 1 420px; min-width: 0; border: 2px solid var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.offer.dark { background: var(--ink); color: #fff; }
.offer.dark p { color: var(--soft); }
.offer h3 { font-size: 28px; letter-spacing: -.01em; line-height: 1.15; }
.offer p { font-size: 17px; line-height: 1.6; color: var(--mute); }
.offer .list { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.offer .list div { display: flex; flex-direction: column; gap: 2px; }
.offer .list b { font-size: 18px; }
.offer .list span { font-size: 16px; color: var(--mute); }
.offer .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 560px) { .offer { padding: 26px; } }

/* encadré (collecte de données) */
.callout { background: var(--pale); border-left: 6px solid var(--yellow); padding: 36px; display: flex; flex-wrap: wrap; gap: 32px; }
.callout > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.callout h3 { font-size: 26px; line-height: 1.2; }
.callout ul { flex: 1 1 360px; margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }

/* deux listes (événements / bénéfices) */
.two-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.two-cols > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 18px; }
.checks li { display: flex; gap: 12px; line-height: 1.45; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.bg-rose .checks li::before { background: var(--ink); color: #fff; }
.chips-lg { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-lg span, .chips-lg a { border: 2px solid var(--ink); padding: 10px 18px; font-size: 17px; font-weight: 500; text-decoration: none; }
.chips-lg .fill { background: var(--accent); border-color: var(--accent); }

/* image + texte */
.sec.split > .wrap { display: flex; flex-direction: row; flex-wrap: wrap; gap: 48px; align-items: center; }
.split .split-media { flex: 1 1 460px; min-width: 0; aspect-ratio: var(--ar, 4 / 3); }
.split .split-media.is-portrait { flex: 0 1 420px; }
.split .split-media.is-square { flex: 0 1 480px; }
.split .split-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split.media-right .split-media { order: 2; }
.split .split-media.tall { aspect-ratio: var(--ar, 4 / 5); max-width: 560px; }
@media (max-width: 900px) { .split .split-media.is-portrait { width: 100%; max-width: 440px; margin-inline: auto; } }

/* tarifs */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.plan { border: 2px solid var(--ink); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { background: var(--accent); border-color: var(--accent); }
.plan h3 { font-size: 26px; }
.plan .price { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.plan .price small { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.plan .btn { margin-top: auto; text-align: center; }
.plan.featured .badge { background: var(--ink); color: #fff; }
.price-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--grey); padding: 32px; }
.price-box .price { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; }

/* avis */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.bg-dark .quote { background: #1A1A1A; }
.quote p { font-size: 17px; line-height: 1.6; color: var(--mute); }
.quote footer { font-weight: 700; font-size: 15px; }

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid #D0D0D0; }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 21px; font-weight: 700; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 28px; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 22px; font-size: 17px; line-height: 1.6; color: var(--mute); }
.faq .a > * + * { margin-top: .7em; }

/* bandeau d'appel */
.sec.cta > .wrap { flex-direction: row; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta .cta-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-size: clamp(34px, 4.5vw, 60px); letter-spacing: -.03em; line-height: 1.05; }

/* galeries */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-tabs button { font: inherit; font-size: 16px; font-weight: 500; padding: 10px 18px; background: #fff; border: 2px solid var(--ink); color: var(--ink); cursor: pointer; }
.gallery-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry > * { break-inside: avoid; margin-bottom: 16px; }
.masonry a { display: block; }
.masonry .ph { height: 320px; }
.masonry .ph:nth-child(3n+1) { height: 420px; }
/* grille justifiée : chaque photo garde son format, hauteur identique sur une même ligne */
.grid-4 { display: flex; flex-wrap: wrap; gap: 16px; }
.grid-4::after { content: ""; flex-grow: 999; }
.grid-4 > .media, .grid-4 > .ph { flex: var(--ar, .8) 1 calc(var(--ar, .8) * 300px); aspect-ratio: var(--ar, .8); min-width: 0; }
@media (max-width: 560px) { .grid-4 > .media, .grid-4 > .ph { flex: var(--ar, .8) 1 calc(var(--ar, .8) * 180px); } }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cat { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.cat .media, .cat .ph { aspect-ratio: 4 / 3; }
.cat b { font-size: 22px; }
.lightbox { position: fixed; inset: 0; background: rgba(11, 11, 11, .94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 8px 16px; line-height: 1; }
.lightbox .lb-close { top: 8px; right: 8px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* formulaire de devis */
.sec.devis > .wrap { display: flex; flex-direction: row; flex-wrap: wrap; gap: 48px; }
.devis-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.devis-contact { border-top: 1px solid currentColor; border-top-color: rgba(128, 128, 128, .4); padding-top: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 17px; }
.devis-contact .tel { font-weight: 700; font-size: 22px; text-decoration: none; }
form.quote-form { flex: 1 1 560px; min-width: 0; background: #fff; color: var(--ink); padding: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-self: flex-start; }
.quote-form h2 { grid-column: 1 / -1; font-size: 26px; }
.quote-form label.f { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form input:not([type=checkbox]), .quote-form select, .quote-form textarea { font: inherit; font-size: 16px; padding: 12px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; width: 100%; }
.quote-form fieldset { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.quote-form legend { font-size: 15px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.quote-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.quote-form .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.quote-form button { grid-column: 1 / -1; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 17px; padding: 18px; border: 0; cursor: pointer; }
.quote-form .note { grid-column: 1 / -1; font-size: 13px; color: var(--mute); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 560px) { form.quote-form { padding: 22px; } }

/* récit / article */
.post-head { padding: 64px 0 32px; }
.post-meta { font-size: 15px; color: var(--mute); }
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.post-card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.post-card .media, .post-card .ph { aspect-ratio: 3 / 2; }
.grid-3 > .item > .media { aspect-ratio: 4 / 3; }
.media.is-portrait img { object-position: 50% 30%; }
.post-card h2 { font-size: 24px; line-height: 1.2; }

/* fil d'Ariane */
.crumbs { font-size: 14px; color: var(--mute); padding-top: 24px; }
.crumbs a { color: var(--mute); }

@media (max-width: 700px) {
  :root { --sec: 64px; }
  body { font-size: 16px; }
  .lead { font-size: 18px; }
  .sec > .wrap { gap: 28px; }
  .callout { padding: 24px; }
  .price-box { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.bg-dark .item.boxed { background: #1A1A1A; }
.bg-rose .item.boxed { background: #fff; }
.form-thanks { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; padding: 12px 0; outline: none; }
.form-thanks h2 { font-size: 34px; letter-spacing: -.02em; }
.form-thanks p { font-size: 17px; color: var(--mute); }
.form-error { grid-column: 1 / -1; background: #FDECEC; color: #8A1C1C; padding: 12px 14px; font-size: 15px; }
form.quote-form, [id] { scroll-margin-top: 96px; }
[hidden] { display: none !important; }

/* ===== Mise en page v2 : rythme plus serré, lecture plus confortable, photos sans vide ===== */
:root { --sec: clamp(56px, 6.5vw, 88px); }
.sec > .wrap { gap: clamp(24px, 3vw, 36px); }
.site-header .wrap { min-height: 68px; }
.h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; }
.h1.xl { font-size: clamp(36px, 5vw, 68px); line-height: 1.02; }
.h2 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.1; }
.h2.big { font-size: clamp(30px, 3.6vw, 48px); }
.lead { font-size: clamp(17px, 1.35vw, 19px); max-width: 62ch; }
.prose { font-size: 17px; max-width: 64ch; }
.narrow { max-width: 760px; }
.item h3 { font-size: 20px; }
.item.lines h3 { font-size: 21px; }
.item.boxed, .item.topline, .item.bordered { padding: 24px; }
.num { font-size: 36px; }

/* grilles : nombre de colonnes selon le nombre d'éléments, jamais d'élément orphelin */
.grid, .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.grid.n2, .grid-3.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.n3, .grid-3.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid.n2, .grid-3.n2, .grid.n3, .grid-3.n3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid.n4 { grid-template-columns: 1fr; } }

/* héros : texte et photo côte à côte, la colonne photo prend la largeur de son format */
.hero { padding: clamp(36px, 5vw, 72px) 0; }
.hero:not(.stack-layout) .wrap:has(> .hero-media) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero:not(.stack-layout) .wrap:has(> .hero-media.is-portrait) { grid-template-columns: minmax(0, 1fr) clamp(220px, 30vw, 400px); }
.hero:not(.stack-layout) .wrap:has(> .hero-media.is-square) { grid-template-columns: minmax(0, 1fr) clamp(240px, 34vw, 460px); }
.hero .hero-media { width: 100%; max-width: none; margin: 0; max-height: 78vh; }
.hero-text { gap: 18px; }

/* image + texte : même principe */
.sec.split > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.sec.split > .wrap:has(> .split-media.is-portrait) { grid-template-columns: clamp(220px, 30vw, 420px) minmax(0, 1fr); }
.sec.split.media-right > .wrap:has(> .split-media.is-portrait) { grid-template-columns: minmax(0, 1fr) clamp(220px, 30vw, 420px); }
.sec.split > .wrap:has(> .split-media.is-square) { grid-template-columns: clamp(240px, 34vw, 460px) minmax(0, 1fr); }
.sec.split.media-right > .wrap:has(> .split-media.is-square) { grid-template-columns: minmax(0, 1fr) clamp(240px, 34vw, 460px); }
.split .split-media, .split .split-media.tall { width: 100%; max-width: none; margin: 0; max-height: 80vh; }
.split .split-text { gap: 16px; }

/* petits écrans : tout s'empile, la photo prend toute la largeur sans devenir interminable */
@media (max-width: 720px) {
  .hero:not(.stack-layout) .wrap:has(> .hero-media), .hero:not(.stack-layout) .wrap:has(> .hero-media.is-portrait), .hero:not(.stack-layout) .wrap:has(> .hero-media.is-square),
  .sec.split > .wrap, .sec.split > .wrap:has(> .split-media.is-portrait), .sec.split.media-right > .wrap:has(> .split-media.is-portrait),
  .sec.split > .wrap:has(> .split-media.is-square), .sec.split.media-right > .wrap:has(> .split-media.is-square) { grid-template-columns: 1fr; gap: 24px; }
  .split.media-right .split-media { order: 0; }
  .hero-media.is-portrait, .split-media.is-portrait { aspect-ratio: 4 / 5; max-height: 72vh; }
}

/* accueil : deux cartes toujours côte à côte sur ordinateur et tablette */
.home-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.home-card { min-height: 0; padding: clamp(20px, 2.6vw, 32px); gap: 18px; }
.home-card .media, .home-card .ph { flex-grow: 0; aspect-ratio: 4 / 3; min-height: 0; }
.home-card .t { font-size: clamp(22px, 2.4vw, 30px); }
.home-card .sub { font-size: 16px; }
.hero.stack-layout .wrap { gap: 18px; }
@media (max-width: 640px) { .home-cards { grid-template-columns: 1fr; } }

/* apparition douce des sections au défilement */
.js-reveal main .sec > .wrap > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal main .sec > .wrap > .in { opacity: 1; transform: none; }
@media (max-width: 700px) { :root { --sec: 52px; } }
.home-card { justify-content: flex-start; }
.home-card > .stack { margin-top: auto; }

/* ===== menus déroulants ===== */
.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { background: none; border: 0; padding: 6px 4px; cursor: pointer; color: inherit; display: flex; }
.nav-sub { display: none; position: absolute; top: 100%; left: -18px; min-width: 300px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.08); padding: 8px; flex-direction: column; z-index: 60; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-sub a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 0; text-decoration: none; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--grey); opacity: 1; }
.nav-sub b { font-weight: 600; font-size: 15px; }
.nav-sub span { font-size: 13px; color: var(--mute); font-weight: 400; }
@media (min-width: 1081px) {
  .nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub, .nav-item.open .nav-sub { display: flex; margin-top: 10px; }
  .nav-item:hover .sub-toggle svg, .nav-item.open .sub-toggle svg { transform: rotate(180deg); }
}
@media (max-width: 1080px) {
  .nav-item { flex-wrap: wrap; }
  .nav-item .nav-top { flex: 1; }
  .nav-item .sub-toggle { display: none; }
  .nav-sub { display: flex; position: static; box-shadow: none; border: 0; min-width: 0; width: 100%; padding: 0 0 8px 14px; margin: 0; }
  .nav-sub::before { display: none; }
  .nav .nav-sub a { padding: 9px 0; border-bottom: 0; font-size: 16px; }
  .nav-sub span { display: none; }
}

.grid.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid.n6 { grid-template-columns: 1fr; } }

/* Étapes illustrées (photo + numéro + texte) */
.photo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; align-items: stretch; }
.photo-steps:has(.wide) { grid-template-columns: 2fr 1fr 1fr 1fr; }
.pstep { margin: 0; background: var(--grey); display: flex; flex-direction: column; }
.pstep > * { min-width: 0; }
.pstep .media { width: 100%; }
.pstep .media { aspect-ratio: 4 / 5; }
.pstep.wide .media { aspect-ratio: 1.6; }
.pstep.wide .media img { object-position: 50% 0; }
.pstep figcaption { padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 6px; }
.pstep .num { align-self: flex-start; background: var(--yellow); font-weight: 700; font-size: 14px; padding: 2px 8px; margin-bottom: 4px; }
.pstep h3 { font-size: 21px; line-height: 1.25; }
.pstep p { font-size: 15px; line-height: 1.55; color: var(--mute); margin: 0; }
@media (max-width: 900px) {
  .photo-steps, .photo-steps:has(.wide) { grid-template-columns: 1fr; gap: 14px; }
  .pstep { display: grid; grid-template-columns: 42% 1fr; }
  .pstep .media { aspect-ratio: 4 / 5; height: 100%; }
  .pstep.wide { display: flex; }
  .pstep.wide .media { aspect-ratio: 16 / 10; height: auto; }
  .pstep figcaption { padding: 14px 16px; }
  .pstep h3 { font-size: 18px; }
  .pstep p { font-size: 14px; }
}

/* Texte + vidéo dans une fenêtre de navigateur */
.vsplit { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.vsplit-txt { display: flex; flex-direction: column; gap: 18px; }
.vsplit-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.vsplit-list li { padding-left: 22px; position: relative; }
.vsplit-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 3px; background: var(--yellow); }
.bg-dark .vsplit-list li { color: var(--soft); }
.bg-dark .vsplit-list b, .bg-dark .vsplit-list strong { color: #fff; }
.vsplit-note { font-size: 14px; opacity: .75; }
.browser { background: #26262a; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); border: 1px solid #3a3a40; }
.browser-bar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { flex: 1; height: 18px; margin-left: 14px; border-radius: 9px; background: #3a3a40; }
.browser video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #111; }
.vsplit-phone { grid-template-columns: 7fr 5fr; }
.phone { width: 100%; max-width: 320px; margin: 0 auto; background: #111; border-radius: 34px; padding: 10px; box-shadow: 0 30px 70px rgba(0,0,0,.35); border: 1px solid #2c2c30; }
.phone video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; background: #111; }
@media (max-width: 900px) { .vsplit { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 900px) { .phone { max-width: 280px; } }
.phone { position: relative; }
.vsound { position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 0; border-radius: 999px; background: rgba(11,11,11,.72); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.vsound svg { width: 20px; height: 20px; }
.vsound .vs-on, .vsound[aria-pressed="true"] .vs-off { display: none; }
.vsound[aria-pressed="true"] .vs-on { display: inline; }
.vsound:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.vcluster { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: center; gap: 28px; }
.vcluster .phone { grid-column: 2; grid-row: 1; max-width: 280px; }
.vc-photo { margin: 0; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.vc-1 { grid-column: 1; } .vc-2 { grid-column: 3; }
.vc-photo .media { aspect-ratio: 2 / 3 !important; border-radius: 4px; overflow: hidden; background: #fff; padding: 6px; box-shadow: 0 16px 36px rgba(0,0,0,.18); }
.vc-photo picture, .vc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vc-photo figcaption { font-size: 13px; line-height: 1.35; opacity: .75; text-align: center; min-height: 2.7em; }
.vplay { position: absolute; inset: 10px; border: 0; border-radius: 26px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer; font: inherit; color: var(--ink); z-index: 2; }
.vplay-btn { width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s; }
.vplay-btn svg { width: 34px; height: 34px; margin-left: 4px; }
.vplay:hover .vplay-btn { transform: scale(1.06); }
.vplay-txt { font-weight: 700; font-size: 15px; }
.vplay:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.phone.is-playing .vplay { display: none; }
@media (max-width: 900px) {
  .vcluster { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .vcluster .phone { grid-column: 1 / -1; grid-row: 1; max-width: 220px; }
  .vc-photo { grid-row: 2; }
  .vc-1 { grid-column: 1; } .vc-2 { grid-column: 2; }
  .vplay-btn { width: 60px; height: 60px; } .vplay-btn svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .browser video, .phone video { animation: none; } }

/* ===== Corrections audit UX (octobre 2026) ===== */
/* liens texte et cases à cocher : zone tactile plus grande, sans changer la mise en page */
.btn-link { padding: 12px 0; margin: -12px 0; }
.devis-contact a { padding: 6px 0; }
.quote-form .check input { width: 22px; height: 22px; margin: 0; }
.quote-form .check { gap: 12px; }
/* accueil : bouton dans chaque carte, ligne de contact sous le texte */
.home-card .card-btn { align-self: flex-start; margin-top: 8px; font-size: 16px; padding: 13px 20px; }
.home-card:hover .card-btn { filter: brightness(.95); }
.hero-contact { font-size: 16px; color: var(--mute); }
.hero-contact a { color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; display: inline-block; padding: 8px 0; margin: -8px 0; }
/* téléphone : barre fixe « Appeler / Devis » en bas d'écran */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.6fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 700; font-size: 16px; text-decoration: none; }
  .mobile-bar a:hover { opacity: 1; }
  .mb-call { border: 2px solid var(--ink); color: var(--ink); }
  .mb-devis { background: var(--ink); color: #fff; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  form.quote-form, [id] { scroll-margin-bottom: 80px; }
}
body:has(.nav.open) .mobile-bar, body:has(.lightbox.open) .mobile-bar { display: none; }
.mobile-bar.is-hidden { display: none; }

/* Accueil : mots du titre mis en valeur (ex. « et en France ») */
.h1-accent { white-space: nowrap; background: #1a1a1a; color: var(--yellow); font-weight: 500; border-radius: .28em; padding: 0 .22em .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
