/* =====================================================================
   ACCUEIL — lot 309 (13/11/2026). Chargée par index.php seulement (après le style du site), hors de site.min.css.
   Haut de page avec une scène de vie, quatre portes en photos, repères chiffrés, derniers articles du blog, « Mes proches »
   en cartes illustrées, engagements en clair, « Aller plus loin » resserré.
   Couleurs : les jetons du site (--color-*) — thème sombre, sépia et contraste fort suivent d'eux-mêmes.
   ===================================================================== */

/* ---------- Haut de page ---------- */
.a309-hero{ padding:3rem 0 2.75rem; background:var(--color-bg-alt); border-bottom:1px solid var(--color-border); }
.a309-hero-grille{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:3rem; align-items:center; }
.a309-surtitre{ margin:0 0 .8rem; font-size:.85rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--color-primary); }
.a309-hero h1{ margin:0 0 1rem; font-size:clamp(2rem, 3.6vw, 2.95rem); line-height:1.1; letter-spacing:-.025em; max-width:none; }
.a309-hero h1 > span{ display:block; }
.a309-h1-accent{ color:var(--color-primary); }
.a309-hero .lead{ margin:0 0 1.5rem; max-width:58ch; font-size:1.06rem; color:var(--color-ink-soft); }
.a309-actions{ display:flex; flex-wrap:wrap; gap:.75rem; margin:0 0 1.6rem; }
.a309-hero .ap-selecteur{ margin:0; }
.a309-hero-visuel{ position:relative; border-radius:var(--radius-xl, 28px); overflow:hidden; aspect-ratio:4/3.4; background:var(--color-surface);
  box-shadow:var(--shadow-lg, var(--shadow-md)); }
.a309-hero-visuel .a309-photo{ display:block; width:100%; height:100%; object-fit:cover; }
.a309-mention{ position:absolute; right:10px; bottom:10px; padding:.2rem .55rem; border-radius:999px; font-size:.72rem; font-weight:700;
  color:#17142B; background:rgba(255,255,255,.85); letter-spacing:.01em; }

/* ---------- Les quatre portes ---------- */
.a309-portes-section{ padding:2.5rem 0 1rem; }
.a309-portes{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:1.25rem; }
.a309-porte{ position:relative; display:flex; flex-direction:column; background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-lg, 24px); overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .2s ease, box-shadow .2s ease; }
.a309-porte:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md, var(--shadow-sm)); }
.a309-porte:focus-within{ outline:3px solid var(--color-primary); outline-offset:3px; }
.a309-porte-visuel, .a309-proche-visuel{ aspect-ratio:16/10; overflow:hidden; background:var(--color-bg-alt); }
.a309-photo{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1); }
.a309-porte:hover .a309-photo, .a309-proche:hover .a309-photo{ transform:scale(1.045); }
.a309-porte-texte{ display:flex; flex-direction:column; gap:.4rem; padding:1.05rem 1.2rem 1.25rem; flex:1; }
.a309-porte h2{ margin:0; font-size:1.3rem; line-height:1.2; }
.a309-porte h2 a{ color:var(--color-ink); text-decoration:none; }
.a309-porte h2 a::after{ content:""; position:absolute; inset:0; z-index:1; }   /* toute la carte mène à la porte */
.a309-porte h2 a:focus{ outline:none; }
.a309-porte:hover h2 a{ text-decoration:underline; text-underline-offset:3px; }
.a309-porte-promesse{ margin:0; font-weight:700; color:var(--color-primary); font-size:.95rem; }
.a309-porte-contenu{ margin:0; color:var(--color-ink-soft); font-size:.93rem; line-height:1.5; }
.a309-porte-plus{ position:relative; z-index:2; list-style:none; margin:.35rem 0 0; padding:.6rem 0 0; border-top:1px solid var(--color-border);
  display:flex; flex-direction:column; gap:.3rem; }
.a309-porte-plus a{ font-size:.9rem; font-weight:600; }
.a309-porte-plus a::before{ content:"→ "; }

/* ---------- Repères chiffrés ---------- */
.a309-reperes{ padding:1.5rem 0 .5rem; }
.a309-reperes ul{ list-style:none; margin:0; padding:1.4rem 1.5rem; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:1rem;
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-lg, 24px); }
.a309-reperes li{ display:flex; flex-direction:column; gap:.1rem; padding-left:1rem; border-left:3px solid var(--color-primary-light, var(--color-border)); }
.a309-reperes strong{ font-family:var(--font-head, inherit); font-size:2.1rem; line-height:1; color:var(--color-primary); letter-spacing:-.02em; }
.a309-reperes span{ font-weight:700; color:var(--color-ink); }
.a309-reperes small{ font-size:.82rem; color:var(--color-ink-soft); }

/* ---------- Blog : les trois derniers articles (styles des cartes repris de blog-285.css, non chargée ici) ---------- */
:root{
  --b285-tdah:#E8743B; --b285-autisme:#3B6FE0; --b285-hpi:#8A5CF0; --b285-dys:#1F9E74;
  --b285-droits:#178BA6; --b285-ecole:#D99A1E; --b285-travail:#5A55D6; --b285-quotidien:#D9478A;
}
.a309-blog [data-famille="tdah"]{ --b285-pastille:var(--b285-tdah); }
.a309-blog [data-famille="autisme"]{ --b285-pastille:var(--b285-autisme); }
.a309-blog [data-famille="hpi"]{ --b285-pastille:var(--b285-hpi); }
.a309-blog [data-famille="dys"]{ --b285-pastille:var(--b285-dys); }
.a309-blog [data-famille="droits"]{ --b285-pastille:var(--b285-droits); }
.a309-blog [data-famille="ecole"]{ --b285-pastille:var(--b285-ecole); }
.a309-blog [data-famille="travail"]{ --b285-pastille:var(--b285-travail); }
.a309-blog [data-famille="quotidien"]{ --b285-pastille:var(--b285-quotidien); }
.a309-tete{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.5rem 1.5rem; margin-bottom:1.4rem; }
.a309-tete h2{ margin:0; }
.a309-blog .b285-grille{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1.4rem; }
.a309-blog .b285-carte{ position:relative; display:flex; flex-direction:column; background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-lg, 24px); overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .2s ease, box-shadow .2s ease; }
.a309-blog .b285-carte:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md, var(--shadow-sm)); }
.a309-blog .b285-carte:focus-within{ outline:3px solid var(--color-primary); outline-offset:3px; }
.a309-blog .b285-visuel{ aspect-ratio:16/9; background:var(--color-bg-alt); overflow:hidden; }
.a309-blog .b285-photo{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1); }
.a309-blog .b285-carte:hover .b285-photo{ transform:scale(1.045); }
.a309-blog .b285-texte{ display:flex; flex-direction:column; gap:.45rem; padding:1.05rem 1.25rem 1.3rem; flex:1; }
.a309-blog .b285-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:.15rem .75rem; margin:0; font-size:.82rem; color:var(--color-ink-soft); }
.a309-blog .b285-etiquette{ display:inline-flex; align-items:center; gap:.4rem; font-weight:800; color:var(--color-ink); }
.a309-blog .b285-etiquette::before{ content:""; width:.55rem; height:.55rem; border-radius:50%; background:var(--b285-pastille, var(--color-primary)); }
.a309-blog .b285-meta > :is(.b285-date, .b285-duree)::before{ content:"·"; margin-right:.6rem; }
.a309-blog .b285-titre{ font-size:1.12rem; line-height:1.3; margin:0; }
.a309-blog .b285-titre a{ color:var(--color-ink); text-decoration:none; }
.a309-blog .b285-titre a::after{ content:""; position:absolute; inset:0; z-index:1; }
.a309-blog .b285-titre a:focus{ outline:none; }
.a309-blog .b285-carte:hover .b285-titre a{ text-decoration:underline; text-underline-offset:3px; }
.a309-blog .b285-extrait{ margin:0; color:var(--color-ink-soft); font-size:.95rem; line-height:1.55; }
.a309-note-photos{ margin:.9rem 0 0; font-size:.85rem; color:var(--color-ink-soft); }

/* ---------- Mes proches : quatre cartes illustrées ---------- */
.a309-proches{ background:var(--color-bg-alt); }
.a309-cartes-proches{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:1.25rem; }
.a309-proche{ position:relative; display:flex; flex-direction:column; background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-lg, 24px); overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .2s ease, box-shadow .2s ease; }
.a309-proche:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md, var(--shadow-sm)); }
.a309-proche:focus-within{ outline:3px solid var(--color-primary); outline-offset:3px; }
.a309-proche-texte{ display:flex; flex-direction:column; gap:.35rem; padding:1rem 1.15rem 1.2rem; }
.a309-type{ font-size:.78rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--color-primary); }
.a309-proche h3{ margin:0; font-size:1.1rem; line-height:1.25; }
.a309-proche h3 a{ color:var(--color-ink); text-decoration:none; }
.a309-proche h3 a::after{ content:""; position:absolute; inset:0; z-index:1; }
.a309-proche h3 a:focus{ outline:none; }
.a309-proche:hover h3 a{ text-decoration:underline; text-underline-offset:3px; }
.a309-proche p{ margin:0; font-size:.93rem; color:var(--color-ink-soft); line-height:1.5; }
.a309-aussi{ margin:1.2rem 0 0; color:var(--color-ink-soft); }

/* ---------- Comment nous travaillons : en clair, une rangée ---------- */
.a309-engagements{ border-top:1px solid var(--color-border); }
.a309-eng{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1.25rem; }
.a309-eng li{ padding:1.3rem 1.35rem 1.4rem; background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-lg, 24px); }
.a309-eng-icone{ display:inline-flex; align-items:center; justify-content:center; width:2.6rem; height:2.6rem; margin-bottom:.75rem;
  border-radius:50%; color:var(--color-primary); background:var(--color-bg-alt); }
.a309-eng-icone svg{ width:1.3rem; height:1.3rem; }
.a309-eng h3{ margin:0 0 .4rem; font-size:1.08rem; }
.a309-eng p{ margin:0; font-size:.95rem; color:var(--color-ink-soft); line-height:1.55; }

/* ---------- Aller plus loin : les livres, puis l'aide ---------- */
.a309-livres{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:2.25rem; align-items:center; padding:1.8rem 2rem;
  background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-xl, 28px); box-shadow:var(--shadow-sm); }
.a309-couvertures{ display:flex; align-items:flex-end; }
.a309-couverture{ display:block; width:130px; height:auto; border-radius:6px; box-shadow:0 10px 24px rgba(23,20,43,.22); }
.a309-couverture + .a309-couverture{ width:116px; margin-left:-34px; transform:rotate(4deg); transform-origin:bottom left; }
.a309-livres-texte h2{ margin:0 0 .6rem; }
.a309-livres-texte p{ margin:0 0 .7rem; max-width:70ch; color:var(--color-ink-soft); }
.a309-livres-texte .a309-actions{ margin:1rem 0 0; }
.a309-aide{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem 2rem; margin-top:1.25rem; padding:1.25rem 2rem;
  border:1px dashed var(--color-border-strong, var(--color-border)); border-radius:var(--radius-lg, 24px); }
.a309-aide h3{ margin:0 0 .25rem; font-size:1.1rem; }
.a309-aide p{ margin:0; color:var(--color-ink-soft); max-width:62ch; }

/* ---------- Tablette ---------- */
@media (max-width:1100px){
  .a309-portes, .a309-cartes-proches{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .a309-reperes ul{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:900px){
  .a309-hero{ padding:1.25rem 0 1.5rem; }
  .a309-hero-grille{ grid-template-columns:1fr; gap:1.1rem; }
  .a309-hero-visuel{ order:-1; aspect-ratio:16/8; border-radius:var(--radius-lg, 20px); }
  .a309-blog .b285-grille{ grid-template-columns:1fr; gap:1rem; }
  .a309-eng{ grid-template-columns:1fr; gap:.9rem; }
}

/* ---------- Téléphone : haut de page compact, cartes en rangées qu'on fait défiler du doigt ---------- */
@media (max-width:640px){
  .a309-surtitre{ font-size:.75rem; margin-bottom:.5rem; }
  .a309-hero h1{ font-size:1.62rem; margin-bottom:.6rem; }
  .a309-hero .lead{ font-size:.98rem; margin-bottom:1rem; }
  .a309-actions{ margin-bottom:1.1rem; }
  .a309-actions .btn{ flex:1 1 auto; justify-content:center; text-align:center; }
  .a309-portes-section{ padding-top:1.5rem; }
  /* Portes : photo à gauche, texte à droite ; ce qu'on y trouve est déjà dit par la promesse */
  .a309-portes{ grid-template-columns:1fr; gap:.8rem; }
  .a309-porte{ display:grid; grid-template-columns:104px minmax(0,1fr); }
  .a309-porte-visuel{ aspect-ratio:auto; height:100%; }
  .a309-porte-texte{ padding:.8rem .95rem .9rem; gap:.25rem; }
  .a309-porte h2{ font-size:1.12rem; }
  .a309-porte-contenu{ display:none; }
  .a309-porte-plus{ padding-top:.45rem; margin-top:.2rem; }
  .a309-porte-plus li:nth-child(n+3){ display:none; }
  .a309-reperes ul{ padding:1rem 1.1rem; gap:.9rem .8rem; }
  .a309-reperes strong{ font-size:1.7rem; }
  .a309-reperes li{ padding-left:.7rem; }
  /* Mes proches et les fiches profils : une rangée qu'on fait défiler du doigt */
  .a309-cartes-proches, #me-comprendre .grid-cards{ display:flex; gap:.85rem; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 -16px;
    padding:.25rem 16px 1rem; scrollbar-width:none; }
  .a309-cartes-proches::-webkit-scrollbar, #me-comprendre .grid-cards::-webkit-scrollbar{ display:none; }
  .a309-proche, #me-comprendre .grid-cards > .card{ flex:0 0 78%; scroll-snap-align:start; }
  .a309-livres{ grid-template-columns:1fr; gap:1.2rem; padding:1.3rem 1.2rem; }
  .a309-couverture{ width:104px; }
  .a309-couverture + .a309-couverture{ width:94px; }
  .a309-aide{ padding:1.1rem 1.2rem; }
  .a309-aide .btn{ width:100%; justify-content:center; }
}

/* ---------- Moins de mouvement ---------- */
@media (prefers-reduced-motion: reduce){
  .a309-porte, .a309-proche, .a309-blog .b285-carte, .a309-photo, .a309-blog .b285-photo{ transition:none; }
  .a309-porte:hover, .a309-proche:hover, .a309-blog .b285-carte:hover{ transform:none; }
  .a309-porte:hover .a309-photo, .a309-proche:hover .a309-photo, .a309-blog .b285-carte:hover .b285-photo{ transform:none; }
}
:root[data-mouvement="reduit"] :is(.a309-porte, .a309-proche, .a309-blog .b285-carte, .a309-photo, .a309-blog .b285-photo){ transition:none; }
:root[data-mouvement="reduit"] :is(.a309-porte, .a309-proche, .a309-blog .b285-carte):hover,
:root[data-mouvement="reduit"] :is(.a309-porte, .a309-proche, .a309-blog .b285-carte):hover :is(.a309-photo, .b285-photo){ transform:none; }

@media print{
  .a309-hero-visuel, .a309-porte-visuel, .a309-proche-visuel, .a309-blog .b285-visuel, .a309-couvertures{ display:none; }
}
