/* =========================================================
   Page d'accueil (maquette B3, novembre 2026)
   Chargé par index.php sur accueil.php uniquement.
   Les cartes des comparateurs et le bloc des raisons gardent
   leurs styles d'origine (app.css : .home-tool-card, .home-reasons).
   Les bandeaux pleine largeur utilisent box-shadow + clip-path :
   pas de 100vw, donc pas de barre de défilement horizontale.
   ========================================================= */

.page-accueil .content-card{text-align:left}
.hp-hero,.hp-commune,.hp-reasons,.hp-how,.hp-trust,.hp-faq{font-weight:500;text-align:left}
.hp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hp-kicker{margin:0;color:#1459d6;font-size:12px;font-weight:800;letter-spacing:.12em}

/* ---------- Haut de page ---------- */
.hp-hero{position:relative;background:#0b2a66;color:#fff;box-shadow:0 0 0 100vmax #0b2a66;clip-path:inset(0 -100vmax);margin:0 0 48px}
.hp-hero__inner{max-width:1200px;margin:0 auto;padding:56px 0 72px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:48px;align-items:center}
.content-card .hp-hero h1{margin:0 0 20px;color:#fff;font-size:clamp(36px,4.4vw,60px);line-height:1.04;letter-spacing:-.04em;font-weight:900;text-align:left}
.hp-hero__lead{margin:0 0 18px;max-width:560px;color:#cfdcf5;font-size:20px;line-height:1.5}
.hp-hero__text>p:not(.hp-hero__lead){margin:0 0 16px;color:#9fb4d8;font-size:14px}
.hp-checks{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:10px 22px;color:#cfdcf5;font-size:15px;font-weight:600}
.hp-checks li{display:flex;align-items:center;gap:8px}
.hp-checks svg{width:18px;height:18px;fill:none;stroke:#5fe39a;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* Formulaire à onglets */
.hp-quiz{background:#fff;color:#071936;border-radius:24px;padding:26px;box-shadow:0 30px 70px rgba(0,0,0,.25)}
.hp-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;background:#eef2f8;border-radius:12px;padding:4px}
.hp-tab{font:inherit;font-size:15px;font-weight:600;border:0;border-radius:9px;padding:10px 6px;min-height:44px;background:transparent;color:#42506a;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.hp-tab:hover{color:#071936}
.hp-tab[aria-selected="true"]{background:#fff;color:#071936;font-weight:800;box-shadow:0 2px 6px rgba(7,25,54,.12)}
.hp-tab:focus-visible{outline:3px solid #2563eb;outline-offset:2px}

.hp-panel{display:flex;flex-direction:column;gap:9px;margin-top:18px}
.hp-panel[hidden]{display:none}
.hp-panel__q{margin:0 0 6px;font-size:25px;line-height:1.15;font-weight:900;letter-spacing:-.02em}
.hp-panel label{font-size:15px;font-weight:700;color:#071936}
.hp-panel label small{font-size:13px;font-weight:500;color:#5b6880}
.hp-quiz select{max-width:none;min-height:50px;border:2px solid #c9d4e6;border-radius:12px;padding:11px 12px;font-size:16px;font-weight:600;box-shadow:none;margin-bottom:6px}
.hp-field{display:flex;align-items:center;gap:8px;border:2px solid #c9d4e6;border-radius:12px;padding:0 14px;background:#fff;margin-bottom:6px;transition:border-color .2s ease}
.hp-field:focus-within{border-color:#2563eb;box-shadow:0 0 0 4px var(--sc-focus)}
.hp-quiz .hp-field input{flex:1;min-width:0;max-width:none;min-height:48px;border:0;border-radius:0;box-shadow:none;padding:10px 0;background:transparent;font-size:20px;font-weight:700;outline:none}
.hp-quiz input::placeholder{color:#9aa7bb}
.hp-field span{font-size:16px;font-weight:600;color:#42506a;white-space:nowrap}
.hp-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hp-duo>div{display:flex;flex-direction:column;gap:9px}
.hp-panel__note{margin:2px 0 0;text-align:center;font-size:13px;color:#4f5d75}
.hp-panel__link{display:flex;justify-content:center;gap:6px;font-size:15px;font-weight:700;color:#0f6b3a}
.hp-quiz__note{margin:12px 0 0;text-align:center;font-size:13px;color:#4f5d75}

/* Bouton « Découvrir mon rang » : style B, le vert envahit le bouton depuis la flèche */
.hp-cta{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:62px;margin-top:6px;padding:8px 8px 8px 26px;border:0;border-radius:18px;font:inherit;font-size:19px;font-weight:800;letter-spacing:-.01em;color:#fff;background:#071936;box-shadow:0 12px 26px rgba(7,25,54,.28);cursor:pointer;transition:color .35s ease,transform .3s ease,box-shadow .3s ease}
.hp-cta::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(120deg,#5fe39a,#34d399);clip-path:circle(0% at calc(100% - 31px) 50%);transition:clip-path .55s cubic-bezier(.7,0,.2,1)}
.hp-cta__arrow{flex:0 0 auto;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#5fe39a;transition:background .35s ease}
.hp-cta__arrow svg{width:24px;height:24px;fill:none;stroke:#052b14;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transform:rotate(-45deg);transition:transform .45s cubic-bezier(.3,1.4,.5,1),stroke .35s ease}
.hp-cta:hover{color:#052b14;transform:translateY(-3px);box-shadow:0 18px 36px rgba(52,211,153,.4)}
.hp-cta:hover::before{clip-path:circle(150% at calc(100% - 31px) 50%)}
.hp-cta:hover .hp-cta__arrow{background:#071936}
.hp-cta:hover .hp-cta__arrow svg{stroke:#5fe39a;transform:rotate(0deg)}
.hp-cta:active{transform:translateY(-1px) scale(.985)}
.hp-cta:focus-visible{outline:3px solid #ffb703;outline-offset:3px}

/* ---------- Recherche de commune ---------- */
.hp-commune{max-width:1200px;margin:8px auto 28px;background:#071936;color:#fff;border-radius:28px;padding:40px 44px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:32px;align-items:center}
.content-card .hp-commune h2{margin:0 0 10px;color:#fff;font-size:clamp(26px,3vw,34px);line-height:1.15;text-align:left}
.hp-commune__text p{margin:0;color:#cfdcf5;font-size:17px}
.hp-commune__form{display:flex;flex-wrap:wrap;gap:10px}
.hp-commune__form input{flex:1 1 200px;min-width:0;max-width:none;min-height:52px;border:0;border-radius:12px;padding:14px 16px;font-size:17px;box-shadow:none}
.hp-commune__form input::placeholder{color:#8a97ad}
.hp-commune__form input:focus{outline:4px solid rgba(95,227,154,.45)}
.hp-commune__form button{font:inherit;font-size:17px;font-weight:800;border:0;border-radius:12px;padding:14px 22px;min-height:52px;background:#5fe39a;color:#052b14;cursor:pointer;transition:transform .2s ease,filter .2s ease}
.hp-commune__form button:hover{transform:translateY(-2px);filter:brightness(1.05)}
.hp-commune__form button:focus-visible{outline:3px solid #ffb703;outline-offset:3px}

/* ---------- Pourquoi se comparer ---------- */
.hp-reasons{max-width:1200px;margin:0 auto 64px;padding:28px;background:#f5f8fd;border-radius:20px}
.hp-reasons .home-reasons{border-top:0;margin-top:0;padding-top:0}

/* ---------- Trois étapes ---------- */
.hp-how,.hp-trust{background:#f6f9fd;box-shadow:0 0 0 100vmax #f6f9fd;clip-path:inset(0 -100vmax)}
.hp-how{padding:72px 0 32px;border-top:1px solid #dce6f3}
.hp-head{max-width:640px;margin:0 auto 32px;text-align:center}
.content-card .hp-head h2{margin:8px 0;font-size:clamp(28px,3.2vw,40px);line-height:1.1}
.hp-head p:last-child{margin:0;color:#5d6d85;font-size:17px}
.hp-steps{max-width:1200px;margin:0 auto;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hp-steps li{display:flex;gap:16px;padding:21px;border:1px solid #dce6f3;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(7,25,54,.07)}
.hp-steps__num{flex:0 0 auto;width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:#071936;color:#fff;font-size:18px;font-weight:900}
.content-card .hp-steps h3{margin:2px 0 6px;font-size:18px;line-height:1.25}
.hp-steps p{margin:0;font-size:15px;line-height:1.55;color:#4f5d75}

/* ---------- Sources et limites ---------- */
.hp-trust{padding:24px max(0px,calc((100% - 1200px) / 2)) 72px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.hp-panel-info{position:relative;overflow:hidden;padding:38px;border:1px solid #dce6f3;border-radius:26px;background:#fff;box-shadow:0 8px 24px rgba(7,25,54,.07)}
.hp-panel-info>*{position:relative;z-index:1}
.hp-panel-info::after{content:"";position:absolute;right:-64px;bottom:-80px;width:192px;height:192px;border-radius:50%;background:var(--hp-soft);opacity:.8}
.hp-panel-info--blue{--hp-soft:#eaf2ff;--hp-ink:#1459d6}
.hp-panel-info--green{--hp-soft:#e8f9ef;--hp-ink:#11834a}
.hp-panel-info__icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:var(--hp-soft);margin-bottom:16px}
.hp-panel-info__icon svg{width:26px;height:26px;fill:none;stroke:var(--hp-ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hp-panel-info .hp-kicker{color:var(--hp-ink)}
.content-card .hp-panel-info h2{margin:6px 0 12px;font-size:clamp(24px,2.4vw,30px);line-height:1.15}
.hp-panel-info p:not(.hp-kicker){margin:0 0 18px;color:#4f5d75;font-size:16px;line-height:1.6}
.hp-tags,.hp-oks{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap}
.hp-tags{gap:8px}
.hp-tags li{padding:6px 12px;border-radius:999px;background:#eaf2ff;color:#1459d6;font-size:13px;font-weight:700}
.hp-oks{gap:10px 20px}
.hp-oks li{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:700;color:#071936}
.hp-oks svg{width:18px;height:18px;fill:none;stroke:#11834a;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* ---------- FAQ ---------- */
.hp-faq{max-width:1200px;margin:0 auto;padding:72px 0 40px;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:40px;align-items:start}
.content-card .hp-faq__intro h2{margin:8px 0 10px;font-size:clamp(28px,3.2vw,40px);line-height:1.1}
.hp-faq__intro p:not(.hp-kicker){margin:0 0 16px;color:#5d6d85;font-size:17px}
.hp-faq__intro a{font-weight:800;color:#075bd8}
.hp-faq__list{display:flex;flex-direction:column;gap:10px}
.hp-faq details{border:1px solid #dce6f3;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(7,25,54,.04)}
.hp-faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:16px 18px;cursor:pointer;font-weight:800;color:#071936}
.hp-faq summary::-webkit-details-marker{display:none}
.hp-faq summary::after{content:"+";flex:0 0 auto;width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#eaf2ff;color:#1459d6;font-size:18px}
.hp-faq details[open] summary::after{content:"−"}
.hp-faq summary:focus-visible{outline:3px solid #2563eb;outline-offset:2px;border-radius:16px}
.hp-faq details p{margin:0;padding:0 18px 18px;color:#4f5d75;font-size:15.5px;line-height:1.6}

/* ---------- Écrans moyens et petits ---------- */
@media (max-width:1000px){
  .hp-hero__inner{grid-template-columns:1fr;gap:32px;padding:40px 0 56px}
  .hp-commune{grid-template-columns:1fr;padding:32px 28px}
  .hp-steps{grid-template-columns:1fr}
  .hp-trust{grid-template-columns:1fr}
  .hp-faq{grid-template-columns:1fr;gap:24px}
}
@media (max-width:520px){
  .hp-hero__lead{font-size:17px}
  .hp-quiz{padding:18px;border-radius:20px}
  .hp-tab{font-size:14px;padding:10px 2px}
  .hp-panel__q{font-size:22px}
  .hp-duo{grid-template-columns:1fr}
  .hp-commune{padding:26px 20px;border-radius:22px}
  .hp-reasons{padding:20px}
  .hp-panel-info{padding:28px 22px}
}

@media (prefers-reduced-motion:reduce){
  .hp-cta,.hp-cta *,.hp-cta::before,.hp-tab,.hp-commune__form button{transition:none!important}
  .hp-cta:hover,.hp-cta:active,.hp-commune__form button:hover{transform:none}
}
