/* Signature Carreleur Lille — feuille de style
   Concept : écrin bleu nuit, filets et accents dorés comme sur la carte de visite. */
:root {
  --navy-950: #021437;
  --navy-900: #031a45;
  --navy-800: #05245a;
  --navy-700: #0b3174;
  --gold-1: #f3dc92;
  --gold-2: #c9a24b;
  --gold-3: #8f6e24;
  --white: #ffffff;
  --muted: #b8c3dc;
  --line: rgba(201, 162, 75, .32);
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gold-grad: linear-gradient(100deg, var(--gold-3) 0%, var(--gold-1) 38%, var(--gold-2) 62%, var(--gold-1) 82%, var(--gold-3) 100%);
  --p-brique: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath d='M0 .5H44M0 11.5H44M.5 0V11M22.5 11V22' fill='none' stroke='%23d9b45f' stroke-opacity='.5'/%3E%3C/svg%3E");
  --p-carre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M.5 0V72M0 .5H72' fill='none' stroke='%23d9b45f' stroke-opacity='.5'/%3E%3C/svg%3E");
  --p-losange: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M17 0L34 17L17 34L0 17Z' fill='none' stroke='%23d9b45f' stroke-opacity='.5'/%3E%3Ccircle cx='17' cy='17' r='1.6' fill='%23d9b45f' fill-opacity='.6'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-800);
  background-image: radial-gradient(120% 60% at 50% 0%, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  padding-inline: 16px;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
p a, li a { color: var(--gold-1); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1100px; margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold-1); color: var(--navy-950); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* En-tête */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(3, 26, 69, .92); backdrop-filter: blur(8px); margin-inline: -16px; padding-inline: 16px; border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 8px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.logo-top { display: block; height: 54px; width: auto; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; }
nav.main a { text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid transparent; color: var(--muted); }
nav.main a:hover { color: var(--white); }
nav.main a[aria-current="page"] { color: var(--gold-1); border-bottom-color: var(--gold-2); }
nav.main a.nav-cta { color: var(--gold-1); border: 1px solid var(--gold-2); padding: 9px 16px; }
nav.main a.nav-cta:hover { background: rgba(201, 162, 75, .14); }
nav.main a.nav-cta[aria-current="page"] { background: rgba(201, 162, 75, .18); }
.menu-btn { display: none; font: inherit; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-1); background: none; border: 1px solid var(--gold-2); padding: 10px 16px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  nav.main { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 10px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 12px; }
  nav.main a.nav-cta { margin-top: 10px; text-align: center; }
}

/* Boutons */
.btn { display: inline-block; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 15px 28px; border: 1px solid var(--gold-2); cursor: pointer; border-radius: 1px; transition: background .2s; text-align: center; }
.btn.solid { background: var(--gold-grad); color: var(--navy-950); border-color: transparent; }
.btn.solid:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--gold-1); }
.btn.ghost:hover { background: rgba(201, 162, 75, .14); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Typographie */
.kicker { font-size: 11.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 14px; }
h1, h2 { font-weight: 300; line-height: 1.22; text-wrap: balance; margin: 0 0 20px; }
h1 { font-size: clamp(28px, 5.2vw, 46px); }
h2 { font-size: clamp(24px, 4.2vw, 36px); }
h3 { font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; }
h1 em, h2 em { font-style: normal; font-weight: 500; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 18px; color: #e6ebf7; }
.muted { color: var(--muted); }
.todo { color: var(--gold-1); font-style: italic; border-bottom: 1px dashed var(--gold-2); }

/* Sections */
section.page { padding-block: clamp(40px, 7vw, 84px); }
section.page.tight { padding-top: 0; }
.hero { text-align: center; padding-block: clamp(32px, 7vw, 72px) clamp(28px, 5vw, 48px); display: grid; justify-items: center; gap: 22px; }
.logo-hero { display: block; width: min(100%, 540px); height: auto; filter: drop-shadow(0 0 22px rgba(243, 220, 146, .18)); }
.hero h1 { max-width: 22ch; margin: 0; font-size: clamp(22px, 4vw, 34px); }
.hero .sub { color: var(--muted); max-width: 54ch; margin: 0; }
.band { height: 74px; border-block: 1px solid var(--line); background-color: var(--navy-900); background-image: var(--p-brique); background-size: 44px 22px; margin-inline: -16px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-bottom: 1px solid var(--line); margin-inline: -16px; padding-inline: 16px; background: rgba(2, 20, 55, .5); }
.trust div { padding: 18px 12px; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-1); }
.trust span { display: block; font-weight: 300; letter-spacing: .04em; text-transform: none; color: var(--muted); font-size: 13px; margin-top: 2px; }

.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 800px) { .intro { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.photo { display: block; width: 100%; border: 1px solid var(--line); background: var(--navy-900); }
.photo.wide { aspect-ratio: 5 / 4; object-fit: cover; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 28px; }
.cell { min-width: 0; border-top: 1px solid var(--gold-2); padding-top: 18px; }
.cell p { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.more { font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-1); text-decoration: none; border-bottom: 1px solid var(--gold-2); padding-bottom: 2px; }

.cta-block { text-align: center; border: 1px solid var(--line); background: rgba(3, 26, 69, .55); padding: clamp(32px, 6vw, 60px) 20px; display: grid; justify-items: center; gap: 8px; }
.cta-block p { margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); padding: 8px 16px; font-size: 13px; letter-spacing: .06em; }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
ol.steps li { counter-increment: s; border-top: 1px solid var(--gold-2); padding-top: 14px; min-width: 0; }
ol.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 30px; font-weight: 200; letter-spacing: .06em; line-height: 1; color: var(--gold-1); margin-bottom: 10px; }
ol.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* Prestations */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; padding-block: 36px; border-top: 1px solid var(--line); }
.svc:nth-of-type(even) .svc-media { order: -1; }
.svc-media { min-width: 0; }
.svc-media .photo { aspect-ratio: 1 / 1; object-fit: cover; }
.pat { aspect-ratio: 1 / 1; border: 1px solid var(--line); background-color: var(--navy-900); position: relative; }
.pat.carre { background-image: var(--p-carre); background-size: 72px 72px; }
.pat.losange { background-image: var(--p-losange); background-size: 34px 34px; }
.pat span { position: absolute; inset: auto 0 0 0; padding: 14px 16px; background: linear-gradient(180deg, transparent, rgba(2, 20, 55, .92)); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-1); }
.svc p { color: var(--muted); }
.svc ul { margin: 0 0 1em; padding-left: 1.1em; color: var(--muted); }
.svc li { margin-bottom: 4px; }
@media (max-width: 800px) { .svc { grid-template-columns: minmax(0, 1fr); } .svc:nth-of-type(even) .svc-media { order: 0; } }

/* Réalisations */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-top: 28px; }
.shot { margin: 0; min-width: 0; }
.shot-btn { display: block; position: relative; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--navy-900); cursor: zoom-in; border-radius: 1px; }
.shot-btn img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.shot-btn .t { position: absolute; top: 12px; left: 12px; font-family: var(--font); font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-1); border: 1px solid var(--gold-2); padding: 4px 9px; background: rgba(3, 26, 69, .85); }
.shot-btn:hover { border-color: var(--gold-1); }
.shot figcaption { padding-top: 14px; }
.shot figcaption h3 { margin-bottom: 4px; }
.shot figcaption span { color: var(--muted); font-size: 14px; display: block; }
.shot figcaption a { margin-top: 8px; display: inline-block; }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(2, 20, 55, .96); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.lb[hidden] { display: none; }
.lb img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lb p { margin: 0 auto; text-align: center; color: var(--muted); font-size: 14px; }
.lb .btn { justify-self: end; padding: 11px 20px; }

/* Zone */
.towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 24px; list-style: none; padding: 0; margin: 24px 0 0; }
.towns li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 500; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 200; color: var(--gold-1); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); margin-top: 8px; }
@media (max-width: 800px) { .contact { grid-template-columns: minmax(0, 1fr); } }
dl.info { margin: 28px 0 0; display: grid; gap: 20px; }
dl.info dt { font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 4px; }
dl.info dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
form.card { border: 1px solid var(--line); background: rgba(3, 26, 69, .6); padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; min-width: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
label { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-1); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 300; color: var(--white); background: var(--navy-900); border: 1px solid var(--line); border-radius: 1px; padding: 13px 14px; }
input::placeholder, textarea::placeholder { color: #7f8db0; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-1); outline: none; box-shadow: 0 0 0 3px rgba(201, 162, 75, .25); }
.result { border: 1px solid var(--gold-2); padding: 20px; display: grid; gap: 14px; }
.result textarea { min-height: 180px; }
.note { font-size: 13px; color: var(--muted); margin: 0; }

/* Mentions légales */
.legal { max-width: 780px; }
.legal h2 { font-size: 22px; font-weight: 400; margin: 44px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 28px; }
.legal p, .legal li { color: #dfe5f3; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal dl { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 10px 20px; margin: 0 0 1em; }
.legal dt { color: var(--gold-2); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.legal dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal dd { margin-bottom: 12px; } }

/* Pied de page */
footer.foot { border-top: 1px solid var(--line); margin-inline: -16px; padding: 40px 16px calc(32px + env(safe-area-inset-bottom, 0px)); background: var(--navy-950); }
footer.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 40px; }
@media (max-width: 800px) { footer.foot .wrap { grid-template-columns: minmax(0, 1fr); } }
footer.foot p, footer.foot li { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
footer.foot ul { list-style: none; padding: 0; margin: 0; }
footer.foot h2 { font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 14px; }
footer.foot a { text-decoration: none; }
footer.foot a:hover { color: var(--gold-1); }
.logo-foot { display: block; height: 96px; width: auto; margin-bottom: 14px; }
.legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; color: var(--muted); }

/* Barre d'appel mobile (affichée seulement si un téléphone est renseigné) */
.callbar { display: none; }
@media (max-width: 800px) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--navy-950); border-top: 1px solid var(--gold-2); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .callbar a { text-align: center; text-decoration: none; padding: 15px 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-1); }
  .callbar a:first-child { background: var(--gold-grad); color: var(--navy-950); }
  body.has-callbar { padding-bottom: 54px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- ajouts : formulaire, filtres, vidéos --- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
html:not(.js) .filters { display: none; }
.chip-btn { font: inherit; font-size: 13px; letter-spacing: .06em; padding: 9px 18px; border: 1px solid var(--line); background: transparent; color: var(--text, #fff); cursor: pointer; border-radius: 1px; }
.chip-btn:hover { border-color: var(--gold-1); }
.chip-btn[aria-pressed="true"] { border-color: var(--gold-1); color: var(--gold-1); }
.shots { align-items: start; }
.shot[hidden] { display: none; }
.shot.tall .shot-btn img { aspect-ratio: 4 / 5; }
.vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-top: 24px; }
.vid { margin: 0; min-width: 0; }
.vid video { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; margin: 0 auto; object-fit: contain; background: #000; border: 1px solid var(--line); }
.vid-ph { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 80vh; background: var(--navy-900); border: 1px solid var(--line); }
.vid-ph { display: grid; place-items: center; color: var(--gold-1); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.vid figcaption { padding-top: 14px; }
.vid figcaption h3 { margin-bottom: 4px; }
.vid figcaption span { color: var(--muted); font-size: 14px; display: block; }
.result[hidden], .form-hidden[hidden], form[hidden] { display: none !important; }
.opt { color: var(--muted); font-weight: 300; text-transform: none; letter-spacing: 0; font-size: .92em; }
.req { color: var(--gold-1); }
.shot-btn img, .photo, .lb img, .vid video { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

.fast { margin: 18px auto 0; max-width: 640px; color: var(--muted); font-size: 15px; }
.fast span { color: var(--gold-1); font-weight: 500; letter-spacing: .04em; border-bottom: 1px solid var(--gold-2); }
.fast-block { border: 1px solid var(--line); border-left: 3px solid var(--gold-2); padding: 28px; display: grid; grid-template-columns: minmax(0, 1.6fr) auto; gap: 20px 32px; align-items: center; background: rgba(3, 26, 69, .55); }
.fast-block em { color: var(--gold-1); font-style: normal; }
@media (max-width: 800px) { .fast-block { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.photo.nat { aspect-ratio: auto; height: auto; width: auto; max-width: 100%; max-height: 640px; justify-self: center; object-fit: contain; }

/* Variante : photo en fond de page, estompée, jamais recadrée sur ordinateur */
main { position: relative; isolation: isolate; }
.bgph { position: absolute; top: 0; left: 50%; width: 100vw; transform: translateX(-50%); height: min(100vh, 860px); z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
.bgph img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; opacity: .62; filter: saturate(.95) contrast(1.05); -webkit-user-drag: none; user-select: none; }
.bgph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 45%, rgba(3, 26, 69, .55), rgba(3, 26, 69, 0) 100%), linear-gradient(180deg, rgba(3, 26, 69, .25), rgba(3, 26, 69, 0) 40%); }
.hero h1, .hero .sub, .page h1, .page .lead { text-shadow: 0 2px 18px rgba(2, 20, 55, .85); }
@media (max-width: 700px) { .bgph img { opacity: .55; } }
/* ordinateur : vrai fond pleine largeur sans zoom : copie floutée qui remplit, photo nette entière au centre */
.bgph .bgblur { display: none; }
@media (min-width: 900px) {
  .bgph { height: max(1100px, 100vh); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%); }
  .bgph .bgblur { display: block; position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; object-position: center 40%; filter: blur(38px) saturate(1.1); opacity: .42; }
  .bgph img:not(.bgblur) { position: relative; display: block; width: auto; max-width: none; height: 100%; margin: 0 auto; object-fit: contain; opacity: .68;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); }
  .bgph::after { background: radial-gradient(55% 60% at 50% 50%, rgba(3, 26, 69, .58), rgba(3, 26, 69, 0) 100%), linear-gradient(180deg, rgba(3, 26, 69, .3), rgba(3, 26, 69, 0) 30%); }
}
/* Zones tactiles confortables sur téléphone */
@media (pointer: coarse) {
  .more { display: inline-flex; align-items: center; min-height: 44px; }
  .contact a[href^="tel:"], .contact a[href^="mailto:"], .contact a[href*="wa.me"] { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 800px) { .callbar a { flex: 1 1 0; } .callbar a + a { border-left: 1px solid var(--line); } }
