/* =========================================================
   C.E.L Clim'Elec : maquette bespoke (Timy Studio)
   Concept : « C.E.L » se lit « ciel ». Le ciel reunit leurs
   deux metiers : le SOLEIL (or, photovoltaique) et l'AIR (bleu, clim).
   DA mesuree sur LEURS photos (palette.py) :
     - charbon bleute des panneaux (#15191E) -> fonds sombres
     - or solaire (#E4A52E, pic p07) -> accent principal, le soleil
     - bleu ciel (#4980CB, pic p08) -> accent secondaire, l'air/le froid
     - pierre chaude du Sud (#C0AA94...) -> fonds clairs
   ========================================================= */

:root {
  /* Sombre : le charbon bleute des panneaux photovoltaiques */
  --ink:      #12161C;   /* fond hero + sections sombres */
  --ink-2:    #1B212B;
  --panel:    #232C38;   /* surface carte sur fond sombre */

  /* Clair : la pierre chaude et la lumiere du Sud */
  --paper:    #EFE7D8;   /* fond clair principal */
  --paper-2:  #E6DCC8;   /* bandes / fond secondaire (le plus sombre des clairs) */
  --card:     #FBF6EC;   /* surfaces elevees */
  --cream:    #F4EEE2;   /* texte sur fond sombre */

  /* Or solaire : le soleil, le photovoltaique (accent principal) */
  --sun:        #E4A52E;   /* mesure pic p07 */
  --sun-bright: #F2B54A;   /* or vif sur fond sombre */
  --sun-deep:   #C97D1E;   /* hover CTA */
  --sun-ink:    #8D5300;   /* texte or sur fond clair (AA 4.6:1) */

  /* Bleu ciel : l'air, le froid, la climatisation (accent secondaire) */
  --sky:        #4980CB;   /* mesure pic p08 (le ciel) */
  --sky-bright: #7FB0EA;
  --sky-ink:    #2A60A9;   /* texte bleu sur fond clair (AA 4.6:1) */

  /* Texte */
  --ink-soft:  #766450;    /* texte secondaire chaud sur clair (AA 4.6:1) */
  --cream-mut: rgba(244, 238, 226, 0.68);

  --line:   rgba(18, 22, 28, 0.13);
  --line-2: rgba(18, 22, 28, 0.24);
  --line-d: rgba(244, 238, 226, 0.14);
  --sun-soft: rgba(228, 165, 46, 0.14);

  --display: 'Sora', system-ui, sans-serif;
  --body:    'Figtree', system-ui, sans-serif;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;

  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sun-ink);
  position: relative;
  padding-left: 26px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 18px; height: 2px; border-radius: 2px;
  background: var(--sun);
}
.eyebrow-light { color: var(--sun-bright); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55em;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem;
  padding: 0.92em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
/* CTA principal : soleil plein, texte charbon (contraste eleve, tres « sud ») */
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(228, 165, 46, 0.6); }
.btn-sun:hover { background: var(--sun-bright); transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(228, 165, 46, 0.72); }
.btn-sun .btn-num { font-weight: 600; opacity: 0.8; padding-left: 0.15em; }
.btn-ghost { background: rgba(244, 238, 226, 0.06); color: var(--cream); border-color: rgba(244, 238, 226, 0.4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn .arr { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Etoiles Google (calque clippe, jamais 5 pleines pour 4,5) ---------- */
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; white-space: nowrap; }
.stars::before { content: "\2605\2605\2605\2605\2605"; color: rgba(228, 165, 46, 0.28); letter-spacing: 0.08em; }
.stars-fill { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; white-space: nowrap; }
.stars-fill::before { content: "\2605\2605\2605\2605\2605"; color: var(--sun); letter-spacing: 0.08em; }
.stars-lg { font-size: 1.5rem; }

/* ---------- Marqueur maquette ---------- */
.pitch {
  display: flex; align-items: center; justify-content: center; gap: 0.6em;
  background: var(--ink); color: var(--cream);
  font-size: 0.82rem; font-weight: 500; text-align: center;
  padding: 0.55em 1.2em;
}
.pitch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(228,165,46,0.7); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(228,165,46,0.6);} 70% { box-shadow: 0 0 0 8px rgba(228,165,46,0);} 100% { box-shadow: 0 0 0 0 rgba(228,165,46,0);} }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
  background: rgba(18, 22, 28, 0.0);
}
.nav.scrolled { background: rgba(18, 22, 28, 0.9); backdrop-filter: blur(12px); border-bottom-color: var(--line-d); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 0.6em; text-decoration: none; color: var(--cream); }
.brand-mark { width: 38px; height: 38px; flex: none; display: block; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.06rem; color: var(--cream); letter-spacing: 0.01em; }
.brand-name em { font-style: normal; font-weight: 500; color: var(--sun); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--cream-mut); font-weight: 500; font-size: 0.94rem; position: relative; padding: 4px 0; transition: color 0.2s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--sun); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-tel { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.15; }
.nav-tel-label { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-mut); font-weight: 600; }
.nav-tel-num { font-family: var(--display); font-weight: 600; font-size: 1.06rem; color: var(--sun); }
.nav-tel:hover .nav-tel-num { color: var(--sun-bright); }

/* ---------- Hero data-led : scene soleil/ciel sur charbon ---------- */
.hero { position: relative; min-height: 90vh; min-height: 90dvh; display: flex; align-items: center; overflow: hidden; background: var(--ink); margin-top: -74px; padding-top: 74px; }
.hero-sky { position: absolute; inset: 0; z-index: 0; }
/* lever de soleil chaud qui monte de l'horizon */
.sky-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 118%, rgba(228, 165, 46, 0.42), rgba(228, 165, 46, 0.10) 34%, transparent 58%),
    radial-gradient(90% 70% at 12% -10%, rgba(73, 128, 203, 0.20), transparent 55%),
    linear-gradient(180deg, #0E1218 0%, #12161C 45%, #171C22 100%);
}
/* grille de cellules photovoltaiques, tres discrete */
.sky-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(244, 238, 226, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 226, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 75% 100%, #000 20%, transparent 72%);
  mask-image: radial-gradient(120% 100% at 75% 100%, #000 20%, transparent 72%);
}
.sky-sun { position: absolute; width: clamp(300px, 42vw, 560px); height: auto; right: -4%; top: 8%; opacity: 0.92; filter: drop-shadow(0 0 60px rgba(228,165,46,0.35)); }
.sun-disc { transform-origin: 160px 160px; animation: sunbreath 6s ease-in-out infinite; }
.sun-rays { transform-origin: 160px 160px; animation: sunspin 90s linear infinite; }
@keyframes sunbreath { 0%,100% { transform: scale(1); opacity: 0.96; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes sunspin { to { transform: rotate(360deg); } }

.hero-content { position: relative; z-index: 1; padding: 64px 28px 72px; max-width: 760px; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.6rem); font-weight: 700; color: var(--cream); margin: 0.4em 0 0.42em; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 .hl { color: var(--sun); position: relative; }
.hero-lede { font-size: clamp(1.06rem, 1.9vw, 1.28rem); color: var(--cream-mut); max-width: 54ch; font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.1rem; }
.hero-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-top: 2.2rem; }
.rating { display: inline-flex; align-items: center; gap: 0.55em; }
.rating-num { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--cream); }
.rating-meta { font-size: 0.88rem; color: var(--cream-mut); }
.proof-sep { width: 1px; height: 22px; background: var(--line-d); }
.proof-line { font-size: 0.9rem; color: var(--cream-mut); }

/* ---------- Bande de faits (pierre chaude) ---------- */
.facts { background: var(--paper-2); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 26px; display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: none; }
.fact strong { font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; color: var(--ink); }
.fact span { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Section heads ---------- */
.sec-head { max-width: 52ch; margin-bottom: clamp(34px, 4vw, 58px); }
.sec-head .eyebrow { margin-bottom: 1em; }
.sec-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.sec-head p { margin-top: 0.8em; font-size: 1.12rem; color: var(--ink-soft); }

section.metiers, section.galerie, section.entreprise, section.contact { padding: clamp(66px, 8vw, 122px) 0; }

/* ---------- Nos metiers (deux poles) ---------- */
.pole { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4.5vw, 68px); align-items: center; }
.pole + .pole { margin-top: clamp(48px, 6vw, 96px); }
.pole-rev .pole-photo { order: 2; }
.pole-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); box-shadow: 0 40px 78px -46px rgba(18, 22, 28, 0.55); cursor: pointer; }
.pole-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pole-photo:hover img { transform: scale(1.05); }
.pole-k { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun-ink); }
.pole-k-sky { color: var(--sky-ink); }
.pole-ico { font-size: 1.05em; line-height: 1; }
.pole-sun .pole-ico { color: var(--sun); }
.pole-sky .pole-ico { color: var(--sky); }
.pole-text h3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0.5em 0 0.4em; }
.pole-text p { color: var(--ink-soft); max-width: 46ch; font-size: 1.06rem; }
.pole-list { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.pole-list li { position: relative; padding-left: 1.7em; color: var(--ink-2); font-weight: 500; }
.pole-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.pole-list-sky li::before { background: var(--sky); }

/* ---------- Installations (galerie mosaique) ---------- */
.galerie { background: var(--paper-2); }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 216px; gap: 16px; }
.m-cell { position: relative; cursor: pointer; margin: 0; grid-column: span 2; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 20px 40px -30px rgba(18,22,28,0.5); background: var(--ink-2); }
.m-cell.m-wide { grid-column: span 3; }
.m-cell.m-tall { grid-row: span 2; }
.m-cell > img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.8s var(--ease); }
.m-cell:hover > img { transform: scale(1.06); }
.m-cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 18px 14px; font-size: 0.9rem; font-weight: 600; color: var(--cream);
  background: linear-gradient(0deg, rgba(14,16,20,0.85), rgba(14,16,20,0));
  display: flex; align-items: center; gap: 0.55em;
  transform: translateY(6px); opacity: 0; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.m-cell figcaption::before { content: ""; width: 16px; height: 2px; background: var(--sun); flex: none; }
.m-cell:hover figcaption, .m-cell:focus-within figcaption { opacity: 1; transform: translateY(0); }

/* ---------- L'entreprise ---------- */
.entreprise-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 74px); align-items: center; }
.entreprise-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); box-shadow: 0 44px 84px -46px rgba(18,22,28,0.5); cursor: pointer; }
.entreprise-photo img { width: 100%; height: 108%; object-fit: cover; will-change: transform; }
.entreprise-text .eyebrow { margin-bottom: 0.9em; }
.entreprise-text h2 { font-size: clamp(1.95rem, 3.9vw, 2.9rem); }
.entreprise-text .lede { margin-top: 0.9em; font-size: 1.12rem; color: var(--ink-soft); max-width: 52ch; }
.steps { list-style: none; margin-top: 2.3rem; display: grid; gap: 1.35rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.steps li > span { font-family: var(--display); font-weight: 600; color: var(--sun-ink); font-size: 1rem; border: 1px solid var(--line-2); border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; flex: none; }
.steps h4 { font-size: 1.16rem; font-weight: 600; }
.steps p { color: var(--ink-soft); margin-top: 0.15em; max-width: 48ch; }

/* ---------- Confiance (bande charbon : les panneaux) ---------- */
.confiance { background: var(--ink); color: var(--cream); padding: clamp(64px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.confiance::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 88% -10%, rgba(228,165,46,0.16), transparent 55%);
  pointer-events: none;
}
.confiance-in { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.conf-note { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.conf-note-num { font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 8vw, 5rem); line-height: 1; color: var(--cream); }
.conf-note-num span { font-size: 0.36em; color: var(--cream-mut); font-weight: 600; }
.conf-note-link { color: var(--sun-bright); text-decoration: none; font-weight: 600; font-size: 0.94rem; border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease); }
.conf-note-link:hover { border-bottom-color: var(--sun-bright); }
.conf-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.4rem; }
.conf-points li { display: flex; flex-direction: column; gap: 0.3rem; padding-left: 1.1rem; border-left: 2px solid var(--sun); }
.conf-points strong { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--cream); }
.conf-points span { color: var(--cream-mut); font-size: 0.98rem; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(36px, 5vw, 74px); align-items: start; }
.contact-info .eyebrow { margin-bottom: 1em; }
.contact-info h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-lede { margin-top: 0.7em; font-size: 1.1rem; color: var(--ink-soft); }
.contact-tel { display: inline-block; margin-top: 1.2rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.3vw, 2.7rem); color: var(--sun-ink); text-decoration: none; letter-spacing: -0.02em; }
.contact-tel:hover { color: var(--sun-deep); }
.contact-meta { margin-top: 1.9rem; display: grid; gap: 1rem; }
.contact-meta > div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-meta dt { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; padding-top: 0.15em; }
.contact-meta dd { color: var(--ink-2); }
.gmaps { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 1.7rem; font-weight: 600; color: var(--sun-ink); text-decoration: none; border-bottom: 1px solid var(--sun-soft); padding-bottom: 2px; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.gmaps:hover { color: var(--sun-deep); border-bottom-color: var(--sun-deep); }

.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); box-shadow: 0 32px 62px -42px rgba(18,22,28,0.4); }
.field { display: grid; gap: 0.45rem; margin-bottom: 1.15rem; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 0.82em 0.9em; width: 100%; resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); }
.form-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--ink-soft); text-align: center; }

/* ---------- Footer ---------- */
.foot { background: var(--ink-2); color: var(--cream); padding: 50px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 0.8em; }
.foot-brand strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--cream); }
.foot-brand span { font-size: 0.85rem; color: var(--cream-mut); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--cream-mut); text-decoration: none; font-size: 0.92rem; transition: color 0.2s var(--ease); }
.foot-links a:hover { color: var(--cream); }
.foot-cred { font-size: 0.82rem; color: var(--cream-mut); width: 100%; padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line-d); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,16,0.95); display: none; align-items: center; justify-content: center; padding: 5vh 6vw; }
.lightbox.open { display: flex; }
.lb-img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 8px; box-shadow: 0 40px 90px rgba(0,0,0,0.6); }
.lb-close, .lb-nav { position: absolute; background: rgba(244,238,226,0.12); color: var(--cream); border: 1px solid rgba(244,238,226,0.28); border-radius: 50%; width: 50px; height: 50px; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.2s var(--ease); }
.lb-close:hover, .lb-nav:hover { background: rgba(244,238,226,0.26); }
.lb-close { top: 4vh; right: 5vw; }
.lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev { left: 2vw; } .lb-next { right: 2vw; } .lb-nav, .lb-close { width: 42px; height: 42px; } }

/* ---------- Reveal (motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .m-cell, .m-cell.m-wide { grid-column: span 2; }
  .m-cell.m-tall { grid-row: span 1; }
  .pole, .pole-rev { grid-template-columns: 1fr; }
  .pole-rev .pole-photo { order: 0; }
  .pole-photo { max-width: 620px; }
  .entreprise-grid { grid-template-columns: 1fr; }
  .entreprise-photo { max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; }
  .confiance-in { grid-template-columns: 1fr; gap: 32px; }
  .facts-in { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: none; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-tel-label { display: none; }
  .nav-in { height: 62px; gap: 12px; }
  .brand { gap: 0.45em; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 0.9rem; white-space: nowrap; }
  .nav-tel { flex-direction: row; }
  .nav-tel-num { font-size: 1rem; white-space: nowrap; }
  .hero { min-height: auto; }
  .hero-content { padding-top: 48px; padding-bottom: 64px; }
  /* soleil repousse hors de la titraille pour garder « ciel » parfaitement lisible */
  .sky-sun { top: -6%; right: -30%; opacity: 0.42; }
  .conf-points { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .brand-name { font-size: 0.82rem; }
  .nav-tel-num { font-size: 0.92rem; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; }
  .m-cell, .m-cell.m-wide { grid-column: span 1; }
  .m-cell figcaption { opacity: 1; transform: none; font-size: 0.8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pitch-dot, .sun-disc, .sun-rays { animation: none; }
  .m-cell img, .pole-photo img, .entreprise-photo img { transition: none; }
}
