/* Site de Rencontre Gratuit — Le Guide */
@font-face { font-family: "Spectral Guide"; src: url("/fichiers/polices/titre.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Spectral Guide"; src: url("/fichiers/polices/titre-moyen.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Spectral Guide"; src: url("/fichiers/polices/italique.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Guide"; src: url("/fichiers/polices/corps.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

html { color-scheme: light; }
body {
  margin: 0;
  background: #ffffff;
  color: #121826;
  font-family: "Public Guide", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #1f3a93; text-decoration-color: rgba(31, 58, 147, .35); text-underline-offset: 3px; }
a:hover { color: #b3122b; text-decoration-color: currentColor; }
h1, h2, h3 { font-family: "Spectral Guide", Georgia, "Times New Roman", serif; color: #0b1020; }
h2 { font-size: 1.65rem; font-weight: 800; line-height: 1.2; margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .25rem; }
p { margin: 0 0 1.1rem; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid #b3122b; outline-offset: 3px; }

/* En-tête de journal */
.masthead { border-bottom: 4px double #121826; padding: 0 1.25rem; text-align: center; }
.masthead__bar { display: flex; justify-content: space-between; align-items: center; max-width: 1180px; margin: 0 auto; padding: .55rem 0; border-bottom: 1px solid #d9dde6; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: #5a6275; }
.masthead__tagline { margin: 0; }
.masthead__signup { font-weight: 700; color: #b3122b; text-decoration: none; }
.masthead__title { display: inline-block; margin: 1.1rem 0 .7rem; font-family: "Spectral Guide", Georgia, serif; font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem); letter-spacing: -.01em; color: #0b1020; text-decoration: none; line-height: 1.05; }
.masthead__title em { font-style: italic; font-weight: 400; color: #b3122b; }
.sections { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.6rem; padding: .55rem 0 .7rem; border-top: 1px solid #d9dde6; }
.sections a { font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: #121826; }
.sections a:hover { color: #b3122b; }

/* Mise en page */
.layout { max-width: 1180px; margin: 0 auto; padding: 1.8rem 1.25rem 3.5rem; }
.story__rubric { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #5a6275; margin-bottom: 1.2rem; }
.story__rubric a { color: inherit; }
.story__kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #b3122b; border-top: 3px solid #b3122b; padding-top: .35rem; margin-bottom: .6rem; }
.story__title { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -.015em; margin: 0 0 1rem; max-width: 22ch; }
.story__standfirst { font-family: "Spectral Guide", Georgia, serif; font-style: italic; font-size: 1.32rem; line-height: 1.5; color: #2b3245; max-width: 46ch; border-bottom: 1px solid #d9dde6; padding-bottom: 1.4rem; margin-bottom: 1.8rem; }
.story--long { max-width: 760px; }
.story--long .story__title { max-width: none; }
.story__grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .story__grid { grid-template-columns: minmax(0, 1fr) 300px; } .story__aside { position: sticky; top: 1.5rem; align-self: start; } }
.story__body > h2:first-child { margin-top: 0; }
.story__body > p:first-of-type::first-letter { float: left; font-family: "Spectral Guide", Georgia, serif; font-weight: 800; font-size: 3.6rem; line-height: .82; padding: .32rem .45rem 0 0; color: #b3122b; }

/* Boutons */
.button { display: inline-block; padding: .78rem 1.3rem; border: 2px solid transparent; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; letter-spacing: .02em; }
.button--red { background: #b3122b; color: #fff; }
.button--red:hover { background: #8d0d21; color: #fff; }
.button--ink { background: #121826; color: #fff; }
.button--ink:hover { background: #1f3a93; color: #fff; }
.button--ghost { border-color: #121826; color: #121826; background: none; }

/* Portraits */
.portraits__grid { display: grid; gap: 1.6rem 1.4rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 1rem; }
.portrait-card { margin: 0; border-top: 1px solid #121826; padding-top: .8rem; }
.portrait-card__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.92); background: #f2f4f8; }
.portrait-card__text { display: flex; flex-direction: column; gap: .2rem; margin-top: .7rem; }
.portrait-card__name { font-family: "Spectral Guide", Georgia, serif; font-size: 1.2rem; font-weight: 800; }
.portrait-card__meta { font-size: .85rem; color: #5a6275; }
.portrait-card__quote { font-family: "Spectral Guide", Georgia, serif; font-style: italic; font-size: 1.02rem; line-height: 1.45; margin: .3rem 0; quotes: "« " " »"; }
.portrait-card__more { font-size: .88rem; font-weight: 700; }
.portraits__cta { margin-top: 1.4rem; }

/* Tableaux de données */
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: .6rem 0 1rem; }
.data-table caption { caption-side: bottom; text-align: left; font-size: .8rem; color: #5a6275; padding-top: .5rem; }
.data-table th, .data-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid #d9dde6; vertical-align: top; }
.data-table tbody th { width: 46%; font-weight: 600; color: #3a4256; }
.data-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid #121826; }
.data-table--cols td:nth-child(n+2) { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Conseils, questions */
.advice__list { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; gap: 1.2rem; }
.advice__list li { counter-increment: c; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .9rem; }
.advice__list li::before { content: counter(c, decimal-leading-zero); grid-row: span 2; font-family: "Spectral Guide", Georgia, serif; font-weight: 800; font-size: 1.6rem; color: #b3122b; line-height: 1; }
.advice__list p { margin: 0; color: #2b3245; }
.qa dl { margin: 0; }
.qa dt { font-weight: 700; margin-top: 1.1rem; }
.qa dd { margin: .25rem 0 0; color: #2b3245; padding-left: 1rem; border-left: 3px solid #e8ebf2; }

/* Encadrés */
.aside-box { border: 1px solid #d9dde6; background: #f6f7fa; padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; }
.aside-box__title { font-family: "Spectral Guide", Georgia, serif; font-weight: 800; font-size: 1.15rem; margin-bottom: .5rem; }
.aside-box--signup { background: #121826; color: #e7eaf2; border-color: #121826; }
.aside-box--signup .aside-box__title { color: #fff; }
.aside-box--note { border-left: 4px solid #b3122b; }
.mini-facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; font-size: .92rem; }
.mini-facts dt { color: #5a6275; }
.mini-facts dd { margin: 0; font-weight: 600; }
.mini-facts--wide { font-size: 1rem; margin: 1.2rem 0 1.6rem; }

/* Recherche de ville */
.city-search { margin: 1rem 0; }
.city-search__label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: .35rem; }
.city-search__row { display: flex; gap: .4rem; }
.city-search__input { flex: 1; min-width: 0; padding: .7rem .8rem; border: 1px solid #121826; border-radius: 0; background: #fff; }
.aside-box .city-search__row { flex-direction: column; }

/* Une */
.front { display: grid; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid #121826; }
@media (min-width: 980px) { .front { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.front__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.7rem); font-weight: 800; line-height: 1.05; margin: 0 0 1rem; }
.lead-story { border-left: 1px solid #d9dde6; padding-left: 2rem; }
.lead-story__title { font-size: 2rem; margin: .2rem 0 .8rem; }
.lead-story__title a { color: inherit; text-decoration: none; }
.lead-story__more { font-weight: 700; }
.section-title { font-size: .85rem; font-family: "Public Guide", Arial, sans-serif; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid #121826; padding-bottom: .4rem; }
.teasers__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-left: 1px solid #d9dde6; }
.teaser { display: flex; flex-direction: column; padding: 1rem 1.1rem 1.2rem; border-right: 1px solid #d9dde6; border-bottom: 1px solid #d9dde6; text-decoration: none; color: inherit; }
.teaser:hover .teaser__city { color: #b3122b; }
.teaser__region { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #5a6275; }
.teaser__city { font-family: "Spectral Guide", Georgia, serif; font-weight: 800; font-size: 1.45rem; }
.teaser__pop { font-size: .85rem; color: #5a6275; }
.front-columns { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 880px) { .front-columns { grid-template-columns: 2fr 1fr; } }
.region-index { list-style: none; margin: 0; padding: 0; columns: 2 220px; }
.region-index li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px dotted #c3c8d4; display: flex; justify-content: space-between; gap: 1rem; }
.region-index span { color: #5a6275; font-size: .88rem; }

/* Index, région */
.page-head { max-width: 860px; margin-bottom: 1.5rem; }
.region-tables { display: grid; gap: 1rem 2.5rem; }
@media (min-width: 900px) { .region-tables { grid-template-columns: 1fr 1fr; } }
.region-table h2 { font-size: 1.35rem; margin: 1.6rem 0 .2rem; }
.region-table h2 a { color: inherit; text-decoration: none; }
.town-list { list-style: none; padding: 0; columns: 2 260px; }
.town-list li { padding: .3rem 0; }
.town-list span { color: #5a6275; font-size: .85rem; }
.dep-block { border-top: 1px solid #d9dde6; }
.dep-block h2 { font-size: 1.3rem; margin: 1.3rem 0 .4rem; }
.dep-block__towns { line-height: 1.9; }

/* Portrait */
.portrait-page__grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .portrait-page__grid { grid-template-columns: 380px 1fr; } }
.portrait-page__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #f2f4f8; }
.portrait-page__quote { margin: 0; font-family: "Spectral Guide", Georgia, serif; font-style: italic; font-size: 1.45rem; line-height: 1.45; border-left: 3px solid #b3122b; padding-left: 1.1rem; }
.portraits--more { margin-top: 3rem; }

/* Inscription */
.signup { max-width: 920px; }
.signup__grid { display: grid; gap: 1.6rem; }
@media (min-width: 820px) { .signup__grid { grid-template-columns: 1.2fr 1fr; } }
.form { display: grid; gap: .9rem; border-top: 3px solid #121826; padding-top: 1rem; }
.form--muted { border-top-color: #d9dde6; }
.form__title { font-size: 1.3rem; margin: 0; }
.form__field { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
.form__field input { padding: .7rem .8rem; border: 1px solid #8c93a6; border-radius: 0; }
.form__field input:focus { border-color: #121826; outline: none; box-shadow: 0 0 0 2px #e8ebf2; }
.form__check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.form__check input { margin-top: .3rem; accent-color: #b3122b; }
.form__error { color: #b3122b; font-weight: 700; margin: 0; }
.form__error[hidden] { display: none; }
.signup__skip { margin-top: 2rem; font-size: .9rem; }

/* Colophon */
.colophon { border-top: 4px double #121826; padding: 2.2rem 1.25rem 2rem; background: #f6f7fa; }
.colophon__cols { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.6rem; }
@media (min-width: 820px) { .colophon__cols { grid-template-columns: 2fr 1fr 1fr; } }
.colophon__title { font-family: "Spectral Guide", Georgia, serif; font-weight: 800; font-size: 1.1rem; margin-bottom: .4rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; line-height: 2; }
.colophon__note { max-width: 1180px; margin: 1.6rem auto 0; font-size: .82rem; color: #5a6275; }

/* Majorité */
.age-sheet { position: fixed; inset: 0; z-index: 100; background: #ffffff; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.age-sheet[hidden] { display: none; }
.age-sheet__inner { max-width: 560px; border-top: 4px double #121826; border-bottom: 4px double #121826; padding: 2rem 0; text-align: center; }
.age-sheet__brand { font-family: "Spectral Guide", Georgia, serif; font-style: italic; color: #b3122b; }
.age-sheet__title { font-size: 2rem; margin: .4rem 0 1rem; }
.age-sheet__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.4rem; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .masthead__tagline { display: none; }
  .masthead__bar { justify-content: center; }
  .lead-story { border-left: 0; padding-left: 0; border-top: 1px solid #d9dde6; padding-top: 1.2rem; }
  .data-table tbody th { width: 52%; }
}
/* Photos floutées : on les découvre chez le service partenaire. Cadenas fermé, ouvert au survol, au clavier, au toucher. */
.portrait-card__photo, .portrait-page__frame { position: relative; display: block; overflow: hidden; }
.portrait-card__photo img, .portrait-page__frame img { transition: transform .35s ease; }
.portrait-card__photo:hover img, .portrait-page__frame:hover img { transform: scale(1.03); }
.unveil { position: absolute; left: .7rem; bottom: .7rem; background: #0b1020; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: .45em .8em; }
.unveil::before, .album__lock::before { content: "🔒"; display: inline-block; margin-right: .4em; transition: transform .2s; }
a:hover > .unveil::before, a:focus-visible > .unveil::before, a:active > .unveil::before,
a:hover > .album__lock::before, a:focus-visible > .album__lock::before, a:active > .album__lock::before { content: "🔓"; transform: rotate(-12deg) scale(1.15); }
a:hover > .unveil { background: #b3122b; }
.unveil--large { left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); font-size: .98rem; padding: .8em 1.2em; background: #b3122b; white-space: nowrap; box-shadow: 0 10px 24px rgba(11, 16, 32, .35); }
.online-dot { position: absolute; top: .6rem; right: .6rem; background: #fff; color: #0b1020; font-size: .72rem; font-weight: 700; padding: .3em .6em .3em 1.4em; }
.online-dot::before, .audience__live::before, .online-text::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgba(31, 157, 85, .2); }
.online-dot::before { position: absolute; left: .55em; top: 50%; margin-top: -.275em; }
.online-text { color: #1f7a45; }
.online-text::before { margin-right: .35em; vertical-align: middle; }
.portrait-card__name a { color: inherit; text-decoration: none; }
.portrait-card__name a:hover { color: #b3122b; }
.audience { font-size: .92rem; color: #3b4356; border-top: 1px solid #d9dde6; border-bottom: 1px solid #d9dde6; padding: .55rem 0; margin: 0 0 1.4rem; }
.audience__live { font-weight: 700; color: #0b1020; }
.audience__live::before { margin-right: .45em; vertical-align: middle; }
/* Album : photos réservées aux membres. */
.album { margin-top: 2rem; border-top: 3px double #121826; padding-top: 1rem; }
.album__title { margin: 0 0 .2rem; font-size: 1.3rem; }
.album__note { font-size: .88rem; color: #5a6275; margin-bottom: .8rem; }
.album__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
.album__grid a { position: relative; display: block; overflow: hidden; }
.album__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.album__lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; background: rgba(11, 16, 32, .18); }
.album__lock::before { margin: 0; }
@media (max-width: 560px) { .album__grid { grid-template-columns: repeat(2, 1fr); } }
/* Action principale collée en bas de l'écran sur mobile. */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid #d9dde6; }
  .sticky-cta .button { display: block; text-align: center; }
  .colophon { padding-bottom: 5rem; }
}
@media print { .masthead__bar, .sections, .story__aside, .colophon, .age-sheet, .sticky-cta { display: none !important; } }
