/* Lot accueil : tout est limité à body.page-accueil, donc à /home. */
html:has(body.page-accueil), body.page-accueil, body.page-accueil .ecran, body.page-accueil .defile,
body.page-accueil .hm-compagnon, body.page-accueil .hm-pied { background: #fff !important; background-image: none !important; }
body.page-accueil { color-scheme: light; }

/* Bandeau : « Aidez » en blanc, « sans vous épuiser » en vert clair */
body.page-accueil .hm-promesse { color: #fff; }
body.page-accueil .hm-promesse span { display: inline; color: #c9f7dc; font-size: inherit; font-weight: inherit; opacity: 1; }

.hm-compagnon { padding: 36px 24px 8px; text-align: center; }
.hc-titre { margin: 0 0 8px; font-size: 1.625rem; line-height: 1.25; font-weight: 800; color: var(--vert-fonce, #1d603f); }
.hc-bloc { margin: 36px auto 0; max-width: 420px; }
.hc-forme { display: inline-block; width: 112px; height: 112px; }
.hc-forme svg { width: 100%; height: 100%; display: block; }
.hc-blob { fill: var(--menthe, #f1faf5); }
.hc-fond { fill: #fff; stroke: var(--vert-texte, #157a43); stroke-width: 3; }
.hc-accent { fill: var(--vert-vif, #22a861); }
.hc-pt { fill: #fff; }
.hc-trait { fill: none; stroke: var(--vert-texte, #157a43); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.hc-fin { stroke-width: 3; }
.hc-chemin { stroke-dasharray: 2 7; }
.hc-bloc h3 { margin: 14px 0 8px; font-size: 1.1875rem; line-height: 1.3; font-weight: 800; color: var(--vert-fonce, #1d603f); }
.hc-bloc p { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--ardoise, #1c2733); }

.hm-pied { margin: 48px 24px 0; padding-bottom: 32px; }
.hp-filet { border: 0; height: 1px; margin: 0 0 24px; background: rgba(28, 39, 51, .12); }
.hp-copie { margin: 0 0 24px; font-size: 1rem; color: var(--ardoise, #1c2733); opacity: .75; text-align: center; }
.hp-h { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; color: var(--ardoise, #1c2733); }
.hp-sous { margin: 0 0 8px; font-size: 1rem; font-weight: 700; color: var(--vert-texte, #157a43); }
.hp-liens { list-style: none; margin: 0; padding: 0; }
.hp-liens a { display: flex; align-items: center; min-height: 48px; font-size: 1.0625rem; color: var(--ardoise, #1c2733); text-decoration: none; }
.hp-liens a:hover, .hp-liens a:focus-visible { text-decoration: underline; }

/* P1b : titre en gros, recherche haute, 3 blocs cote a cote sur PC. Limite a body.page-accueil (/home). */
body.page-accueil .hm-promesse{font-size:2.25rem;line-height:1.15;letter-spacing:-.01em;margin:0 0 24px}
body.page-accueil .hm-promesse span{display:block}
body.page-accueil .hm-bloc .hm-recherche{min-height:64px}
body.page-accueil .hm-bloc .hm-recherche input{font-size:1.125rem}
@media (min-width:900px){
  body.page-accueil .hm-bloc{padding:56px 32px 64px}
  body.page-accueil .hm-promesse{font-size:3rem;line-height:1.15;margin:0 0 32px}
  body.page-accueil .hm-promesse span{display:inline}
  body.page-accueil .hm-bloc .hm-recherche{min-height:72px}
  body.page-accueil .hm-bloc .hm-recherche input{font-size:1.25rem}
  body.page-accueil .hm-compagnon{max-width:1200px;margin-left:auto;margin-right:auto}
  /* le parent des trois blocs devient une grille de 3 colonnes (que les blocs soient dans .hm-compagnon ou dans un conteneur) */
  body.page-accueil :is(.hm-compagnon,.hm-compagnon *):has(>.hc-bloc){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:32px;align-items:start}
  body.page-accueil .hm-compagnon .hc-titre{grid-column:1 / -1}
  body.page-accueil .hm-compagnon .hc-bloc{max-width:none;margin:36px 0 0}
}

/* P1c : /home pleine largeur sur PC. Rien ne change sous 900 px. */
@media (min-width:900px){
  /* on retire le cadre etroit pose par le bloc « bureau » de colombe.css */
  body.page-accueil .defile{padding-left:0!important;padding-right:0!important}
  body.page-accueil .defile>*{max-width:none!important}
  /* bandeau vert : toute la largeur, haut, contenu centre dans 880 px */
  body.page-accueil .hm-bloc{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:clamp(380px,42vh,520px);padding:64px 32px;border-radius:0 0 32px 32px;box-sizing:border-box}
  body.page-accueil .hm-bloc>*{width:100%;max-width:880px}
  body.page-accueil .hm-bloc .hm-promesse{margin:0 0 32px}
  /* bouton et pied : centres, plus larges */
  body.page-accueil .hm-bouton{width:min(880px,calc(100% - 64px));margin:32px auto 0;box-sizing:border-box}
  body.page-accueil .hm-pied{width:min(1200px,calc(100% - 48px));margin:64px auto 0;box-sizing:border-box}
}

/* P1d : dimensions Doctolib sur PC. Rien ne change sous 900 px. */
@media (min-width:900px){
  /* bandeau vert : ~600 px de haut sur grand ecran, contenu centre, grille de 8 px */
  body.page-accueil .hm-bloc{min-height:clamp(480px,56vh,600px);padding:64px 40px;border-radius:0 0 24px 24px}
  body.page-accueil .hm-promesse{font-size:2rem;line-height:2.5rem;margin:0 0 40px}
  body.page-accueil .hm-bloc .hm-recherche{min-height:64px;border-radius:999px;padding-left:24px;padding-right:24px}
  body.page-accueil .hm-bloc .hm-recherche input{font-size:1.125rem;line-height:1.5rem}
  /* le bouton ne s'affiche pas sur PC */
  body.page-accueil .hm-bouton{display:none}
  /* trois colonnes larges : 1480 px au maximum, 40 px de marge, 40 px entre colonnes */
  body.page-accueil .hm-compagnon{width:min(1480px,calc(100% - 80px));max-width:none;margin-left:auto;margin-right:auto;padding:64px 0 8px}
  body.page-accueil :is(.hm-compagnon,.hm-compagnon *):has(>.hc-bloc){column-gap:40px}
  body.page-accueil .hm-compagnon .hc-titre{margin-bottom:0}
  body.page-accueil .hm-compagnon .hc-bloc{margin-top:40px}
  body.page-accueil .hc-forme{width:96px;height:96px}
  body.page-accueil .hc-bloc h3{margin:16px 0 8px;font-size:1.125rem;line-height:1.5rem}
  body.page-accueil .hc-bloc p{font-size:1rem;line-height:1.5rem}
  body.page-accueil .hm-pied{width:min(1480px,calc(100% - 80px))}
}

/* P1e : bouton « Accéder à mon Espace Aidant » a la place de la barre (PC et telephone). */
body.page-accueil .hm-bloc .hm-recherche{display:none!important}
body.page-accueil .hm-bouton{display:none!important}
body.page-accueil .hm-cta{display:flex;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;width:100%;min-height:64px;padding:0 24px;border-radius:999px;background:#fff;color:var(--vert-fonce,#1d603f);font-size:1.125rem;line-height:1.5rem;font-weight:700;text-decoration:none}
body.page-accueil .hm-cta .ico{width:24px;height:24px;flex:none}
body.page-accueil .hm-cta:active{transform:scale(.97)}
body.page-accueil .hm-cta:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* P1f : /home sur telephone. Rien ne change a partir de 900 px. */
@media (max-width:899px){
  /* plus de bande blanche a droite : la barre de defilement ne prend plus de place */
  body.page-accueil .defile{scrollbar-width:none;-ms-overflow-style:none}
  body.page-accueil .defile::-webkit-scrollbar{display:none;width:0;height:0}
  body.page-accueil .hm-bloc{padding:24px 20px 28px;border-radius:0 0 24px 24px}
  body.page-accueil .hm-promesse{font-size:1.75rem;line-height:1.2;margin:0 0 20px}
  body.page-accueil .hm-cta{min-height:56px;padding:0 20px;font-size:1rem;line-height:1.5rem}
  body.page-accueil .hm-cta .ico{width:20px;height:20px}
}

/* P1g : barre du haut du meme vert fonce que le bandeau (la meme variable : jamais deux verts differents). */
body.page-accueil .entete--vif{background:var(--vert-texte)}
@media (max-width:899px){
  /* le bandeau touche le bord droit de l'ecran (1 px de plus, le defile cache ce qui depasse) */
  body.page-accueil .hm-bloc{margin-right:-1px}
}

/* P1h : logo Mes Paroles a gauche, meme marge que le titre de « Mon Espace Aidant » (24 px). */
body.page-accueil .entete--liste{justify-content:flex-start;padding-left:24px}
body.page-accueil .entete--liste .logo{margin:0}

/* P1i : /home sur telephone seulement. Rien ne change a partir de 900 px. */
@media (max-width:899px){
  /* l'en-tete et le bandeau depassent de 2 px a droite : l'ecran cache l'exces, plus de liseré blanc */
  body.page-accueil .entete{margin-right:-2px}
  body.page-accueil .hm-bloc{margin-right:-2px}
  /* titre centre */
  body.page-accueil .hm-promesse{text-align:center}
}
