/* =====================================================================
   Cabinet SCGPI - feuille de style
   ---------------------------------------------------------------------
   Direction : cabinet de conseil en gestion de patrimoine. Sobre et
   institutionnel, mais pas froid. Le bleu profond du logo porte la
   confiance ; un laiton discret marque ce qui compte (chiffres, filets,
   liens). Le fronton du logo se retrouve en motif de section.
   Typographie : Manrope pour les titres (celle du logo), Inter pour le
   texte courant.
   ===================================================================== */

/* ---------- Polices hebergees localement (pas de dependance externe) --- */
@font-face{
  font-family:'Manrope'; font-style:normal; font-weight:700;
  src:url('../fonts/manrope-latin-700-normal.woff2') format('woff2');
  font-display:swap;
}
@font-face{
  font-family:'Manrope'; font-style:normal; font-weight:800;
  src:url('../fonts/manrope-latin-800-normal.woff2') format('woff2');
  font-display:swap;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:400;
  src:url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  font-display:swap;
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:500;
  src:url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  font-display:swap;
}

:root{
  /* Bleus, repris du logo */
  --bleu:#123a72;          /* principal : titres, aplats */
  --bleu-2:#4d72b7;        /* accent bleu, bleu d'origine du logo */
  --bleu-clair:#9fc0ea;    /* sur fonds sombres */
  --bleu-pale:#eef3fa;     /* fonds de section */
  --bleu-nuit:#0d2a52;     /* pied de page */

  /* Laiton : la couleur du patrimoine. A doser tres finement. */
  --laiton:#b0894e;
  --laiton-clair:#d8c39a;

  --encre:#1c2431;         /* texte courant */
  --encre-2:#5a6472;       /* texte secondaire */
  --trait:#e2e7ee;
  --blanc:#ffffff;
  --creme:#f8f9fb;

  --maxw:1140px;
  --rayon:10px;
  --ombre:0 1px 3px rgba(18,58,114,.06), 0 8px 28px rgba(18,58,114,.07);
  --ombre-forte:0 12px 40px rgba(18,58,114,.16);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
  font-size:1rem;
  line-height:1.7;
  color:var(--encre);
  background:var(--blanc);
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,h5{
  font-family:'Manrope','Segoe UI',sans-serif;
  color:var(--bleu);
  line-height:1.22;
  margin:0 0 .6em;
  font-weight:800;
  letter-spacing:-.015em;
}
h1{ font-size:clamp(1.9rem,4.2vw,3rem); }
h2{ font-size:clamp(1.5rem,2.8vw,2.1rem); }
h3{ font-size:1.18rem; font-weight:700; }
h4{ font-size:1.02rem; font-weight:700; }
p{ margin:0 0 1.1em; }
a{ color:var(--bleu-2); text-decoration:none; }
a:hover{ color:var(--bleu); text-decoration:underline; }
img{ max-width:100%; height:auto; display:block; }
strong{ font-weight:600; color:var(--bleu); }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 22px; }
.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;
}

/* =====================  ENTETE  ===================== */
.entete{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--trait);
}
.entete .wrap{
  display:flex; align-items:center; gap:18px;
  min-height:86px;
}
.marque{ display:block; flex:none; }
.marque img{ width:250px; }
.nav{ margin-left:auto; display:flex; align-items:center; gap:2px; }
.nav a{
  position:relative;
  font-family:'Manrope',sans-serif; font-weight:700; font-size:.93rem;
  color:var(--encre); padding:12px 15px; border-radius:8px;
  text-decoration:none; white-space:nowrap;
  transition:color .2s ease, background .2s ease;
}
.nav a::after{
  content:""; position:absolute; left:15px; right:15px; bottom:6px; height:2px;
  background:var(--laiton); border-radius:2px;
  transform:scaleX(0); transform-origin:left;
  transition:transform .3s cubic-bezier(.4,0,.2,1);
}
.nav a:hover{ color:var(--bleu); }
.nav a:hover::after,
.nav a[aria-current="page"]::after{ transform:scaleX(1); }
.nav a[aria-current="page"]{ color:var(--bleu); }

.nav-rdv{
  margin-left:12px; background:var(--bleu); color:#fff !important;
  padding:12px 20px !important; border-radius:8px;
  box-shadow:0 2px 10px rgba(18,58,114,.22);
  transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nav-rdv::after{ display:none; }
.nav-rdv:hover{ background:#0d2c5a; transform:translateY(-1px); box-shadow:0 6px 18px rgba(18,58,114,.28); }

.burger{
  display:none; margin-left:auto; background:none; border:none; cursor:pointer;
  color:var(--bleu); padding:8px; border-radius:8px; line-height:0;
}
.burger:hover{ background:var(--bleu-pale); }

/* Menu mobile */
.nav-mobile{
  display:none; border-top:1px solid var(--trait); background:#fff;
  padding:10px 0 18px;
}
.nav-mobile.ouvert{ display:block; }
.nav-mobile a{
  display:block; padding:13px 22px; font-family:'Manrope',sans-serif;
  font-weight:700; color:var(--encre); text-decoration:none;
  border-bottom:1px solid var(--trait);
}
.nav-mobile a:last-child{ border-bottom:none; }
.nav-mobile a:hover{ background:var(--bleu-pale); color:var(--bleu); }

/* =====================  SECTIONS  ===================== */
.section{ padding:78px 0; }
.section-pale{ background:var(--bleu-pale); }
.section-creme{ background:var(--creme); }
.section-sombre{ background:var(--bleu-nuit); color:#dbe6f5; }
.section-sombre h2,.section-sombre h3,.section-sombre h4{ color:#fff; }
/* Le texte en gras doit rester lisible : sur fond clair il est bleu fonce,
   ici il passe en blanc, sinon on obtient du bleu sur bleu. */
.section-sombre strong,
.hero strong,
.bandeau strong,
.cta strong,
.carte[style*="--bleu"] strong{ color:#fff; }

.titre-section{ max-width:720px; margin-bottom:44px; }
.titre-section.centre{ margin-left:auto; margin-right:auto; text-align:center; }
.titre-section p{ color:var(--encre-2); font-size:1.06rem; margin:0; }

/* Sur-titre : petit label au-dessus des h2 */
.surtitre{
  display:inline-flex; align-items:center; gap:9px;
  font-family:'Manrope',sans-serif; font-weight:700;
  font-size:.74rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--laiton); margin-bottom:14px;
}
.surtitre::before{
  content:""; width:26px; height:2px; background:var(--laiton); border-radius:2px;
}
.section-sombre .titre-section p{ color:#c9d9ee; }   /* sinon gris fonce sur bleu nuit */
.section-sombre .surtitre{ color:var(--laiton-clair); }
.section-sombre .surtitre::before{ background:var(--laiton-clair); }

/* =====================  HERO  ===================== */
.hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(1100px 460px at 78% -8%, #1c4c8e 0%, transparent 62%),
    linear-gradient(160deg,#0d2a52 0%,#123a72 58%,#17457f 100%);
  color:#e8eff9;
  padding:96px 0 104px;
}
/* Colonnade en filigrane : le fronton du logo, agrandi */
.hero::after{
  content:""; position:absolute; right:-40px; bottom:-60px;
  width:520px; height:520px; opacity:.07; pointer-events:none;
  background:url("../images/scgpi-symbole-blanc.svg") no-repeat center/contain;
}
.hero .wrap{ position:relative; z-index:2; max-width:900px; }
.hero h1{ color:#fff; margin-bottom:20px; }
.hero h1 em{ font-style:normal; color:var(--laiton-clair); }
.hero-chapo{
  font-size:1.16rem; color:#c9d9ee; max-width:640px; margin-bottom:34px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; }

/* =====================  BOUTONS  ===================== */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  font-family:'Manrope',sans-serif; font-weight:700; font-size:.95rem;
  padding:14px 26px; border-radius:9px; border:2px solid transparent;
  text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover{ text-decoration:none; transform:translateY(-1px); }
/* Le bouton utilise un laiton plus fonce que la couleur d'accent : avec
   du texte blanc, #b0894e ne donnait qu'un contraste de 3,2 (insuffisant).
   #8c6a35 atteint 4,97 et respecte le niveau AA. */
.btn-or{
  background:#8c6a35; color:#fff; border-color:#8c6a35;
  box-shadow:0 4px 16px rgba(140,106,53,.3);
}
.btn-or:hover{ background:#75592c; border-color:#75592c; color:#fff; box-shadow:0 8px 22px rgba(140,106,53,.36); }
.btn-bleu{ background:var(--bleu); color:#fff; border-color:var(--bleu); }
.btn-bleu:hover{ background:#0d2c5a; color:#fff; }
.btn-clair{ background:transparent; color:#fff; border-color:rgba(255,255,255,.42); }
.btn-clair:hover{ background:rgba(255,255,255,.1); color:#fff; border-color:#fff; }
.btn-ligne{ background:transparent; color:var(--bleu); border-color:var(--trait); }
.btn-ligne:hover{ background:var(--bleu-pale); border-color:var(--bleu-2); color:var(--bleu); }

/* =====================  GRILLES ET CARTES  ===================== */
.grille{ display:grid; gap:26px; }
.g2{ grid-template-columns:repeat(2,1fr); }
.g3{ grid-template-columns:repeat(3,1fr); }
.g4{ grid-template-columns:repeat(4,1fr); }

.carte{
  background:#fff; border:1px solid var(--trait); border-radius:var(--rayon);
  padding:30px 28px; box-shadow:var(--ombre);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.carte:hover{ transform:translateY(-3px); box-shadow:var(--ombre-forte); border-color:#cfd9e8; }
.carte h3{ margin-bottom:.5em; }
.carte p:last-child{ margin-bottom:0; }
.carte-ic{
  width:46px; height:46px; margin-bottom:18px; color:var(--bleu-2);
}
.carte-ic svg{ width:100%; height:100%; }

/* Carte de service, avec numero */
.carte-num{ position:relative; }
.carte-num .num{
  position:absolute; top:22px; right:24px;
  font-family:'Manrope',sans-serif; font-weight:800; font-size:2.1rem;
  color:var(--bleu-pale); line-height:1;
}
/* Le titre laisse la place au numero, sinon ils se chevauchent */
.carte-num h3,
.carte-num h4{ padding-right:54px; }

/* Liens de carte */
.lien-fleche{
  display:inline-flex; align-items:center; gap:7px;
  font-family:'Manrope',sans-serif; font-weight:700; font-size:.88rem;
  color:var(--bleu-2); margin-top:14px;
}
.lien-fleche .f{ transition:transform .22s ease; }
.lien-fleche:hover{ text-decoration:none; color:var(--bleu); }
.lien-fleche:hover .f{ transform:translateX(4px); }

/* =====================  CHIFFRES  ===================== */
.chiffres{
  display:grid; grid-template-columns:repeat(3,1fr); gap:0;
  border:1px solid var(--trait); border-radius:var(--rayon); overflow:hidden;
  background:#fff;
}
.chiffre{ padding:32px 26px; text-align:center; border-right:1px solid var(--trait); }
.chiffre:last-child{ border-right:none; }
.chiffre .v{
  font-family:'Manrope',sans-serif; font-weight:800; font-size:2.3rem;
  color:var(--bleu); line-height:1; display:block; margin-bottom:8px;
}
.chiffre .v span{ color:var(--laiton); }
.chiffre .l{ font-size:.9rem; color:var(--encre-2); }

/* =====================  DEUX COLONNES  ===================== */
.duo{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.duo-texte p:last-child{ margin-bottom:0; }

/* Liste a puces personnalisee */
.liste-check{ list-style:none; padding:0; margin:0 0 1.2em; }
.liste-check li{
  position:relative; padding-left:32px; margin-bottom:13px; color:var(--encre);
}
.liste-check li::before{
  content:""; position:absolute; left:0; top:9px;
  width:16px; height:9px; border-left:2.5px solid var(--laiton);
  border-bottom:2.5px solid var(--laiton); transform:rotate(-45deg);
  border-radius:1px;
}
.section-sombre .liste-check li{ color:#dbe6f5; }
.section-sombre .liste-check li::before{ border-color:var(--laiton-clair); }

/* =====================  ENCADRE  ===================== */
.encadre{
  border-left:3px solid var(--laiton); background:var(--creme);
  padding:24px 28px; border-radius:0 var(--rayon) var(--rayon) 0;
  margin:30px 0;
}
.encadre p:last-child{ margin-bottom:0; }
.encadre strong{ color:var(--bleu); }

/* =====================  ARTICLE  ===================== */
.article{ max-width:760px; }
.article h2{ margin-top:1.8em; }
.article h2:first-child{ margin-top:0; }
.article ul{ padding-left:22px; margin:0 0 1.2em; }
.article li{ margin-bottom:9px; }
.chapo{ font-size:1.1rem; color:var(--encre-2); }

/* =====================  BANDEAU DE PAGE  ===================== */
.bandeau{
  background:linear-gradient(160deg,#0d2a52,#173f7a);
  color:#e8eff9; padding:62px 0 58px; position:relative; overflow:hidden;
}
.bandeau::after{
  content:""; position:absolute; right:-30px; bottom:-70px;
  width:330px; height:330px; opacity:.06;
  background:url("../images/scgpi-symbole-blanc.svg") no-repeat center/contain;
}
.bandeau h1{ color:#fff; margin-bottom:12px; }
.bandeau p{ color:#c9d9ee; max-width:620px; margin:0; font-size:1.05rem; }
.fil{
  font-size:.83rem; color:#9fb6d6; margin-bottom:16px;
}
.fil a{ color:#c9d9ee; }
.fil a:hover{ color:#fff; }

/* =====================  APPEL A L'ACTION  ===================== */
.cta{
  background:linear-gradient(140deg,#123a72,#0d2a52);
  border-radius:var(--rayon); padding:52px 48px; color:#e8eff9;
  display:flex; align-items:center; justify-content:space-between;
  gap:34px; flex-wrap:wrap;
}
.cta h2{ color:#fff; margin-bottom:8px; }
.cta p{ margin:0; color:#c9d9ee; }

/* =====================  FORMULAIRE  ===================== */
.champ{ margin-bottom:20px; }
.champ label{
  display:block; font-family:'Manrope',sans-serif; font-weight:700;
  font-size:.88rem; color:var(--bleu); margin-bottom:7px;
}
.champ input,.champ select,.champ textarea{
  width:100%; font-family:inherit; font-size:1rem; color:var(--encre);
  padding:13px 15px; border:1px solid var(--trait); border-radius:8px;
  background:#fff; transition:border-color .2s ease, box-shadow .2s ease;
}
.champ input:focus,.champ select:focus,.champ textarea:focus{
  outline:none; border-color:var(--bleu-2);
  box-shadow:0 0 0 3px rgba(77,114,183,.13);
}
.champ textarea{ resize:vertical; min-height:130px; }
.champ .aide{ font-size:.82rem; color:var(--encre-2); margin-top:6px; }
.ligne-2{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.piege{ position:absolute; left:-9999px; }
.note-form{ font-size:.85rem; color:var(--encre-2); }
.alerte{
  background:#fdf2f2; border:1px solid #f3c9c9; color:#8f2b2b;
  padding:13px 17px; border-radius:8px; margin-bottom:22px; font-size:.92rem;
}

/* =====================  PIED DE PAGE  ===================== */
.pied{ background:var(--bleu-nuit); color:#a9bdd8; padding:64px 0 0; font-size:.93rem; }
.pied-grille{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:40px; }
.pied h4{ color:#fff; font-size:.9rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:16px; }
.pied a{ color:#a9bdd8; }
.pied a:hover{ color:#fff; text-decoration:none; }
.pied ul{ list-style:none; padding:0; margin:0; }
.pied li{ margin-bottom:10px; }
.pied-logo img{ width:200px; margin-bottom:16px; }
.pied-legal{
  margin-top:52px; border-top:1px solid rgba(255,255,255,.12);
  padding:20px 0 26px; display:flex; justify-content:space-between;
  gap:18px; flex-wrap:wrap; font-size:.85rem; color:#8ba3c2;
}
.pied-legal a{ color:#8ba3c2; }
.pied-coord p{ margin:0 0 9px; }
.pied-coord .tel{ font-family:'Manrope',sans-serif; font-weight:700; color:#fff; font-size:1.05rem; }

/* Avertissement reglementaire du pied */
.pied-reglement{
  font-size:.8rem; color:#7e97b8; line-height:1.6;
  border-top:1px solid rgba(255,255,255,.09); padding-top:18px; margin-top:30px;
}

/* =====================  RESPONSIVE  ===================== */
@media (max-width:1000px){
  .nav{ display:none; }
  .burger{ display:block; }
  .g4{ grid-template-columns:repeat(2,1fr); }
  .duo{ grid-template-columns:1fr; gap:38px; }
  .pied-grille{ grid-template-columns:1fr 1fr; gap:34px; }
}
@media (max-width:760px){
  .section{ padding:56px 0; }
  .hero{ padding:66px 0 74px; }
  .g2,.g3,.g4{ grid-template-columns:1fr; }
  .chiffres{ grid-template-columns:1fr; }
  .chiffre{ border-right:none; border-bottom:1px solid var(--trait); }
  .chiffre:last-child{ border-bottom:none; }
  .cta{ padding:38px 26px; flex-direction:column; align-items:flex-start; }
  .ligne-2{ grid-template-columns:1fr; gap:0; }
  .pied-grille{ grid-template-columns:1fr; }
  .marque img{ width:200px; }
  .entete .wrap{ min-height:72px; }
}

/* Respect du reglage systeme « moins d'animations » */
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
  html{ scroll-behavior:auto; }
}

/* Numero de version, discret : sert a verifier ce qui est reellement en ligne */
.pied-version{
  display:inline-block; margin-left:10px; padding:1px 7px;
  border:1px solid rgba(255,255,255,.14); border-radius:20px;
  font-size:.72rem; color:#7e97b8; letter-spacing:.03em;
}


/* =====================================================================
   BOUTONS FLOTTANTS, BULLE DE COPIE ET FENETRE DE RAPPEL
   Places sur le cote droit, ils suivent le defilement. Le libelle
   n'apparait qu'au survol pour ne pas encombrer l'ecran.
   ===================================================================== */

.fab-pile{
  position:fixed; right:18px; top:50%; transform:translateY(-50%);
  z-index:70; display:flex; flex-direction:column; gap:10px; align-items:flex-end;
}
.fab{
  display:flex; align-items:center; gap:0; overflow:hidden;
  width:52px; height:52px; padding:0 15px; border:none; cursor:pointer;
  border-radius:26px; background:var(--bleu); color:#fff;
  box-shadow:0 4px 16px rgba(13,42,82,.28);
  text-decoration:none; white-space:nowrap;
  transition:width .3s cubic-bezier(.2,.8,.2,1), gap .3s ease,
             background .2s ease, box-shadow .2s ease;
}
.fab svg{ width:22px; height:22px; flex:none; }
.fab-texte{
  font-family:'Manrope',sans-serif; font-weight:700; font-size:.86rem;
  opacity:0; max-width:0; transition:opacity .22s ease, max-width .3s ease;
}
.fab:hover,.fab:focus-visible{
  width:auto; gap:11px; color:#fff; text-decoration:none;
  box-shadow:0 8px 24px rgba(13,42,82,.34);
}
.fab:hover .fab-texte,.fab:focus-visible .fab-texte{ opacity:1; max-width:230px; }
.fab-tel{ background:var(--bleu); }
.fab-tel:hover{ background:#0d2c5a; }
.fab-rappel{ background:#8c6a35; }        /* le laiton, comme les boutons d'action */
.fab-rappel:hover{ background:#75592c; }
.fab-mail{ background:#2c5a8a; }
.fab-mail:hover{ background:#22496f; }

/* Sur mobile, la pile passe en bas a droite et les libelles disparaissent */
@media (max-width:760px){
  .fab-pile{ top:auto; bottom:16px; right:14px; transform:none; gap:9px; }
  .fab{ width:50px; height:50px; padding:0 14px; }
  .fab:hover{ width:50px; gap:0; }
  .fab:hover .fab-texte{ opacity:0; max-width:0; }
}

/* ---- Bulle « numero copie » ---- */
.tel-bulle{
  position:absolute; transform:translate(-50%,-100%) translateY(6px);
  background:var(--bleu-nuit); color:#fff; font-size:.82rem; font-weight:500;
  padding:8px 14px; border-radius:8px; white-space:nowrap; pointer-events:none;
  box-shadow:0 8px 24px rgba(13,42,82,.3); opacity:0; z-index:200;
  transition:opacity .22s ease, transform .22s ease;
}
.tel-bulle.visible{ opacity:1; transform:translate(-50%,-100%) translateY(0); }

/* ---- Fenetre « Etre rappele » ---- */
.rappel-fond{
  position:fixed; inset:0; z-index:300; display:grid; place-items:center;
  background:rgba(13,42,82,.55); padding:20px;
  animation:rappelFond .25s ease both;
}
@keyframes rappelFond{ from{opacity:0} to{opacity:1} }
.rappel-boite{
  position:relative; background:#fff; border-radius:14px; padding:34px 32px 28px;
  width:100%; max-width:430px; box-shadow:0 24px 60px rgba(13,42,82,.35);
  animation:rappelBoite .32s cubic-bezier(.2,.9,.3,1) both;
  max-height:90vh; overflow-y:auto;
}
@keyframes rappelBoite{ from{opacity:0;transform:translateY(18px) scale(.97)} to{opacity:1;transform:none} }
.rappel-boite h3{ font-size:1.28rem; margin-bottom:6px; }
.rappel-intro{ color:var(--encre-2); font-size:.93rem; margin-bottom:22px; }
.rappel-fermer{
  position:absolute; top:12px; right:14px; background:none; border:none;
  font-size:1.7rem; line-height:1; color:var(--encre-2); cursor:pointer;
  padding:4px 9px; border-radius:8px;
}
.rappel-fermer:hover{ background:var(--bleu-pale); color:var(--bleu); }
.rappel-msg{ font-size:.88rem; margin:4px 0 14px; min-height:1.2em; color:var(--encre-2); }
.rappel-msg.ok{ color:#1f7a4d; font-weight:600; }
.rappel-msg.ko{ color:#b4342c; font-weight:600; }
.rappel-rgpd{ font-size:.78rem; color:var(--encre-2); margin:14px 0 0; }
.rappel-form button[type="submit"]{ width:100%; justify-content:center; }

@media (prefers-reduced-motion:reduce){
  .fab,.fab-texte,.tel-bulle,.rappel-fond,.rappel-boite{ animation:none !important; transition:none !important; }
}
