/* Portail sp55.fr */
:root { --rouge: #b71c1c; --rouge-f: #7f1010; --nuit: #14171c; --texte: #1f2328; --gris: #5f6670; --fond: #f6f4f1; --carte: #fff; --bord: #e6e1da; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--rouge); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.haut { background: var(--nuit); color: #fff; }
.haut-int { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 10px; }
.embleme { width: 34px; height: 34px; border-radius: 9px; background: var(--rouge); display: grid; place-items: center; }
.embleme svg { width: 20px; height: 20px; fill: #fff; }
.marque { font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; }

main { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }
.intro { padding: 54px 0 26px; text-align: center; }
.surtitre { margin: 0 0 10px; color: var(--rouge); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
h1 { margin: 0 auto 12px; max-width: 760px; font-size: clamp(1.75rem, 4.2vw, 2.7rem); line-height: 1.15; letter-spacing: -.01em; color: var(--nuit); }
.accroche { margin: 0 auto 28px; max-width: 620px; color: var(--gris); font-size: 1.08rem; }

.recherche { position: relative; max-width: 520px; margin: 0 auto; }
.recherche input { width: 100%; height: 54px; padding: 0 18px 0 50px; border: 1px solid var(--bord); border-radius: 14px; background: #fff;
                   font: inherit; font-size: 1.05rem; color: var(--texte); box-shadow: 0 6px 22px rgba(20, 23, 28, .06); }
.recherche input:focus { outline: 3px solid rgba(183, 28, 28, .25); border-color: var(--rouge); }
.loupe { position: absolute; left: 17px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: var(--gris); }
.compte { margin: 12px 0 0; color: var(--gris); font-size: .9rem; }

.grille { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.grille li[hidden] { display: none; }
.carte { display: flex; align-items: center; gap: 14px; padding: 16px 16px; background: var(--carte); border: 1px solid var(--bord); border-radius: 14px;
         color: var(--texte); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.carte:hover, .carte:focus-visible { border-color: var(--rouge); box-shadow: 0 8px 24px rgba(183, 28, 28, .12); transform: translateY(-1px); outline: none; }
.pastille { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fbe9e7; color: var(--rouge-f); font-weight: 800; letter-spacing: .03em; }
.texte { flex: 1; min-width: 0; }
.texte b { display: block; font-size: 1.05rem; color: var(--nuit); overflow-wrap: anywhere; }
.texte small { display: block; color: var(--gris); font-size: .85rem; overflow-wrap: anywhere; }
.fleche { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: #b8b0a6; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carte:hover .fleche { stroke: var(--rouge); }
.vide { text-align: center; color: var(--gris); padding: 26px 0; }

.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-top: 46px; }
.bloc { background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 18px 18px 16px; }
.bloc h2 { margin: 0 0 6px; font-size: 1rem; color: var(--nuit); }
.bloc p { margin: 0; color: var(--gris); font-size: .95rem; }

.bas { border-top: 1px solid var(--bord); text-align: center; color: var(--gris); font-size: .85rem; padding: 18px 20px 26px; }
.bas p { margin: 0; }

@media (max-width: 560px) {
  .intro { padding: 34px 0 18px; }
  main, .haut-int { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .carte { transition: none; } .carte:hover { transform: none; } }
@media (prefers-color-scheme: dark) {
  :root { --texte: #e9e6e1; --gris: #a7a39c; --fond: #121418; --carte: #1b1e23; --bord: #2c3036; --nuit: #0b0d10; }
  h1, .texte b, .bloc h2 { color: #fff; }
  .recherche input, .bloc { background: #1b1e23; color: var(--texte); }
  .pastille { background: #3a1513; color: #ffb4a9; }
}
