/* ============================================================
   ACA FRANCE - Trame urbaine (voir docs/DESIGN.md)
   Statique pur, aucune dependance. Rayon 0 partout.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Marque ACA France (carte de visite officielle, 2026-10) :
     bleu #0F0FF8 = interaction, rouge #FF1717 = marque (logo, filets, graphique). */
  --paper: #FAFAF9;
  --panel: #FFFFFF;
  --panel2: #EDEDEB;
  --ink: #22252B;
  --mut: #575D66;
  --accent: #0F0FF8;      /* bleu marque : liens, CTA, focus */
  --accent-h: #0C0CC4;
  --brand-red: #FF1717;   /* rouge marque : wordmark, filets actifs, motif (non-texte) */
  --accent-soft: #E4E4FD;
  --night: #202329;
  --night-ink: #F4F4F2;
  --night-blue: #9A9AFF;  /* variantes claires sur fond nuit */
  --night-red: #FF6B6B;
  --line: #E5E5E2;
  --line2: #D2D2CE;
  --ok: #20744C;
  --warn: #8A5D00;
  --err: #C22C2C;
  --disp: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --w: 1180px;
  --pad: clamp(20px, 4vw, 44px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--disp);
  font-stretch: 100%;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-h); }

h1, h2, h3 { font-stretch: 120%; letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.12; }
h3 { font-size: 1.15rem; line-height: 1.25; }

p.lead { font-size: 1.12rem; line-height: 1.6; color: var(--mut); max-width: 62ch; }

.wrap { max-width: var(--w); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 108px); }
.section + .section { padding-top: 0; }

/* accessibilite */
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--night); color: var(--night-ink); padding: 10px 18px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ header ============ */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head.scrolled { box-shadow: 0 4px 18px rgba(27, 31, 29, .07); }
.site-head .bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { height: 27px; width: auto; }
.brand svg .lr-b { fill: #0F0FF8; }
.brand svg .lr-r { fill: #FF1717; }
.brand .word { font-stretch: 122%; font-weight: 700; letter-spacing: .04em; font-size: 1.2rem; white-space: nowrap; }
.brand .word b { color: #0F0FF8; font-weight: 700; }
.brand .word i { font-style: normal; color: #FF1717; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(14px, 2.4vw, 30px); list-style: none; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--brand-red); color: var(--ink); font-weight: 560; }
.head-cta { margin-left: 6px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); padding: 9px 11px; cursor: pointer; }
.burger svg { display: block; }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav, .head-cta { display: none; }
  .nav.open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px var(--pad) 26px; }
  .nav.open ul { flex-direction: column; gap: 4px; }
  .nav.open a { display: block; padding: 10px 2px; font-size: 1.05rem; border-bottom: none; }
  .nav.open a[aria-current="page"] { color: var(--accent); }
}

/* ============ boutons ============ */
.btn { display: inline-block; font-family: var(--disp); font-size: .98rem; font-weight: 560; padding: 13px 26px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-h); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-night { background: #FFFFFF; color: #0F0FF8; }
.btn-night:hover { background: var(--accent-soft); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ============ hero ============ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 7vw, 88px); }
.hero .kicker { font-family: var(--mono); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .media { position: relative; }
.hero .media img { width: 100%; height: clamp(320px, 42vw, 520px); object-fit: cover; object-position: center 30%; }
.hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,36,32,0) 55%, rgba(21,36,32,.38)); }
.hero .media figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 16px; color: var(--night-ink); font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; opacity: .92; }
.hero .contours { position: absolute; left: -140px; bottom: -170px; width: 560px; color: var(--brand-red); opacity: .09; pointer-events: none; }
@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; }
  .hero .media { order: -1; }
  .hero .media img { height: min(52vw, 340px); }
}

/* ============ bandeau domaines ============ */
.domains { border-bottom: 1px solid var(--line); }
.domains .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.domains .cell { padding: 30px 26px; border-left: 1px solid var(--line); }
.domains .cell:first-child { border-left: none; padding-left: 0; }
.domains .cell-title { font-size: 1.02rem; margin-bottom: 6px; }
.domains p { font-size: .9rem; color: var(--mut); }
@media (max-width: 860px) {
  .domains .grid { grid-template-columns: 1fr 1fr; }
  .domains .cell { padding: 20px 18px; }
  .domains .cell:nth-child(odd) { border-left: none; padding-left: 0; }
  .domains .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ============ en-tete de section ============ */
.sec-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { color: var(--mut); margin-top: 12px; }

/* ============ services grille asymetrique ============ */
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.svc { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(27,31,29,.08); color: var(--ink); }
.svc img { width: 100%; object-fit: cover; filter: saturate(.9) contrast(1.02); }
.svc .bd { padding: 22px 24px 26px; }
.svc h3 { margin-bottom: 8px; }
.svc p { color: var(--mut); font-size: .93rem; }
.svc .more { margin-top: 14px; color: var(--accent); font-weight: 560; font-size: .92rem; }
.svc-a { grid-column: span 7; } .svc-a img { height: 300px; }
.svc-b { grid-column: span 5; } .svc-b img { height: 300px; }
.svc-c { grid-column: span 5; }
.svc-c .plan { background: var(--night); padding: 34px; display: grid; place-items: center; height: 300px; }
.svc-c .plan svg { width: 100%; max-width: 330px; height: auto; color: var(--night-ink); }
.svc-d { grid-column: span 7; } .svc-d img { height: 300px; }
@media (max-width: 860px) { .svc-a, .svc-b, .svc-c, .svc-d { grid-column: 1 / -1; } .svc img, .svc .plan { height: 240px !important; } }

/* ============ demarche etapes ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line2); }
.step { padding: 26px 26px 8px 0; border-right: 1px solid var(--line); padding-right: 26px; }
.step:last-child { border-right: none; padding-right: 0; }
.step + .step { padding-left: 26px; }
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { font-size: .9rem; color: var(--mut); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .step:last-child { border-bottom: none; }
}

/* ============ realisations teaser / grille ============ */
.work-teaser { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(26px, 4vw, 56px); align-items: end; }
.work-teaser img { width: 100%; height: clamp(300px, 38vw, 470px); object-fit: cover; filter: saturate(.9) contrast(1.02); }
.work-list { list-style: none; }
.work-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.work-list li:first-child { padding-top: 0; }
.work-list a { text-decoration: none; color: var(--ink); font-weight: 560; }
.work-list a:hover { color: var(--accent); }
.work-list .cat { display: block; font-family: var(--mono); font-size: .76rem; color: var(--mut); letter-spacing: .08em; margin-top: 2px; }
@media (max-width: 860px) {
  .work-teaser { grid-template-columns: 1fr; align-items: start; }
  .work-teaser img { height: min(60vw, 320px); }
}
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 34px 22px; }
.work-item { position: relative; }
.work-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.02); }
.work-item.w1 { grid-column: span 7; } .work-item.w1 img { aspect-ratio: 16/10; }
.work-item.w2 { grid-column: span 5; } .work-item.w2 img { aspect-ratio: 16/10; }
.work-item.w3 { grid-column: span 5; } .work-item.w3 img { aspect-ratio: 16/10; }
.work-item.w4 { grid-column: span 7; } .work-item.w4 img { aspect-ratio: 16/10; }
.work-item figcaption { margin-top: 10px; font-size: .88rem; color: var(--mut); }
.work-item figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .work-item.w1, .work-item.w2, .work-item.w3, .work-item.w4 { grid-column: 1 / -1; } }

.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--warn); padding: 16px 20px; margin-bottom: 34px; font-size: .93rem; color: var(--mut); }
.notice svg { flex: none; margin-top: 2px; color: var(--warn); }

.empty-state { border: 1px dashed var(--line2); padding: clamp(30px, 5vw, 54px); text-align: center; margin-top: 40px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--mut); max-width: 52ch; margin-inline: auto; font-size: .95rem; }

/* ============ apropos ============ */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-grid img { width: 100%; height: clamp(320px, 40vw, 480px); object-fit: cover; filter: saturate(.9) contrast(1.02); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid .media { order: -1; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line2); }
.fact { padding: 22px 26px 22px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(3n+2), .fact:nth-child(3n) { padding-left: 26px; border-left: 1px solid var(--line); }
.fact dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin-bottom: 6px; }
.fact dd { font-size: 1.02rem; font-weight: 560; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .fact { padding-right: 14px; } .fact:nth-child(3n+2), .fact:nth-child(3n) { padding-left: 14px; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .fact:nth-child(3n+2), .fact:nth-child(3n) { padding-left: 0; border-left: none; } }

.lyon-band { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.lyon-band .contours { position: absolute; right: -120px; top: -140px; width: 480px; color: var(--brand-red); opacity: .11; pointer-events: none; }
.lyon-band .inner { position: relative; padding: clamp(30px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 30px; }
.coords { font-family: var(--mono); font-size: .86rem; line-height: 2; color: var(--ink); align-self: center; border-left: 1px solid var(--line2); padding-left: 26px; }
.coords .k { color: var(--mut); display: inline-block; width: 118px; }
@media (max-width: 860px) { .lyon-band .inner { grid-template-columns: 1fr; } .coords { border-left: none; padding-left: 0; border-top: 1px solid var(--line2); padding-top: 18px; } }

/* ============ pages services (splits) ============ */
.svc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.svc-row + .svc-row { border-top: 1px solid var(--line); }
.svc-row img { width: 100%; height: clamp(280px, 34vw, 430px); object-fit: cover; filter: saturate(.9) contrast(1.02); }
.svc-row .txt h2 { margin-bottom: 14px; }
.svc-row .txt p { color: var(--mut); margin-bottom: 12px; max-width: 58ch; }
.svc-row .txt ul { list-style: none; margin: 18px 0 22px; }
.svc-row .txt li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: .95rem; }
.svc-row .txt li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 12px; border: 1.5px solid var(--accent); border-top: none; border-right: none; transform: rotate(-45deg); }
.svc-row.rev .media { order: -1; }
.plan-panel { background: var(--panel); border: 1px solid var(--line); padding: clamp(30px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.plan-panel .sheet { background: var(--night); padding: clamp(26px, 4vw, 48px); display: grid; place-items: center; }
.plan-panel .sheet svg { width: 100%; height: auto; max-height: 360px; color: var(--night-ink); }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; } .svc-row.rev .media { order: 0; } .plan-panel { grid-template-columns: 1fr; } }

/* ============ contact ============ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 64px); }
.form-card { background: var(--panel); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-block { margin-bottom: 18px; }
.f-block label { display: block; font-size: .9rem; font-weight: 560; margin-bottom: 6px; }
.f-block .req { color: var(--accent); }
.f-block input, .f-block select, .f-block textarea {
  width: 100%; font-family: var(--disp); font-size: .98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line2); padding: 12px 14px; border-radius: 0;
}
.f-block textarea { min-height: 140px; resize: vertical; }
.f-block input:focus, .f-block select:focus, .f-block textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.f-block .hint { font-size: .8rem; color: var(--mut); margin-top: 5px; }
.f-error { display: none; font-size: .84rem; color: var(--err); margin-top: 5px; }
.f-block.invalid .f-error { display: block; }
.f-block.invalid input, .f-block.invalid textarea { border-color: var(--err); }
.form-note { font-size: .84rem; color: var(--mut); background: var(--panel2); padding: 12px 16px; margin-top: 18px; }
.form-ok { display: none; border-left: 3px solid var(--ok); background: var(--panel); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 20px; margin-top: 18px; font-size: .93rem; }
@media (max-width: 640px) { .f-row { grid-template-columns: 1fr; } }

.contact-side { align-self: start; position: relative; }
.contact-side .card { background: var(--panel); border: 1px solid var(--line); padding: clamp(24px, 4vw, 36px); }
.contact-side .coords { border-left: none; padding-left: 0; margin-top: 4px; }
.contact-side .contours { color: var(--brand-red); opacity: .12; width: 300px; margin: 26px auto 0; pointer-events: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============ CTA band ============ */
.cta-band { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.cta-band .contours { position: absolute; right: -100px; top: -160px; width: 520px; color: var(--night-ink); opacity: .1; pointer-events: none; }
.cta-band .inner { position: relative; padding-block: clamp(44px, 6vw, 72px); display: flex; gap: 26px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: var(--night-ink); }
.cta-band p { color: #B7BAC2; margin-top: 8px; max-width: 56ch; }

/* ============ footer ============ */
.site-foot { background: var(--night); color: var(--night-ink); border-top: 1px solid #34383F; }
.site-foot .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr); gap: 34px; padding-block: clamp(40px, 6vw, 64px); }
.site-foot h3 { color: var(--night-ink); font-size: .82rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.site-foot .brand { color: var(--night-ink); }
.site-foot .brand .word b { color: var(--night-blue); }
.site-foot .brand .word i { color: var(--night-red); }
.site-foot .brand svg .lr-b { fill: var(--night-blue); }
.site-foot .brand svg .lr-r { fill: var(--night-red); }
.site-foot p { color: #A8ACB4; font-size: .9rem; max-width: 40ch; }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 9px; }
.site-foot a { color: var(--night-ink); text-decoration: none; font-size: .92rem; }
.site-foot a:hover { color: var(--night-blue); text-decoration: underline; }
.site-foot .coords { border-left: none; padding-left: 0; color: #C9CCD2; font-size: .82rem; line-height: 1.9; }
.site-foot .coords .k { color: #9095A0; width: 104px; }
.site-foot .legal { border-top: 1px solid #34383F; padding-block: 18px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; font-size: .8rem; color: #9095A0; }
@media (max-width: 860px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

/* ============ pages legales ============ */
.legal-page { max-width: 780px; }
.legal-page h2 { margin: 34px 0 12px; font-size: 1.3rem; }
.legal-page p, .legal-page li { color: #3A423D; font-size: .96rem; }
.legal-page dl { margin: 0; }
.legal-page .fact dd { font-weight: 500; }
.legal-page ul { padding-left: 20px; }
.todo-flag { display: inline-block; font-family: var(--mono); font-size: .74rem; color: var(--warn); border: 1px solid var(--warn); padding: 1px 8px; margin-left: 8px; vertical-align: 1px; }

/* ============ motion ============ */
@media (prefers-reduced-motion: no-preference) {
  .fx { opacity: 0; transform: translateY(14px); transition: opacity .48s ease, transform .48s ease; transition-delay: var(--d, 0ms); }
  .fx.in { opacity: 1; transform: none; }
}
