/* screen97 - feuille de style commune (extraite des pages HTML) */
:root {
  --bg: #fbfcfc;
  --bg-soft: #eef6f3;
  --bg-sky: #e4f1f8;
  --surface: #ffffff;
  --border: #dbe5e8;
  --ink: #0f2430;
  --ink-soft: #4a5d68;
  --accent: #067a56;
  --accent-strong: #045a40;
  --accent-bright: #0e9f6e;
  --sun: #ffd66b;
  --on-accent: #ffffff;
  --shadow: 0 18px 40px -22px rgba(15, 36, 48, 0.35);
  --font: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", Verdana, sans-serif;
  --radius: 22px;
  --ease: 0.25s ease;
}

/* Blocs mélangés (bouton arc-en-ciel) : chaque bloc peut porter son propre thème via data-mix */
[data-mix="light"] {
  --bg: #fbfcfc;
  --bg-soft: #eef6f3;
  --bg-sky: #e4f1f8;
  --surface: #ffffff;
  --border: #dbe5e8;
  --ink: #0f2430;
  --ink-soft: #4a5d68;
  --accent: #067a56;
  --accent-strong: #045a40;
  --accent-bright: #0e9f6e;
  --sun: #ffd66b;
  --on-accent: #ffffff;
  --shadow: 0 18px 40px -22px rgba(15, 36, 48, 0.35);
}
:where([data-mix]) { background: var(--bg); color: var(--ink); }

:root[data-theme="dark"], [data-mix="dark"] {
  --bg: #0c1519;
  --bg-soft: #112228;
  --bg-sky: #13242c;
  --surface: #16262d;
  --border: #26393f;
  --ink: #eef4f5;
  --ink-soft: #a5b5bb;
  --accent: #3ddc97;
  --accent-strong: #7ae8b9;
  --accent-bright: #2ee6a6;
  --on-accent: #06281c;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
}

/* Thème Nordic Indigo : Nordic Indigo #263BAA + Vanilla Mist #FFF4D6 */
:root[data-theme="brand"], [data-mix="brand"] {
  --bg: #fff4d6;
  --bg-soft: #fbeabf;
  --bg-sky: #f6e3b0;
  --surface: #fffaea;
  --border: #e3d29f;
  --ink: #263baa;
  --ink-soft: #4a5ab5;
  --accent: #263baa;
  --accent-strong: #1a2a80;
  --accent-bright: #3a52d4;
  --sun: #ffd66b;
  --on-accent: #fff4d6;
  --shadow: 0 18px 40px -22px rgba(38, 59, 170, 0.45);
}

/* Thème Midnight Navy : Midnight Navy #071A52 + Lime Glow #A7FF83 */
:root[data-theme="navy"], [data-mix="navy"] {
  --bg: #071a52;
  --bg-soft: #0b2468;
  --bg-sky: #0e2c7a;
  --surface: #0d2262;
  --border: #22418f;
  --ink: #a7ff83;
  --ink-soft: #b6d8bb;
  --accent: #a7ff83;
  --accent-strong: #c9ffb3;
  --accent-bright: #a7ff83;
  --sun: #ffd66b;
  --on-accent: #071a52;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.75);
}

/* Thème Deep Coffee : brun #251603 + orange brûlé #B84512 (orange éclairci pour le texte) */
:root[data-theme="coffee"], [data-mix="coffee"] {
  --bg: #251603;
  --bg-soft: #301c06;
  --bg-sky: #3a2209;
  --surface: #2e1b07;
  --border: #5a3314;
  --ink: #f6e7d4;
  --ink-soft: #d2b79a;
  --accent: #e8743b;
  --accent-strong: #f5a070;
  --accent-bright: #f08a52;
  --sun: #ffd66b;
  --on-accent: #251603;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
}

/* Thème Dark Olive : olive foncé #283113 + Fresh Lemon #F3FF74 */
:root[data-theme="olive"], [data-mix="olive"] {
  --bg: #283113;
  --bg-soft: #313c19;
  --bg-sky: #3a4720;
  --surface: #2f3a17;
  --border: #4d5c2b;
  --ink: #f3ff74;
  --ink-soft: #cdd89a;
  --accent: #f3ff74;
  --accent-strong: #f8ffa8;
  --accent-bright: #f3ff74;
  --sun: #ffd66b;
  --on-accent: #283113;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; font-size: 87.5%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 1.0625rem;
  transition: background var(--ease), color var(--ease);
}

img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(1100px, 100% - 48px); margin-inline: auto; }

/* ---------- Photos : fond doux tant que l'image charge ---------- */
.photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-sky));
}
.photo picture { position: absolute; inset: 0; display: block; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px; min-height: 72px;
}
.brand { display: inline-flex; flex-direction: column; gap: 3px; line-height: 0; margin-right: auto; text-decoration: none; }
.brand .tagline { font-size: 0.72rem; line-height: 1.2; letter-spacing: 0.01em; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.brand img { height: 38px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-dark, :root[data-theme="navy"] .brand .logo-dark, :root[data-theme="coffee"] .brand .logo-dark, :root[data-theme="olive"] .brand .logo-dark { display: block; }
:root[data-theme="dark"] .brand .logo-light, :root[data-theme="navy"] .brand .logo-light, :root[data-theme="coffee"] .brand .logo-light, :root[data-theme="olive"] .brand .logo-light { display: none; }

.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px;
  font-size: 0.97rem; color: var(--ink-soft);
  transition: background var(--ease), color var(--ease);
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--ink);
  cursor: pointer; padding: 0;
  transition: border-color var(--ease), color var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon, .theme-toggle .icon-palette { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun, :root[data-theme="brand"] .theme-toggle .icon-sun, :root[data-theme="navy"] .theme-toggle .icon-sun, :root[data-theme="coffee"] .theme-toggle .icon-sun, :root[data-theme="olive"] .theme-toggle .icon-sun, :root[data-theme="rainbow"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="brand"] .theme-toggle .icon-palette, :root[data-theme="navy"] .theme-toggle .icon-palette, :root[data-theme="coffee"] .theme-toggle .icon-palette, :root[data-theme="olive"] .theme-toggle .icon-palette, :root[data-theme="rainbow"] .theme-toggle .icon-palette { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font: inherit; font-weight: bold; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-whatsapp { background: #25D366; color: #0b2e18; }
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 0.95rem; }

/* ---------- Héro ---------- */
.hero { padding: 64px 0 26px; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center;
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
}
.hero .lead {
  margin: 0 0 34px; max-width: 34em; color: var(--ink-soft);
  font-size: 1.2rem; line-height: 1.55;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

.collage { position: relative; aspect-ratio: 1 / 1.02; }
.collage .main {
  position: absolute; inset: 0 0 12% 10%;
  border-radius: 36px 36px 36px 120px;
  box-shadow: var(--shadow);
}
.collage .side {
  position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 3;
  border-radius: 24px; border: 6px solid var(--bg);
  box-shadow: var(--shadow);
}
.collage .sun {
  position: absolute; right: -14px; top: 6%;
  width: 92px; height: 92px; border-radius: 50%; background: var(--sun);
  z-index: -1;
}
.window {
  position: absolute; right: 2%; bottom: 4%; width: 54%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px 16px;
}
.window .dots { display: flex; gap: 6px; margin-bottom: 12px; }
.window .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.window .bar { height: 9px; border-radius: 6px; background: var(--bg-soft); margin-bottom: 8px; }
.window .bar.w60 { width: 60%; }
.window .bar.w85 { width: 85%; }
.window .live {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 0.85rem; font-weight: bold; color: var(--accent);
}
.window .live::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright);
}

@media (prefers-reduced-motion: no-preference) {
  .hero .collage .main { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .hero .collage .side { animation: rise 0.9s 0.15s cubic-bezier(.2,.7,.2,1) both; }
  .hero .collage .window { animation: rise 0.9s 0.3s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}

/* ---------- Bande photo ---------- */
.strip { padding: 24px 0 24px; }
.strip .wrap {
  display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr; gap: 18px; align-items: end;
}
.strip .photo { border-radius: var(--radius); }
.strip .s1 { aspect-ratio: 4 / 3; }
.strip .s2 { aspect-ratio: 3 / 4; }
.strip .s3 { aspect-ratio: 1 / 1; }
.strip .s4 { aspect-ratio: 3 / 4; }

/* ---------- Sections ---------- */
section { padding: 62px 0; }
.section-head { max-width: 40em; margin-bottom: 34px; }
.section-head h2 {
  margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1; letter-spacing: -0.03em; font-weight: 800;
}
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.12rem; }

/* Services */
.services { background: var(--bg-soft); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service {
  display: grid; grid-template-columns: 42% 1fr; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.service .photo { min-height: 200px; }
.photo-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-bright, var(--accent)); color: #08161b; font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.08em; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.service-wide { grid-column: 1 / -1; grid-template-columns: 28% 1fr; }
.service-wide .body { max-width: 52em; }
.service .body { padding: 28px 28px 28px 26px; align-self: center; }
.service h3 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -0.015em; }
.service p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }

/* Réalisations */
.work-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
}
.work { grid-column: span 4; text-decoration: none; display: block; }
.work.big { grid-column: span 7; }
.work.mid { grid-column: span 5; }
.work .photo { border-radius: var(--radius); aspect-ratio: 4 / 3; margin-bottom: 18px; }
.work.big .photo { aspect-ratio: 16 / 10; }
.work .photo img { transition: transform 0.6s ease; }
.work:hover .photo img { transform: scale(1.04); }
.work h3 { margin: 0 0 4px; font-size: 1.3rem; letter-spacing: -0.015em; }
.work p { margin: 0 0 8px; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.work .url { color: var(--accent); font-weight: bold; font-size: 0.95rem; }
.work:hover .url { text-decoration: underline; text-underline-offset: 4px; }
.badge {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  background: var(--sun); color: #3a2a00; font-size: 0.82rem; font-weight: bold;
  padding: 5px 12px; border-radius: 999px;
}

.badge-mobile {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  background: var(--surface); color: var(--accent); border: 1px solid var(--accent);
  font-size: 0.82rem; font-weight: bold; padding: 5px 12px; border-radius: 999px;
  box-shadow: var(--shadow);
}

/* Méthode */
.method { background: var(--bg-sky); }
.method .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.method .photo { border-radius: 36px 120px 36px 36px; aspect-ratio: 4 / 5; position: sticky; top: 112px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 36px 76px; margin-bottom: 36px; border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
  background: var(--accent); color: var(--on-accent);
}
.steps h3 { margin: 4px 0 6px; font-size: 1.35rem; letter-spacing: -0.015em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Engagements */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise .photo { border-radius: var(--radius); aspect-ratio: 5 / 4; margin-bottom: 20px; }
.promise h3 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -0.015em; }
.promise p { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact { padding-top: 0; }
.contact-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; background: var(--bg-soft);
  border-radius: 40px; overflow: hidden;
}
.contact-card .text { padding: 64px 56px; align-self: center; }
.contact-card h2 {
  margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1; letter-spacing: -0.03em; font-weight: 800;
}
.contact-card p { margin: 0 0 30px; color: var(--ink-soft); font-size: 1.12rem; max-width: 28em; }
.contact-card .photo { min-height: 340px; }

/* Pied de page : toujours sombre, logo version fond foncé */
.site-footer { background: #0c1a21; color: #cfdadd; padding: 56px 0 32px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 38px; width: auto; margin-bottom: 14px; }
.site-footer p { margin: 0; max-width: 24em; color: #9fb0b5; font-size: 0.97rem; }
.site-footer h3 { margin: 0 0 14px; font-size: 1rem; color: #ffffff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #cfdadd; }
.site-footer a:hover { color: #2ee6a6; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .legal a { margin-left: 14px; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .legal {
  grid-column: 1 / -1; border-top: 1px solid #243942; padding-top: 22px;
  font-size: 0.9rem; color: #8ea0a6;
}
:root[data-theme="brand"] .site-footer { background: #263baa; color: #fff4d6; }
:root[data-theme="brand"] .site-footer p, :root[data-theme="brand"] .site-footer .legal { color: #e8dcb4; }
:root[data-theme="brand"] .site-footer h3 { color: #fff4d6; }
:root[data-theme="brand"] .site-footer a { color: #fff4d6; }
:root[data-theme="brand"] .site-footer a:hover { color: #ffd66b; }
:root[data-theme="brand"] .site-footer .legal { border-top-color: rgba(255, 244, 214, 0.28); }
:root[data-theme="navy"] .site-footer { background: #04112f; color: #d4ecd2; }
:root[data-theme="navy"] .site-footer p, :root[data-theme="navy"] .site-footer .legal { color: #a3c4aa; }
:root[data-theme="navy"] .site-footer h3 { color: #a7ff83; }
:root[data-theme="navy"] .site-footer a { color: #d4ecd2; }
:root[data-theme="navy"] .site-footer a:hover { color: #a7ff83; }
:root[data-theme="navy"] .site-footer .legal { border-top-color: #22418f; }
:root[data-theme="coffee"] .site-footer { background: #170d02; color: #ecd9c3; }
:root[data-theme="coffee"] .site-footer p, :root[data-theme="coffee"] .site-footer .legal { color: #c2a587; }
:root[data-theme="coffee"] .site-footer h3 { color: #f6e7d4; }
:root[data-theme="coffee"] .site-footer a { color: #ecd9c3; }
:root[data-theme="coffee"] .site-footer a:hover { color: #f08a52; }
:root[data-theme="coffee"] .site-footer .legal { border-top-color: #5a3314; }
:root[data-theme="olive"] .site-footer { background: #1b2209; color: #e4edb0; }
:root[data-theme="olive"] .site-footer p, :root[data-theme="olive"] .site-footer .legal { color: #b4c07e; }
:root[data-theme="olive"] .site-footer h3 { color: #f3ff74; }
:root[data-theme="olive"] .site-footer a { color: #e4edb0; }
:root[data-theme="olive"] .site-footer a:hover { color: #f3ff74; }
:root[data-theme="olive"] .site-footer .legal { border-top-color: #4d5c2b; }

/* ---------- Adaptation ---------- */
@media (max-width: 1000px) {
  .hero .wrap, .method .wrap, .contact-card { grid-template-columns: 1fr; }
  .method .photo { position: static; aspect-ratio: 16 / 10; border-radius: 36px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-wide { grid-template-columns: 42% 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .work, .work.big, .work.mid { grid-column: span 6; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip .s2, .strip .s4 { aspect-ratio: 4 / 3; }
  .nav { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(1200px, 100% - 32px); }
  section { padding: 42px 0; }
  .hero { padding-top: 36px; }
  .strip { display: none; }
  .site-header .btn { display: none; }
  .service, .service-wide { grid-template-columns: 1fr; }
  .service .photo { min-height: 180px; }
  .work, .work.big, .work.mid { grid-column: span 12; }
  .contact-card .text { padding: 40px 28px; }
  .window { width: 62%; }
}

/* ---------- Sélecteur de langue ---------- */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; text-decoration: none;
  transition: border-color var(--ease);
}
.lang-switch:hover { border-color: var(--accent); }
.flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px var(--border); }
.flag--md { width: 24px; height: 18px; }
.footer-brand { display: inline-block; line-height: 0; }
