:root{
  --yp-blue-dark:#002E3A;
  --yp-blue-mid:#005766;
  --yp-turq-1:#00A3B4;
  --yp-turq-2:#00C7BE;
  --yp-yellow:#F2B705;
  --yp-peach:#F2994A;

  --green:#24796c;
  --blue:#24525a;
  --mint:#c8e9e3;
  --orange:#ffab48;
  --cream:#fff4d7;
}

/* base */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--blue);
  background:var(--cream);
  line-height:1.65;
}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.section{padding:64px 0}
.section.alt{background:#fff}
.eyebrow{display:inline-block;letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:var(--green);font-size:.8rem;margin-bottom:10px}
h1,h2,h3{margin:0 0 12px}
h1{font-size:clamp(26px,5vw,44px)}
h2{font-size:clamp(22px,3.4vw,32px)}
h3{font-size:clamp(18px,2.4vw,22px)}
p{margin:0 0 16px}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px; /* un peu plus haut pour mieux loger le logo */
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
/* Logo YesPartner plus grand dans la banderole */
.brand-logo {
  height: 100px;                /* augmente la hauteur (avant 44px) */
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  margin-top: 2px;             /* petit ajustement vertical */
}

/* Ajuste la hauteur du header pour loger le nouveau logo */
.site-header .wrap {
  height: 88px;                /* avant 72px */
}

.main-nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
}
.main-nav .btn {
  background: var(--orange);
  color: #1b1b1b;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 700;
}


/* hero */
.hero {
    background-image: url("Fond_degrade.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f8fafc;
}

.hero-inner{display:flex;align-items:center;min-height:64vh}
.hero-text p{max-width:680px}
.hero-cta{display:flex;gap:12px;margin-top:10px;flex-wrap:wrap}
.btn{display:inline-block;background:var(--orange);color:#1b1b1b;text-decoration:none;padding:12px 18px;border-radius:12px;font-weight:700}
.btn.btn-lg{padding:14px 20px}
.btn.ghost{background:transparent;outline:2px solid var(--orange)}

/* grids/cards */
.grid-2{display:grid;gap:20px;grid-template-columns:1fr}
@media(min-width:860px){.grid-2{grid-template-columns:1fr 1fr}}
.grid-4{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:900px){.grid-4{grid-template-columns:repeat(4,1fr)}}
.cards-inline{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:800px){.cards-inline{grid-template-columns:repeat(4,1fr)}}
.card{background:#fff;border-radius:14px;padding:18px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.card h3{color:var(--green)}

.box.info{background:#fff;border-left:6px solid var(--orange);border-radius:10px;padding:16px}
.pill-list{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.pill{background:#fff;border:1px solid #dfe9e7;border-radius:999px;padding:6px 10px;font-size:.9rem;color:var(--green)}

.steps .step{position:relative}
.step .step-num{position:absolute;top:-10px;left:-10px;background:var(--mint);color:var(--blue);font-weight:700;border-radius:999px;width:34px;height:34px;display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,0,0,.08)}

.timeline{display:grid;gap:16px}
.t-item{display:flex;gap:14px;align-items:flex-start}
.t-badge{flex:0 0 auto;width:28px;height:28px;border-radius:999px;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:700}
.t-content h4{margin:0 0 6px}

/* team */
.team .card p{margin:6px 0 0}

/* contact */
.contact .contact-box{background:#fff;border-radius:14px;padding:18px;box-shadow:0 2px 12px rgba(0,0,0,.06)}

/* footer */
.site-footer{background:#112a30;color:#cfe7e6;padding:22px 0;margin-top:40px}
.site-footer p{margin:0}

/* Improve contrast for CTA on gradient hero */
.hero .btn{box-shadow:0 2px 10px rgba(0,0,0,.15)}
.hero .btn.ghost{background:transparent;outline:2px solid #ffffff;color:#ffffff}


/* ====== HERO — centrage + hauteur ====== */

.hero {
  min-height: 88vh;              /* plus grand, presque plein écran */
  display: flex;                 /* permet le centrage vertical */
  align-items: center;           /* centre verticalement */
  padding-top: 6rem;             /* marge de sécurité sous le header */
  padding-bottom: 5rem;
}

.hero-inner {
  width: 100%;
}

.hero-text {
  max-width: 860px;
  margin: 0 auto;                /* centre horizontalement */
  text-align: center;            /* titre, texte et boutons centrés */
}

/* Logo dans le hero */
.hero-logo {
  display: block;
  margin: 0 auto 1.5rem auto;    /* centré + espace sous le logo */
  width: clamp(180px, 28vw, 360px); /* taille fluide selon l'écran */
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.25)); /* lisibilité sur le dégradé */
  image-rendering: auto;
}

/* Titre et paragraphe du hero : un peu plus gros et lisibles */
.hero h1 {
  line-height: 1.1;
  margin-top: 0.25rem;
}

.hero p {
  margin-top: 1rem;
  font-weight: 300;
  opacity: .95;
}

/* Boutons du hero centrés et espacés */
.hero-cta {
  display: inline-flex;
  gap: 12px;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Petites adaptations mobile */
@media (max-width: 640px) {
  .hero {
    min-height: 92vh;           /* un peu plus haut sur mobile */
    padding-top: 5rem;
    padding-bottom: 3.5rem;
  }
  .hero-logo {
    width: clamp(160px, 48vw, 280px);
    margin-bottom: 1.25rem;
  }
}

/* ====== PARTAGE — lisibilité et hiérarchie ====== */

.section#partage .eyebrow {
  letter-spacing: .12em;
  font-weight: 700;
  color: rgba(0,0,0,.45);
}

.section#partage h2 {
  margin-top: .25rem;
  margin-bottom: .5rem;
}

.section#partage .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 68ch;
  color: rgba(0,0,0,.78);
}

.grid-2-balanced {
  display: grid;
  grid-template-columns: 1.1fr .9fr; /* un peu plus d'espace pour les cartes d'avantages */
  gap: 24px;
  margin-top: 22px;
}

.stack { display: grid; gap: 18px; }

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Harmonisation des cartes Avantages et Comment ça marche */
.card-soft,
.card-steps {
  background: #fffdf6; /* même ton crème clair */
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
  transition: background-color .25s ease, box-shadow .25s ease;
}

.card-soft:hover,
.card-steps:hover {
  background: #fff9eb;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}


.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .5rem;
}

.card-title h3 { margin: 0; }

.icon {
  width: 22px;
  height: 22px;
  opacity: .7;
}

.checklist {
  margin: .25rem 0 0 0;
  padding-left: 1.1rem;
}

.checklist li {
  margin: .35rem 0;
  line-height: 1.6;
}

.steps {
  counter-reset: s;
  margin: .25rem 0 0 0;
  padding-left: 1.1rem;
}

.steps li {
  counter-increment: s;
  margin: .6rem 0;
  line-height: 1.6;
}

.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

.box.highlight {
  background: linear-gradient(180deg, rgba(0,163,180,.08), rgba(242,183,5,.08));
  border: 1px solid rgba(0,163,180,.25);
  border-radius: 14px;
  padding: 18px 20px;
}

/* Mobile */
@media (max-width: 900px) {
  .grid-2-balanced {
    grid-template-columns: 1fr;
  }
}

/* Home - section Partage : lisibilité renforcée */
.section#partage h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.section#partage .lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); }
.section#partage .card h3 { font-size: 1.15rem; }
.section#partage .checklist li, 
.section#partage .steps li { font-size: 1.02rem; }
.section#partage .more-link { margin-top: 18px; }
.section#partage .more-link .btn.ghost { border-width: 2px; }

/* Page "En savoir plus" */
.hero-slim { min-height: 46vh; display:flex; align-items:center; padding: 5rem 0 3rem; }
.hero-slim .hero-text { text-align: center; max-width: 880px; margin: 0 auto; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 18px;
}
.cards-tight .card { padding: 16px 18px; }

.details summary {
  cursor: pointer;
  font-weight: 600;
  margin-top: .25rem;
  margin-bottom: .35rem;
}
.details p, .details ul { margin: 0 0 .25rem 0; }

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ====== Page "En savoir plus" — HERO enrichi ====== */
.hero-rich {
  min-height: 58vh;
  display: flex; align-items: center;
  position: relative;
  padding: 6rem 0 3rem;
}
.hero-rich::after { /* voile doux pour lisibilité */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 30%, rgba(0,0,0,.12), rgba(0,0,0,.0) 60%);
  pointer-events: none;
}
.hero-rich .hero-text { text-align: center; max-width: 920px; margin: 0 auto; }
.hero-rich .lead { opacity: .95; }

/* Pills (sommaire court) */
.pills {
  display: inline-flex; flex-wrap: wrap; gap: 10px;
  margin-top: 1rem;
}
.pills a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff; text-decoration: none; font-weight: 600;
  backdrop-filter: blur(2px);
}
.pills a:hover { border-color: #fff; }

/* ====== Cartes modèles — plus “vivantes” ====== */
.cards-emph .card {
  position: relative;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  background: #fff;
  border-left: 6px solid #00A3B4; /* marque YesPartner */
}
.cards-emph .card:nth-child(2) { border-left-color: #F2B705; }
.cards-emph .card:nth-child(3) { border-left-color: #F2994A; }

.card-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em;
  color: rgba(0,0,0,.6);
  margin-bottom: .25rem;
}
.card-kicker svg { width: 18px; height: 18px; opacity: .7; }

/* Détails (accordéons) propres */
.details summary {
  cursor: pointer; font-weight: 700; margin-top: .35rem;
}
.details[open] summary { color: #005766; }
.details p, .details ul { margin: .35rem 0 .25rem 0; }

/* Typo plus généreuse sur cette page */
#guide h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
#guide .card h3 { font-size: 1.15rem; }
#guide .checklist li { font-size: 1.02rem; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-rich { min-height: 46vh; padding: 4.5rem 0 2.5rem; }
  .cards-emph .card { border-left-width: 5px; }
}

/* HERO compact (juste titre + sous-titre) */
.hero-compact {
  min-height: 48vh;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 3rem;
}
.hero-compact .hero-text {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

/* Titre de section plus présent */
#guide h2 {
  margin-top: .25rem;
  margin-bottom: .5rem;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
}

/* Si un jour on remet des liens d’ancrage (pills),
   cette règle évite le "scroll trop bas" avec le header fixe */
[id^="modele-"] {
  scroll-margin-top: 96px;  /* ajuste si ton header change de hauteur */
}



/* ==== HERO "mini" très fin pour la page partage-energie ==== */
.hero.hero-mini {
  min-height: 6vh !important;        /* encore plus court */
  height: auto !important;
  padding-top: 0.8rem !important;    /* très peu d’espace au-dessus */
  padding-bottom: 0.8rem !important; /* très peu d’espace en dessous */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero.hero-mini .hero-text {
  text-align: center;
  margin: 0 auto;
}

.hero.hero-mini h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.05;
}

/* ===== Page "partage-energie" : hero ultra-fin, hauteur forcée ===== */
#hero-partage {
  height: 120px !important;      /* hauteur fixe et compacte */
  min-height: 0 !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#hero-partage .hero-inner,
#hero-partage .hero-text {
  margin: 0 auto !important;
  padding: 0 !important;
}

#hero-partage h1 {
  margin: 0 !important;
  line-height: 1.05 !important;
  font-size: clamp(1.3rem, 1.9vw, 1.8rem) !important;
}

/* rapprocher le bloc suivant */
.section#guide { padding-top: 8px !important; }
#guide h2 { margin-top: 4px !important; }

/* ===== OFFRE A A Z — accents de couleur et lisibilite ===== */

/* Cartes "etapes" : bord colore + badge chiffre assorti */
.step { position: relative; padding-top: 26px; }
.step.accent-turq   { border-left: 6px solid var(--yp-turq-1); }
.step.accent-yellow { border-left: 6px solid var(--yp-yellow); }
.step.accent-peach  { border-left: 6px solid var(--yp-peach); }
.step.accent-green  { border-left: 6px solid var(--green); }

.step .step-num{
  position: absolute; top: -12px; left: -12px;
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 700; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.step.accent-turq   .step-num{ background: var(--yp-turq-1); }
.step.accent-yellow .step-num{ background: var(--yp-yellow); color:#1b1b1b; }
.step.accent-peach  .step-num{ background: var(--yp-peach); }
.step.accent-green  .step-num{ background: var(--green); }

/* Sous-cartes liees aux etapes : meme code couleur */
.card.accent-turq   { border-left: 6px solid var(--yp-turq-1); }
.card.accent-yellow { border-left: 6px solid var(--yp-yellow); }
.card.accent-peach  { border-left: 6px solid var(--yp-peach); }
.card.accent-green  { border-left: 6px solid var(--green); }

#offre .cards-inline .card{
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
#offre .cards-inline .card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
}

/* Micro-UI */
#offre .kicker{
  font-weight: 700; letter-spacing: .02em; font-size: .85rem;
  color: rgba(0,0,0,.6); margin: -2px 0 6px;
}
#offre .lead{ max-width: 72ch; }

/* Un peu plus d’air et de rythme */
#offre .steps .card h3{ margin-bottom: 6px; }
#offre .steps .card p{ margin: 0; }
#offre .mt-48{ margin-top: 40px; }

/* Responsive */
@media (max-width: 900px){
  #offre .steps{ gap: 14px; }
  .step .step-num{ top: -10px; left: -10px; width: 32px; height: 32px; }
}


/* ===== PARCOURS : flèche visible (haut OU bas) ===== */

.flow{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
  list-style: none;
  padding-left: 0;
}

/* --- Cartes --- */
.flow-step{
  position: relative;
  background:#fff;
  border-radius:16px;
  padding:18px 20px 16px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  border-left:6px solid transparent;
}
.flow-step h3{ margin:0 0 8px; font-size:1.12rem; color:#00363D; }
.flow-step ul{ margin:0; padding-left:1.05rem; font-size:.98rem; line-height:1.5; }
.flow-step li{ margin:.35rem 0; }

.flow-step .badge{
  position:absolute; top:-14px; left:-14px;
  width:36px; height:36px; display:grid; place-items:center;
  border-radius:999px; font-weight:700; color:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.14);
}

/* Couleurs */
.flow-step.accent-turq   { border-left-color: var(--yp-turq-1); }
.flow-step.accent-yellow { border-left-color: var(--yp-yellow); }
.flow-step.accent-peach  { border-left-color: var(--yp-peach); }
.flow-step.accent-green  { border-left-color: var(--green); }
.flow-step.accent-turq   .badge{ background: var(--yp-turq-1); }
.flow-step.accent-yellow .badge{ background: var(--yp-yellow); color:#1b1b1b; }
.flow-step.accent-peach  .badge{ background: var(--yp-peach); }
.flow-step.accent-green  .badge{ background: var(--green); }



/* --- Flèche commune --- */
.flow::before,
.flow::after{
  content:""; position:absolute; left:0; right:0;
}
.flow::before{           /* le trait multicolore */
  height:8px;
  background:linear-gradient(90deg, var(--yp-turq-1), var(--yp-yellow), var(--yp-peach), var(--green));
  border-radius:999px;
}
.flow::after{
  content:"";
  position:absolute;
  bottom:-28px;     /* ou top:-28px si la flèche est au-dessus */
  right:-20px;      /* <- le triangle est désormais à droite du trait */
  width: 0;
  height: 0;
  border-top:14px solid transparent;
  border-bottom:14px solid transparent;
  border-left:22px solid var(--green); /* flèche orientée vers la droite */
  z-index:1;
}


/* --- Variante: flèche AU-DESSUS --- */
.flow.flow--bar-top{ margin-top:42px; }
.flow.flow--bar-top::before{ top:-18px; }
.flow.flow--bar-top::after{ top:-28px; right:-4px; }

/* --- Variante: flèche AU-DESSOUS --- */
.flow.flow--bar-bottom{ margin-bottom:34px; }
.flow.flow--bar-bottom::before{ bottom:-18px; }
.flow.flow--bar-bottom::after{ bottom:-28px; right:-4px; }

/* Responsive */
@media (max-width:980px){
  .flow{ grid-template-columns:1fr; gap:20px; }
  .flow::before, .flow::after{ display:none; } /* on retire la flèche sur mobile */
  .flow-step .badge{ top:-10px; left:-10px; width:32px; height:32px; }
}

/* --- Corrige la pointe de flèche : à DROITE --- */

/* Si la flèche est en BAS */
.flow.flow--bar-bottom::before{
  bottom: -18px !important;
  left: 0 !important;
  right: 28px !important;   /* on libère l’espace pour la pointe à droite */
}
.flow.flow--bar-bottom::after{
  content: "" !important;
  position: absolute !important;
  bottom: -28px !important;
  right: -4px !important;   /* >> place la pointe à droite */
  left: auto !important;    /* << annule une éventuelle position à gauche */
  width: 0; height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid var(--green);  /* triangle orienté vers la droite */
  z-index: 1;
}

/* Si la flèche est en HAUT (au cas où tu utilises flow--bar-top) */
.flow.flow--bar-top::before{
  top: -18px !important;
  left: 0 !important;
  right: 28px !important;
}
.flow.flow--bar-top::after{
  content: "" !important;
  position: absolute !important;
  top: -28px !important;
  right: -4px !important;
  left: auto !important;
  width: 0; height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid var(--green);
  z-index: 1;
}


/* ===== Team (2 colonnes compactes) ===== */

/* grille : 1 colonne en mobile, 2 colonnes dès ~860px */
.team-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px){
  .team-grid{ grid-template-columns: 1fr 1fr; }
}

/* carte membre compacte : photo + texte sur une ligne */
.member{
  --photo: 128px;                /* taille du portrait (avant 160px) */
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: var(--photo) 1fr; /* photo | texte */
  gap: 16px;
  align-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.07);
}

/* variante “photo à droite” (Elise) */
.member.right{
  grid-template-columns: 1fr var(--photo);
}
.member.right .member-photo{ order: 2; }
.member.right .member-info { order: 1; }

/* portrait rond (même DA) */
.member-photo{
  width: var(--photo);
  height: var(--photo);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid #fff;
  outline: 4px solid var(--yp-turq-1);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* anneau par couleur */
.member.accent-turq  .member-photo{ outline-color: var(--yp-turq-1); }
.member.accent-green .member-photo{ outline-color: var(--green); }

/* texte resserré */
.member-info h3{ margin: 0 0 4px; line-height: 1.15; }
.member-info .role{ margin: 0; font-weight: 600; color: var(--green); }

/* empilement propre en mobile */
@media (max-width: 720px){
  .member,
  .member.right{
    grid-template-columns: 1fr;   /* photo au-dessus du texte */
    text-align: left;
  }
  .member-photo{
    --photo: 120px;
    margin: 0 auto 10px;
  }
}

/* ===== HERO : logo en haut à gauche + slogan ===== */
.hero-inner { position: relative; }

.hero-brand{
  position: absolute;
  top: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

/* Logo compact en haut à gauche */
.hero-brand img{
  width: clamp(120px, 18vw, 220px);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
  image-rendering: auto;
}

/* Slogan à côté du logo (pill translucide) */
.hero-slogan{
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(2px);
  white-space: nowrap;
}

/* Mobile : le slogan passe sous le logo et réduit la taille */
@media (max-width: 640px){
  .hero-brand{ flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-slogan{ font-size: .9rem; padding: 5px 10px; }
}

/* --- HERO: corrige chevauchement du logo/slogan --- */

/* on réserve de la place au-dessus du H1 */
.hero-text{
  /* pousse le bloc titre/CTA vers le bas, sous le logo + slogan */
  padding-top: clamp(90px, 12vw, 160px);
}

/* logo + slogan en haut à gauche, largeur contrôlée */
.hero-brand{
  position: absolute;
  top: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  max-width: min(48%, 560px);   /* évite de mordre sur le H1 */
  flex-wrap: wrap;              /* autorise le retour à la ligne si besoin */
}

/* taille du logo */
.hero-brand img{
  width: clamp(120px, 18vw, 220px);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
}

/* slogan: peut aller à la ligne et reste contenu */
.hero-slogan{
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(2px);
  white-space: normal;          /* << plus de “single line” qui déborde */
  max-width: 28ch;              /* limite la longueur visuelle */
  font-size: clamp(.85rem, 1.1vw, 1rem);
}

/* tablette/mobile: on aligne le slogan sous le logo */
@media (max-width: 640px){
  .hero-brand{ flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-text{ padding-top: 120px; } /* un peu plus d’air sur petit écran */
}


/* ===== PARTENAIRES ===== */
.partenaires {
  background: #fff;
  padding: 48px 0 60px;
  text-align: center;
  border-top: 2px solid rgba(0,0,0,0.05);
}

.partenaires-titre {
  color: var(--green);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 26px;
}

/* --- NOUVEL ALIGNEMENT GLOBAL --- */
.logos-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* --- logos IDETA / IDEA / CLICK --- */
.logos-partenaires {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logo-europe img {
  height: 72px; /* légèrement plus grand */
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
  transition: transform .2s ease, filter .2s ease;
}

.logos-partenaires img:hover,
.logo-europe img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.15));
}

/* --- Bloc FEDER (UE + Wallonie + En Mieux) --- */
.logo-europe {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .logos-group {
    flex-direction: column;
    gap: 28px;
  }
  .logos-partenaires img,
  .logo-europe img {
    height: 50px;
  }
}

/* Légère mise en avant du logo FEDER sans casser l'alignement */
.partenaires .logo-europe img {
  transform: scale(1.12); /* agrandit de ~12% visuellement */
  transform-origin: center;
}


/* masque le checkbox du burger/toggle s’il est present dans le header */
.site-header input[type="checkbox"],
.site-header .nav-toggle{
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  display: block; /* evite les decalages */
}


/* --- HERO : version sans logo, slogan centré au-dessus du H1 --- */
.hero .hero-text{
  padding-top: 0 !important;   /* on retire l'espace qui servait au logo */
}

.hero-slogan--center{
  display: inline-block;
  margin: 0 auto 10px;         /* centré et petit espace sous le pill */
  text-align: center;
}

/* on garde le style de pill existant, mais adapté au centre */
.hero-text .hero-slogan{
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(2px);
  white-space: normal;
  max-width: 28ch;
  font-size: clamp(.85rem, 1.1vw, 1rem);
}

/* --- Correction centrage texte hero --- */
.hero .hero-text {
  text-align: center;              /* centre tout le texte */
  max-width: 850px;                /* limite la largeur pour un rendu propre */
  margin: 0 auto;                  /* centre le bloc lui-même */
}

.hero .hero-text p {
  text-align: center;              /* s'assure que le paragraphe est centré */
  margin-left: auto;
  margin-right: auto;
}


/* --- Section Avantages & Comment ça marche --- */

/* Légère couleur de fond douce (teinte beige très pâle) */
.info-box {
  background-color: #fffdf6; /* ton crème clair, cohérent avec ton fond */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1.5rem 1.75rem;
  transition: background-color 0.3s ease;
}

/* Légère surbrillance au survol */
.info-box:hover {
  background-color: #fff9eb;
}

/* --- Icônes des titres --- */
.info-box h3::before {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.1em;
}

/* Économie → petite icône 💰 */
.info-box.economie h3::before {
  content: "💰";
}

/* Social et environnement → déjà étoile, donc inchangé */
.info-box.social h3::before {
  content: "⭐";
}

/* Comment ça marche → coche ✔ */
.info-box.marche h3::before {
  content: "✔";
}

/* Alignement propre */
.info-box h3 {
  display: flex;
  align-items: center;
  color: #005766;
  margin-bottom: 0.6rem;
}

/* ---- Cartes avantages / steps : fond très léger + ombre douce ---- */
.card.card-soft {
  background: #fffdf6;                 /* crème très clair */
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.card.card-soft:hover {
  background: #fff9eb;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Titre + icône alignés */
.card-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .65rem;
}
.card-title h3 {
  margin: 0;
  color: #005766;                      /* bleu nuit YesPartner */
  font-weight: 700;
}

/* Icône (taille et couleur par défaut) */
.card .icon {
  width: 22px;
  height: 22px;
  color: #667085;                       /* neutre par défaut */
  flex: 0 0 22px;
}

/* Accent par type de carte (icône + liseré à gauche) */
.card-eco        { border-left: 4px solid #F2B705; } /* jaune */
.card-social     { border-left: 4px solid #F2994A; } /* pêche */
.card-steps      { border-left: 4px solid #00A3B4; } /* turquoise */

.card-eco   .icon { color: #F2B705; }
.card-social.icon { color: #F2994A; } /* sécurité si icône seule */
.card-social .icon { color: #F2994A; }
.card-steps .icon { color: #00A3B4; }

/* Liste à puces "checklist" : puce ronde colorée */
.checklist {
  list-style: none;
  padding-left: 0;
  margin: .25rem 0 0;
}
.checklist li {
  position: relative;
  padding-left: 1.25rem;
  margin: .4rem 0;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #00A3B4;                 /* turquoise par défaut */
  box-shadow: 0 0 0 2px #ffffff;        /* petit anneau blanc, propre */
}

/* Steps (liste ordonnée) */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: .25rem 0 0;
}
.steps li {
  position: relative;
  padding-left: 2rem;
  margin: .55rem 0;
}
.steps li::before {
  counter-increment: step;
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: #00A3B4;
  font-weight: 700;
}



.card-title .fa-dollar-sign {
  color: #F2B705; /* même jaune que le reste */
  font-size: 1.2em;
  opacity: 0.8;
}

/* Taille/alignement des icones FA utilisées comme .icon */
.icon.fa-solid{
  font-size: 22px;        /* même gabarit que les SVG 22x22 */
  line-height: 1;
  width: 22px;
  height: 22px;
  display: inline-block;
}

/* Couleur cohérente avec la bordure jaune de la carte eco */
.card-eco .icon{
  color: #F2B705;
}


/* ===== PARTENAIRES — fix tailles et alignement ===== */
.partenaires .logos-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

/* Taille commune pour TOUS les logos (évite les énormes dimensions natives) */
.partenaires .logos-group img {
  display: block;
  max-height: 64px !important;   /* hauteur max fixe */
  height: auto !important;        /* garde le ratio */
  max-width: 260px;               /* évite les logos très allongés */
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.10));
  transition: transform .2s ease, filter .2s ease;
}

/* Légère emphase pour le visuel FEDER (un poil plus grand) */
.partenaires .logo-europe img {
  max-height: 70px !important;
}

/* Compact sur petits écrans */
@media (max-width: 720px){
  .partenaires .logos-group { gap: 24px; }
  .partenaires .logos-group img { max-height: 52px !important; }
  .partenaires .logo-europe img { max-height: 58px !important; }
}

/* ===== Checklist couleur personnalisée par modèle ===== */

/* Par défaut : turquoise */
.checklist li::before {
  background: #00A3B4;
}

/* Modèle 2 (même bâtiment) → jaune */
#modele-batiment .checklist li::before {
  background: #F2B705;
}

/* Modèle 3 (communauté d’énergie) → pêche orangé */
#modele-communaute .checklist li::before {
  background: #F2994A;
}

/* ===== MENU DÉROULANT (fond assorti #24525A) ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  padding: 0;
}

/* Menu déroulant : même fond que la banderole */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #24525A; /* fond principal YesPartner */
  border: none;
  min-width: 200px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 10;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #ffffff; /* texte blanc */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: background-color 0.25s ease;
}

/* Au survol : bleu plus foncé pour feedback visuel */
.dropdown-content a:hover {
  background-color: #1b3e44; /* version légèrement plus foncée */
  color: #ffffff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Atténuation légère du texte principal au survol */
.main-nav .dropdown:hover > .dropbtn {
  opacity: 0.9;
}


/* ===== SECTION EQUIPE (fond blanc + cartes jaunes légères) ===== */
#equipe {
  background-color: #ffffff; /* fond global blanc */
}

/* "QUI SOMMES-NOUS" en bleu-vert, comme les autres titres */
#equipe .eyebrow {
  color: #005766; /* bleu-vert YesPartner */
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Les cartes de chaque membre (fond légèrement jaune) */
#equipe .member {
  background-color: #fff8e1; /* jaune très doux YesPartner */
  border-radius: 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}



/* ===== Photo equipe : 1 seul anneau (blanc + couleur) ===== */
#equipe .member-photo{
  border-radius: 50%;
  display: block;
  background:#fff;          /* bande blanche */
  padding: 1px;             /* epaisseur du liseré blanc */
  box-shadow: 0 0 0 4px currentColor; /* anneau exterieur (1 seul) */
  object-fit: cover;
}

/* Couleur de l'anneau (via currentColor) */
#equipe .accent-turq  .member-photo{ color:#00A3B4; }
#equipe .accent-green .member-photo{ color:#005766; }


/* ===== Pied de page centré ===== */
.site-footer {
  text-align: center;      /* centre le texte horizontalement */
}

.site-footer .wrap p {
  margin: 4px 0;           /* espace uniforme entre les lignes */
}


/* ====== SECTION MISSION / VISION ====== */

#mission {
  background: #ffffff;
  padding-top: 80px;
  padding-bottom: 80px;
}

#mission .mission-intro {
  align-items: center;
  gap: 40px;
  margin-bottom: 64px;
}

#mission .mission-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: rgba(0,0,0,0.8);
}

#mission .vision-image {
  display: flex;
  justify-content: center;
}

#mission .vision-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

#mission .mission-title {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

#mission .mission-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  color: rgba(0,0,0,0.8);
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Cartes mission: fond blanc casse tire vers le jaune */
.mission-card{
  background: #FFF8E1; /* blanc casse jaune doux, coherent avec ta DA */
  border: 1px solid rgba(242, 183, 5, 0.18); /* leger rappel jaune */
  border-radius: 16px;
  padding: 20px 18px 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mission-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* petits visuels ronds: mieux integres sur fond jaune casse */
.mission-card img{
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover;
  background:#fff;                    /* liseré interieur propre */
  padding: 6px;                       /* bande blanche fine */
  box-shadow: 0 0 0 3px rgba(0, 87, 102, .25); /* anneau leger turquoise */
  margin-bottom: 14px;
}


.mission-card h3 {
  color: var(--yp-blue-mid);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.mission-card p {
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 950px) {
  #mission .mission-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #mission .vision-image img {
    max-width: 260px;
    margin: 0 auto;
  }

  .mission-cards {
    grid-template-columns: 1fr;
  }
}


/* Center the intro block and limit its width */
.mission-center{
  text-align: center;
  max-width: 880px;
  margin: 0 auto 56px;
}
.mission-center p{
  max-width: 72ch;
  margin: 0 auto 14px;
}

/* Gentle background "glow" on the right so the area is not empty */
#mission{
  position: relative;            /* needed for the pseudo element below */
  overflow: hidden;              /* hides the glow edges */
}
#mission::before{
  content: "";
  position: absolute;
  right: -12%;
  top: -80px;
  width: 540px;
  height: 540px;
  background: radial-gradient(ellipse at center,
              rgba(0,163,180,.10) 0%,
              rgba(242,183,5,.10) 55%,
              rgba(0,0,0,0) 72%);
  filter: blur(2px);
  pointer-events: none;
}

/* Make important words warmer but still elegant */
#mission .mission-intro p strong{
  color: #005766; /* brand blue-green */
  background: linear-gradient(180deg, rgba(242,183,5,.28), rgba(242,183,5,0) 60%);
  padding: 0 .05em; /* tiny inset so the highlight looks neat */
  border-radius: 2px;
}

/* ===== Ajustements Vision & Valeurs ===== */

/* Centre le titre principal */
#mission h2 {
  text-align: center;
}

/* ===== Section "Comprendre" : taille normale + lignes plus longues ===== */
#partage .wrap{
  max-width: 1200px;          /* un peu plus large pour éviter les retours trop tôt */
}

/* Paragraphe d'intro : même taille que le corps du site */
#partage .lead,                 /* si le paragraphe a la classe .lead */
#partage > .wrap p:first-of-type{
  font-size: 1.05rem;          /* taille "par défaut" du site */
  line-height: 1.7;
  max-width: 95ch;             /* lignes plus longues, pas coupées trop tôt */
}

/* Mobile : on laisse respirer */
@media (max-width: 680px){
  #partage .lead,
  #partage > .wrap p:first-of-type{
    max-width: 100%;
  }
}

.site-footer .tagline{
  font-weight: 600;
  color: #e3f2f1;
  opacity: .9;
  margin: 0 0 6px 0;
}


/* Harmonise la couleur des puces avec le texte pour la carte "Limitations" */
#guide .card h3 {
  color: var(--green);
}

#guide .card h3 + .checklist li::before {
  background: var(--green);
}


/* Puces ORANGE pour le Modèle 3 — Communautés d’énergie */
#modele-3 .checklist li::before,
#modele-communaute .checklist li::before,
.card-modele-3 .checklist li::before,
.modele-card.modele-3 .checklist li::before,
.modele-card.peach .checklist li::before,
[data-modele="3"] .checklist li::before {
  background: #F2994A !important; /* même orange que le liseré */
}

/* Si la liste n'a pas la classe .checklist dans cette carte,
   on couvre aussi les <ul> standard DANS la carte Modèle 3 */
#modele-3 ul li::before,
#modele-communaute ul li::before,
.card-modele-3 ul li::before,
.modele-card.modele-3 ul li::before,
.modele-card.peach ul li::before,
[data-modele="3"] ul li::before {
  background: #F2994A !important;
}

/* Fix anchor scroll offset for sticky header */
#partage,
#mission,
#offre,
#equipe,
#contact {
  scroll-margin-top: 110px;
}

/* ===== MOBILE NAV (index.html) ===== */

/* Burger icon hidden on desktop */
.burger {
  display: none;
}

/* Only on small screens */
@media (max-width: 800px) {

  /* Header bar un peu plus compacte sur mobile */
  .site-header .wrap {
    height: 64px;
    padding-inline: 16px;
  }

  .brand-logo {
    height: 64px;
  }

  /* Wrap: brand + burger sur une ligne */
  .site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* On cache la nav tant que le menu n'est pas ouvert */
  .main-nav {
    position: fixed;
    top: 64px;           /* juste sous le header */
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--blue);
    flex-direction: column;
    padding: 12px 20px 16px;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .main-nav a {
    padding: 6px 0;
  }

  /* Bouton "Contact" un peu plus large pour le pouce */
  .main-nav .btn {
    align-self: flex-start;
    padding: 10px 14px;
  }

  /* Burger visible sur mobile */
  .burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }

  .burger span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    display: block;
  }

  /* Quand on coche le burger, on déroule la nav */
  #menu-toggle:checked + label.burger + nav.main-nav {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }

  /* Dropdown: comportement plus simple sur mobile */
  .dropdown-content {
    position: static;
    background-color: #24525A;
    box-shadow: none;
    border-radius: 6px;
    margin-top: 4px;
  }

  /* Sur mobile, on laisse hover faire apparaitre le sous-menu
     et on ajoute aussi focus-within pour acces clavier */
  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: block;
  }


}

/* Mobile: always show dropdown submenu */
@media (max-width: 800px) {

  .main-nav .dropdown {
    display: block;
  }

  .main-nav .dropdown-content {
    display: block !important;
    position: static;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    padding-left: 14px;
    margin-top: 4px;
  }

  .main-nav .dropdown-content a {
    padding: 6px 0;
    font-size: 0.95rem;
  }
}


