/* =========================================================
   ATALUS PACIFIQUE — CSS FINAL PROPRE (SANS DOUBLONS)
   Objectifs :
   - Parallax bien plus haut (desktop) + safe mobile
   - Blocs présentation tous à la même taille
   - Images cohérentes (cadre unique via aspect-ratio)
========================================================= */

:root{
  --bg:#f6f8ff;
  --text:#0b1220;
  --muted:#546074;

  --brand:#09379e;
  --brand2:#ffb804;

  --radius:26px;
  --shadow:0 14px 40px rgba(10,22,60,.14);
  --shadow2:0 8px 20px rgba(10,22,60,.12);

  --container:1180px;
  --headerH:76px;
  --t:.22s;
}

/* =========================
   RESET + BASE
========================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html,body{ margin:0; padding:0; }

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  line-height:1.55;
  overflow-x:hidden;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(25,160,255,.16), transparent 60%),
    radial-gradient(700px 360px at 88% 10%, rgba(255,184,4,.18), transparent 60%),
    var(--bg);
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* =========================
   CONTAINER
========================= */
.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

/* ================= HEADER ================= */
.siteHeader{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(246,248,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10,22,60,.08);
}
.header__inner{
  height:var(--headerH);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
}

.brand__logo{
  height:42px;     /* ajuste si besoin */
  width:auto;
  display:block;
}

.brand__text{
  letter-spacing:-.3px;
  font-weight:950;
}
@media (max-width: 640px){
  .brand__text{ display:none; }
  .brand__logo{ height:38px; }
}

.brand__text{ letter-spacing:-.3px; }

.nav{ display:flex; align-items:center; gap:12px; }
.nav__link{
  padding:10px 12px;
  border-radius:999px;
  font-weight:750;
  color: rgba(11,18,32,.78);
  transition: var(--t) ease;
}
.nav__link:hover{ background: rgba(9,55,158,.08); color: var(--brand); }
.nav__link.is-active{ background: rgba(255,184,4,.22); color: var(--text); }

.navOverlay{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.28);
  z-index:49;
}
.navOverlay.is-open{ display:block; }

.burger{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid rgba(10,22,60,.10);
  background: rgba(255,255,255,.86);
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px; height:2px;
  background: rgba(11,18,32,.72);
  margin:4px auto;
  border-radius:2px;
}

/* ================= BUTTONS ================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 22px;
  border-radius:14px;
  font-weight:800;
  font-size:15px;
  transition: var(--t) ease;
  border:1px solid transparent;
  user-select:none;
}
.btn--small{ padding:10px 16px; border-radius:999px; }
.btn--primary{
  background: linear-gradient(135deg, var(--brand), #2b63ff);
  color:#fff;
  box-shadow: 0 12px 26px rgba(9,55,158,.28);
}
.btn--primary:hover{ transform:translateY(-1px); box-shadow:0 18px 36px rgba(9,55,158,.35); }
.btn--ghost{
  border:2px solid rgba(10,22,60,.10);
  background: rgba(255,255,255,.78);
}
.btn--ghost:hover{ transform:translateY(-1px); box-shadow: var(--shadow2); }
.btn--full{ width:100%; }

/* ================= HERO ================= */
.hero{ padding: 44px 0 26px; }
.hero__inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items:stretch;
}
.pill{
  display:inline-flex;
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  color: rgba(11,18,32,.75);
  background: rgba(255,255,255,.72);
  border:1px solid rgba(10,22,60,.08);
}
.hero h1{
  margin:12px 0 10px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height:1.08;
  letter-spacing:-.8px;
}
.lead{
  margin:10px;
  margin-top:25px;
  color: rgba(11,18,32,.70);
  font-size: 16px;
  line-height: 1.55;
  max-width: 54ch;
}
.ctaRow{ margin-top:18px; display:flex; gap:12px; flex-wrap:wrap; }

/* ================= METHOD CARD ================= */
.methodCard{
  height:100%;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(9,55,158,.95), rgba(9,55,158,.78));
  color:#fff;
  padding: 18px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.methodCard__title{ font-weight:500; font-size: 18px; opacity:.95; }
.methodCard__list{
  list-style:none;
  padding:0;
  margin:14px 0 12px;
  display:grid;
  gap:10px;
  font-weight:500;
}
.methodCard__list li{ display:flex; align-items:center; gap:10px; }
.dot{
  width:8px; height:8px; border-radius:999px;
  background: var(--brand2);
  box-shadow: 0 10px 18px rgba(255,184,4,.25);
}
.methodCard__hint{ margin-top:10px; font-size: 12px; opacity:.75; }

/* ================= METIERS ================= */
.metiers{ padding: 22px 0 54px; }
.metiers__head h2{
  margin:0;
  font-size:24px;
  letter-spacing:-.4px;
}
.sub{ margin: 6px 0 18px; color: rgba(11,18,32,.62); }

.grid4{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}
.serviceCard{
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(10,22,60,.10);
  box-shadow: 0 10px 22px rgba(10,22,60,.08);
  padding: 16px;
  transition: var(--t) ease;
  min-height: 170px;
  display:flex;
  flex-direction:column;
}
.serviceCard:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  background:#fff;
}
.serviceTag{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:11px;
  background: rgba(255,184,4,.25);
  width:fit-content;
}
.serviceTitle{ margin-top:10px; font-weight:950; letter-spacing:-.2px; }
.serviceText{ margin-top:6px; color: rgba(11,18,32,.65); line-height:1.45; font-size: 14px; }
.serviceLink{ margin-top:auto; padding-top:12px; font-weight:950; color: var(--brand); }

/* =========================================================
   PARALLAX — GRAND FORMAT (DESKTOP) + SAFE MOBILE
========================================================= */
.parallax{
  position:relative;
  display:flex;
  align-items:center;
  min-height: 640px;                 /* plus haut */
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;       /* desktop */
}
.parallax::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(10,20,40,.65),
    rgba(10,20,40,.25)
  );
}
.parallax__inner{
  position:relative;
  z-index:1;
  color:#fff;
  padding: 190px 0;                  /* air */
}
.parallax h3{
  font-size:clamp(34px,3.5vw,52px);
  margin:0 0 14px;
}
.parallax p{
  font-size:17px;
  max-width:70ch;
  margin:0 0 22px;
}

/* BACKGROUNDS */
.parallax--atalus{ background-image:url("/assets/img/atalus-parallax.jpg"); }
.parallax--fonroche{ background-image:url("/assets/img/fonroche-parallax.jpg"); }
.parallax--construction{ background-image:url("/assets/img/construction-parallax.jpg"); }
.parallax--decheterie{ background-image:url("/assets/img/decheterie-parallax.jpg"); }

/* =========================================================
   PRESENTATION — BLOCS UNIFORMES + IMAGES COHÉRENTES
========================================================= */
.presentation{ padding: 110px 0; }

/* Grille 2 colonnes + même “gabarit” */
.present__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items:stretch;
  min-height: 520px;                 /* tous pareils */
}

/* Cadre image unique */
.present__img{
  width:100%;
  aspect-ratio: 16 / 10;             /* référence ATALUS */
  border-radius: 28px;
  overflow:hidden;                   /* coupe ce qui dépasse */
  box-shadow: var(--shadow2);
  background:#fff;
}

/* Image remplit le cadre */
.present__img img{
  width:100%;
  height:100%;
  object-fit:cover;                  /* cohérent */
  display:block;
}

/* Texte à droite */
.present__txt{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.present__txt h3{
  font-size:30px;
  margin:0 0 8px;
}

/* Mini cartes */
.miniGrid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin-top:18px;
}
.miniCard{
  background:#fff;
  border-radius:18px;
  padding:22px;
  min-height: 140px;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

/* =========================================================
   CTA BAS
========================================================= */
.ctaBand{
  background:#09379e;
  color:#fff;
  padding:36px 0;
}
.ctaBand__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .grid4{ grid-template-columns: repeat(2, 1fr); }

  /* burger menu */
  .burger{ display:inline-block; }
  .nav{
    display:none;
    position:absolute;
    top: var(--headerH);
    right: 20px;
    left: 20px;
    background: rgba(246,248,255,.96);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(10,22,60,.10);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow2);
    flex-direction:column;
    align-items:stretch;
    gap: 8px;
    z-index:51;
  }
  .nav.is-open{ display:flex; }

  /* parallax mobile safe */
  .parallax{ background-attachment: scroll !important; }
  .parallax{ min-height: 520px; }
  .parallax__inner{ padding: 140px 0; }

  /* présentation */
  .present__grid{
    grid-template-columns:1fr;
    min-height:auto;
    gap: 22px;
  }
  .present__img{
    aspect-ratio: 16 / 9;
    border-radius: 22px;
  }
  .miniGrid{ grid-template-columns:1fr; }

  .ctaBand__inner{ flex-direction:column; }
}

@media (max-width: 520px){
  .grid4{ grid-template-columns: 1fr; }
}

/* =========================================================
   DEBUG VISUEL (SUPPRIME APRÈS VALIDATION)
========================================================= */
/*
body::before{
  content:"CSS FINAL CHARGÉ";
  position:fixed;
  left:12px;
  bottom:12px;
  z-index:999999;
  background:#00c853;
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font:900 12px/1 system-ui;
  box-shadow:0 16px 40px rgba(0,0,0,.25);
}
*/
