/* Charte Péripote Express : couleurs, police et style des titres partagés par les pages publiques.
   Chargé après les feuilles de chaque page pour harmoniser leurs titres. L'admin n'utilise aucune de ces classes. */

:root {
    --pe-font: "Roboto Flex", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --pe-paper: #f3f1ec;
    --pe-night: #14121a;
    --pe-stone: #2a2630;
    --pe-muted: #a7a2ad;

    /* Taille du titre principal des pages (Contact, Partenaire, À propos, Éditions) */
    --pe-page-title-size: clamp(2.6rem, 5.5vw, 4.25rem);

    /* Fond clair des sections : gris papier très clair, moucheté de petits points clairs et foncés */
    --pe-grain-color: #f8f8f6;
    --pe-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.35 0 0 0 0 0.35 1.6 0 0 0 -0.88'/%3E%3C/filter%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.8 0 0 0 -0.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E");
}

/* Titres : Roboto Flex condensé, en capitales, avec de l'espacement pour rester lisible */
.home-container h1,
.home-container h2,
.page-title,
.previous-editions-title,
.inscription-title,
.auth-title,
.error-page.perigord_express .error-title,
.about-section h2,
.about-section h3,
.staff-title {
    font-family: var(--pe-font);
    font-variation-settings: "wdth" 40, "opsz" 144;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* Home et À propos : un soulignage jaune épais apparaît au survol des titres de section (pas sous le grand titre de la bannière). */
.home-container h2,
.about-section h2:not(.staff-title) {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 0;
    text-decoration-skip-ink: none;
    text-underline-offset: 0.18em;
    transition: text-decoration-color 0.3s ease, text-decoration-thickness 0.3s ease, text-underline-offset 0.3s ease;
}

.home-container h2:hover,
.about-section h2:not(.staff-title):hover {
    text-decoration-color: var(--perigord-yellow);
    text-decoration-thickness: 0.14em;
    text-underline-offset: 0.1em;
}

@media (prefers-reduced-motion: reduce) {
    .home-container h2,
    .about-section h2 {
        transition: none;
    }
}

/* Autres pages : le même soulignage jaune, affiché en permanence, remplace les anciens décors
   (barre jaune sous le titre de page, surlignage sous le titre « L'équipe » de l'à-propos). */
.page-title,
.previous-editions-title,
.inscription-title,
.auth-title,
.staff-title {
    text-decoration-line: underline;
    text-decoration-color: var(--perigord-yellow);
    text-decoration-thickness: 0.14em;
    text-decoration-skip-ink: none;
    text-underline-offset: 0.1em;
}

.staff-title {
    background: none;
    padding: 0;
}

.page-title::after,
.about-container .page-title::after {
    display: none;
}

/* Fond papier grainé des pages publiques (accueil, Contact, Partenaire, À propos, Éditions) et des sections claires. Chaque logo partenaire porte aussi le grain :
   le bandeau défile en transform, ce qui isole ses logos du fond de la section. */
body:has(.home-container),
body:has(.contact-page-container),
body:has(.partner-container),
body:has(.about-container),
body:has(.previous-editions-container),
.home-container .events-section,
.home-container .testimonials-section,
.home-container .dots-divider,
.home-container .faq-section,
.home-container .partners-section,
.home-container .partner-item {
    background-color: var(--pe-grain-color);
    background-image: var(--pe-grain);
    background-repeat: repeat;
}
