/* /home v3c : proportions du modèle Figma (hero 1597x588, en-tête 65 px). Limité à body.page-accueil. Retour arrière : restaurer home-v3.css.avant-v3c */
body.page-accueil{--hv-menthe:#d8f3e4;--hv-entete:65px;--hv-H:36.82vw}

/* Hero : bureau seulement. Positions en % de la largeur, hauteurs en vw (modèle : 588/1597) */
.hm-oiseaux{display:none}
@media (min-width:900px){
  body.page-accueil .hm-bloc{display:block!important;position:relative;overflow:hidden;box-sizing:border-box;padding:0!important;min-height:0!important;height:calc(var(--hv-H) - var(--hv-entete))!important}
  body.page-accueil .hm-bloc>.hm-promesse{position:absolute;z-index:1;left:25.5%;width:49%;max-width:none;margin:0;text-align:left;top:calc(var(--hv-H)*.44 - var(--hv-entete))}
  body.page-accueil .hm-bloc>.hm-promesse,body.page-accueil .hm-bloc>.hm-promesse *{font-size:max(1.5rem,1.78vw)!important;line-height:1.2!important}
  body.page-accueil .hm-bloc>.hm-cta{position:absolute;z-index:1;left:25.5%;width:49%;max-width:none;margin:0;top:calc(var(--hv-H)*.554 - var(--hv-entete))}
  body.page-accueil .hm-bloc>.hm-cta :is(a,button){width:100%;box-sizing:border-box;min-height:max(48px,calc(var(--hv-H)*.095))!important;font-size:max(1rem,1.03vw)!important}
  body.page-accueil .hm-bloc>.hm-oiseaux{display:block;position:absolute;inset:0;z-index:0;pointer-events:none;margin:0;padding:0;width:auto;max-width:none}
  .hm-oiseaux::before{content:"";position:absolute;left:69.3%;right:0;top:calc(var(--hv-H)*.19 - var(--hv-entete));bottom:0;background:var(--vert-vif);
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 490 476' preserveAspectRatio='none'%3E%3Cpath d='M490 60C480 30 452 0 410 0C366 0 338 40 328 96C314 174 250 192 170 208C110 222 20 262 6 340C-1 379 12 440 42 476H490Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 490 476' preserveAspectRatio='none'%3E%3Cpath d='M490 60C480 30 452 0 410 0C366 0 338 40 328 96C314 174 250 192 170 208C110 222 20 262 6 340C-1 379 12 440 42 476H490Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat}
  .hm-oiseaux img{position:absolute;left:71.5%;top:calc(var(--hv-H)*.459 - var(--hv-entete));width:28%;max-width:none;height:auto;display:block}
}

/* Trois panneaux */
.hv-panneaux{width:calc(100% - 32px);margin:40px auto 0;display:grid;gap:24px;container-type:inline-size}
.hv-panneau{display:flex;flex-direction:column;align-items:center;gap:20px;padding:28px 24px;border-radius:16px;background:var(--hv-menthe);color:var(--encre);text-align:center}
.hv-p3{background:var(--vert-fonce);color:#fff}
.hv-img{position:relative;flex:none;width:min(260px,72%);display:flex;justify-content:center;align-items:center}
.hv-img img{position:relative;z-index:1;display:block;width:100%;height:auto}
.hv-img svg{display:block;width:100%;height:auto}
.hv-img--oiseaux::before{content:"";position:absolute;z-index:0;inset:12% 2% 0 2%;background:var(--vert-vif);border-radius:58% 42% 50% 50% / 52% 58% 42% 48%}
.hv-txt h2{margin:0 0 12px;font-size:1.375rem;line-height:1.3;font-weight:700}
.hv-txt p{margin:0 0 20px;font-size:1.0625rem;line-height:1.5}
.hv-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:8px;font-weight:700;font-size:1rem;line-height:1.25;text-align:center;text-decoration:none;text-transform:none;color:#fff;background:var(--vert-texte)}
.hv-btn--rose{background:var(--rose)}
.hv-btn--clair{background:#fff;color:var(--vert-fonce)}
.hv-btn:active{transform:scale(.97)}
.hv-btn:focus-visible{outline:3px solid var(--vert-fonce);outline-offset:3px}
.hv-p3 .hv-btn:focus-visible{outline-color:#fff}
.hv-f1 .f-fonce{fill:var(--vert-fonce)}.hv-f1 .f-vif{fill:var(--vert-vif)}

/* Bureau : panneaux à 75,5 % de la largeur ; dimensions internes en cqw (largeur du panneau, modèle : 1205) */
@media (min-width:900px){
  .hv-panneaux{width:75.5%;margin-top:64px;gap:28px}
  .hv-panneau{flex-direction:row;align-items:center;gap:8cqw;padding:5.8cqw 7.5cqw 5.8cqw 8.7cqw;text-align:left}
  .hv-img{flex:0 0 16cqw;width:auto}
  .hv-p2{flex-direction:row-reverse}
  .hv-p2 .hv-img,.hv-p3 .hv-img{flex-basis:27cqw}
  .hv-txt{flex:1;min-width:0}
  .hv-txt h2{font-size:max(1.375rem,1.55cqw)}
  .hv-txt p{font-size:max(1.0625rem,1.3cqw)}
  .hv-btn{min-height:max(48px,3cqw);font-size:max(1rem,1.2cqw);padding:0 2cqw}
}

/* v3f : formes vertes des panneaux 2 et 3 (contours lissés d'après le modèle). Retour arrière : restaurer home-v3.css.avant-v3f */
.hv-img--oiseaux::before{border-radius:0;inset:auto;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%}
.hv-p2 .hv-img--oiseaux::before{top:-20%;right:-16%;bottom:-22%;left:4%;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308 185' preserveAspectRatio='none'%3E%3Cpath d='M12 112C6 58 40 22 102 10C156 2 226 6 276 22C304 34 306 76 296 106C284 144 224 176 150 180C84 184 18 166 12 112Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308 185' preserveAspectRatio='none'%3E%3Cpath d='M12 112C6 58 40 22 102 10C156 2 226 6 276 22C304 34 306 76 296 106C284 144 224 176 150 180C84 184 18 166 12 112Z'/%3E%3C/svg%3E")}
.hv-p3 .hv-img--oiseaux::before{top:5%;right:-8.5%;bottom:-6%;left:44%;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 140' preserveAspectRatio='none'%3E%3Cpath d='M6 100C2 70 30 42 70 30C110 16 150 4 176 14C186 24 186 70 176 100C164 126 140 138 100 136C56 134 10 128 6 100Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 140' preserveAspectRatio='none'%3E%3Cpath d='M6 100C2 70 30 42 70 30C110 16 150 4 176 14C186 24 186 70 176 100C164 126 140 138 100 136C56 134 10 128 6 100Z'/%3E%3C/svg%3E")}
@media (max-width:899px){
  .hv-p2 .hv-img--oiseaux::before{top:-14%;right:-8%;bottom:-16%;left:0}
  .hv-p3 .hv-img--oiseaux::before{top:3%;right:-4%;bottom:-6%;left:40%}
}

/* v3g : zones agrandies, contours contenus. Retour arrière : restaurer home-v3.css.avant-v3g */
.hv-p2 .hv-img--oiseaux::before{top:-18%;right:-12%;bottom:-20%;left:2%}
.hv-p3 .hv-img--oiseaux::before{top:-2%;right:-8%;bottom:-8%;left:36%}
@media (max-width:899px){.hv-p2 .hv-img--oiseaux::before{top:-12%;right:-6%;bottom:-14%;left:0}.hv-p3 .hv-img--oiseaux::before{top:0;right:-4%;bottom:-8%;left:36%}}

/* === Échelle typographique unique de /home === */
html body.page-accueil{
  --t-titre:1.5rem;      /* 24 px : titres de section */
  --t-sous:1.1875rem;    /* 19 px : sous-titres, cartes, pied de page */
  --t-texte:1.0625rem;   /* 17 px : texte courant et boutons */
}
html body.page-accueil .hc-titre,
html body.page-accueil .hv-txt h2{font-size:var(--t-titre);line-height:1.25;font-weight:700}
html body.page-accueil .hc-bloc h3,
html body.page-accueil .hp-h{font-size:var(--t-sous);line-height:1.3;font-weight:700}
html body.page-accueil .hc-bloc p,
html body.page-accueil .hv-txt p,
html body.page-accueil .hv-txt strong,
html body.page-accueil .hp-sous,
html body.page-accueil .hp-copie,
html body.page-accueil .hp-liens a{font-size:var(--t-texte);line-height:1.5}
html body.page-accueil .hv-btn,
html body.page-accueil .hm-cta,
html body.page-accueil .hm-bloc>.hm-cta :is(a,button){font-size:var(--t-texte)!important}
