/* =====================================================================
   Blocs composés dans l'administration (Grav) et textes mis en forme.
   Complète style.css (repris tel quel du site statique) : mêmes couleurs,
   brun-noir #231F20, crème #FFF3CE, grège #C9C2B6, police Raleway.
   ===================================================================== */

/* Fond de la page d'accueil : la photo peut être changée dans l'administration. */
#body_accueil.accueil-long::before {
    background-image: var(--fond-accueil, url(../img/accueil_le_salon.jpg));
    background-position: var(--fond-position, center);
}
/* Page d'accueil sans blocs : même photo, même point important. */
#body_accueil:not(.accueil-long) {
    background-image: var(--fond-accueil, url(../img/accueil_le_salon.jpg));
    background-position: var(--fond-position, center);
}

/* ---------- Blocs : éléments communs ---------- */
/* Un bloc sans titre prolonge le précédent : pas de grand espace entre les deux
   (sur le site d'origine, présentation, points forts et galerie formaient une seule section). */
.salon-page .bloc-suite {
    padding-top: 0;
}
.salon-page .bloc:has(+ .bloc-suite) {
    padding-bottom: 0;
}
.salon-page .bloc:has(+ .bloc-suite) > :last-child:not(.salon-points):not(dialog),
.salon-page .bloc:has(+ .bloc-suite) > .galerie {
    margin-bottom: 40px;
}
.salon-page .bloc-clair + .bloc-suite:not(.bloc-clair),
.salon-page .bloc:not(.bloc-clair) + .bloc-suite.bloc-clair {
    padding-top: 9vh;
}
.texte-libre {
    max-width: 720px;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.75;
    text-align: left;
}
.texte-libre:last-child {
    margin-bottom: 0;
}
/* Un seul paragraphe : texte d'accroche, plus grand et centré (comme le site d'origine). */
.texte-libre:has(> p:only-child) {
    font-size: 19px;
    line-height: 1.7;
    text-align: center;
}
.texte-libre p,
.avis-resume p,
.salon-points li p {
    margin: 0 0 1em;
}
.texte-libre p:last-child,
.avis-resume p:last-child,
.salon-points li p:last-child {
    margin-bottom: 0;
}
.texte-libre h2 {
    margin: 1.6em 0 .6em !important;
    font-size: clamp(20px, 3vw, 26px) !important;
}
.texte-libre h3 {
    margin: 1.4em 0 .5em;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.texte-libre ul,
.texte-libre ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}
.texte-libre li {
    margin-bottom: .3em;
}
.texte-libre li p {
    margin: 0;
}
.texte-libre blockquote,
.grande-citation {
    margin: 1.5em 0;
    padding: 2px 0 2px 22px;
    border-left: 2px solid #FFF3CE;
    font-size: 21px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.5;
    text-align: left;
}
.texte-libre a,
.avis-resume a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Texte et photo ---------- */
.texte-photo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    text-align: left;
}
.texte-photo .texte-libre {
    margin: 0;
    max-width: none;
    text-align: left;
    font-size: 17px;
}
.texte-photo img {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
}
.texte-photo.photo-a-gauche img {
    order: -1;
}
.texte-photo.sans-photo {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

/* ---------- Colonnes ---------- */
/* Deux ou trois colonnes côte à côte (bloc « Colonnes ») ; l'une sous l'autre sur téléphone. */
.colonnes {
    display: grid;
    gap: 48px;
    align-items: start;
    text-align: left;
}
.colonnes-1 { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; }
.colonnes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.colonnes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.colonnes-2.colonnes-premiere { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.colonnes-2.colonnes-seconde { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.colonnes-centre { align-items: center; }
.colonne {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}
.colonne img {
    display: block;
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
}
.colonne.photo-dessous img { order: 2; }
.colonne .texte-libre > :first-child { margin-top: 0; }
.colonne .colonne-bouton { order: 3; margin: 0; }
.colonne .texte-libre {
    margin: 0;
    max-width: none;
    text-align: left;
    font-size: 17px;
}

/* ---------- Grande photo ---------- */
.bloc-photo figure {
    margin: 0;
}
.bloc-photo img {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: cover;
}
.bloc-photo figcaption {
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: 1px;
    color: #C9C2B6;
}
.salon-page .bloc-photo-pleine {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* ---------- Citation et bouton seuls ---------- */
.grande-citation {
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(20px, 3vw, 26px);
}
.grande-citation p {
    margin: 0;
}
.grande-citation cite {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    font-style: normal;
    letter-spacing: 1px;
    color: #C9C2B6;
}
.salon-page .bloc-bouton {
    padding-top: 2vh;
    padding-bottom: 6vh;
}

/* ---------- Séparation ---------- */
.bloc-separateur {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    border: 0;
    border-top: 1px solid rgba(255, 243, 206, 0.2);
}

/* ---------- Distinctions, avis et « venir au salon » (ex-#distinctions, #venir) ---------- */
.salon-page .bloc-distinctions {
    padding-top: 6vh;
    padding-bottom: 6vh;
}
.distinctions .distinction {
    display: block;
    height: 100%;
    padding: 22px 20px;
    border: 1px solid rgba(255, 243, 206, 0.35);
    font-size: 14px;
    line-height: 1.6;
    color: #C9C2B6;
}
.bloc-itineraires h2 {
    font-size: clamp(20px, 3vw, 28px) !important;
}
.bloc-itineraires .texte-libre {
    margin-bottom: 20px;
}
.bloc-itineraires .itineraires {
    max-width: 760px;
    margin: 0 auto 32px;
}
div.note {
    cursor: default;
}

/* ---------- Page libre ---------- */
.page-libre {
    min-height: 60vh;
}
.page-libre-titre {
    max-width: 880px;
    margin: 0 auto;
    padding: 9vh 16px 0;
    text-align: center;
}
.page-libre-titre h1 {
    margin: 0 0 24px;
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}
.page-libre-titre .chapeau p {
    margin: 0;
}
.page-erreur .page-libre-titre {
    padding-bottom: 4vh;
}

/* ---------- Actualités : textes mis en forme dans l'éditeur ---------- */
/* Le chapeau est un bloc de paragraphes (div.actu-chapeau > p) : ils prennent
   la taille du chapeau, y compris celle du téléphone (style.css). */
.actu .actu-chapeau p {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.actu blockquote p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.actu .actu-texte ul:not([class]) li,
.actu .actu-texte ol li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.6;
}
.actu .actu-texte ul:not([class]) li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #C9C2B6;
}
.actu .actu-texte ol {
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
    counter-reset: etape;
}
.actu .actu-texte ol li::before {
    counter-increment: etape;
    content: counter(etape) ".";
    position: absolute;
    left: 0;
    color: #C9C2B6;
}
.actu .actu-texte li p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.actu h2 a {
    text-decoration: none !important;
}
.actu-photo-haut {
    display: block;
    width: 100%;
    margin: 0 0 30px;
}
.actu-retour {
    margin-top: 40px !important;
    text-align: center;
}
.article-seul {
    padding-top: 6vh;
}

/* Boutons de l'éditeur (outils/texte-riche) : mêmes présentations que la page
   Actualités d'origine (.actu-noms, .actu-valeurs, .actu-fin du site statique). */

/* « Étiquettes » : mots encadrés côte à côte, discrets (des prénoms, par exemple). */
ul.etiquettes,
ul.etiquettes-capitales {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none !important;
    padding: 0 !important;
}
ul.etiquettes {
    margin: 0 0 22px;
}
ul.etiquettes li,
.actu .actu-texte ul.etiquettes li {
    margin: 0;
    padding: 6px 14px;
    border: 1px solid rgba(255, 243, 206, 0.25);
    background: rgba(255, 243, 206, 0.08);
    font-size: 15px;
    line-height: normal;
}
/* « Étiquettes en capitales » : centrées, comme QUALITÉ · AMBIANCE · INNOVATION. */
ul.etiquettes-capitales {
    justify-content: center;
    margin: 6px 0 30px !important;
}
ul.etiquettes-capitales li,
.actu .actu-texte ul.etiquettes-capitales li {
    margin: 0;
    padding: 10px 20px;
    border: 1px solid #FFF3CE;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: normal;
    text-transform: uppercase;
}
ul.etiquettes li::before,
ul.etiquettes-capitales li::before {
    content: none !important;
}
ul.etiquettes li p,
ul.etiquettes-capitales li p,
.actu ul.etiquettes li p,
.actu ul.etiquettes-capitales li p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
/* Alignement des paragraphes et titres. */
.gauche { text-align: left !important; }
.centre { text-align: center !important; }
.droite { text-align: right !important; }
/* « Grande phrase » : plus grande, centrée, pour conclure ou souligner une idée. */
p.mise-en-avant,
.actu p.mise-en-avant {
    margin-top: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
}
@media (max-width: 540px) {
    ul.etiquettes-capitales { gap: 8px; }
    ul.etiquettes-capitales li,
    .actu .actu-texte ul.etiquettes-capitales li { padding: 9px 12px; font-size: 12px; letter-spacing: 2px; }
    p.mise-en-avant,
    .actu p.mise-en-avant { font-size: 19px; }
    .actu .actu-texte ul:not([class]) li,
    .actu .actu-texte ol li { font-size: 16px; }
}

/* Blocs ajoutés entre les articles : même colonne de lecture que les articles,
   et un filet au-dessus de l'article qui suit. */
#actualites > .bloc + .actu {
    padding-top: 8vh;
    border-top: 1px solid rgba(255, 243, 206, 0.15);
}
#actualites > .bloc {
    width: min(880px, calc(100% - 32px));
    margin: 0 auto 10vh;
    padding-top: 8vh;
    border-top: 1px solid rgba(255, 243, 206, 0.15);
    color: #FFF3CE;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.3px;
    text-align: left;
}
#actualites > .bloc > .surtitre,
#actualites > .bloc > h2,
#actualites > .bloc > .texte-libre {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
#actualites > .bloc .surtitre {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C9C2B6;
    text-align: center;
}
#actualites > .bloc h2 {
    margin: 0 0 30px;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.25;
    text-align: center;
}
#actualites > .bloc .texte-libre {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
}
#actualites > .bloc .reseau h3 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}
#actualites > .bloc .reseau h3::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 243, 206, 0.3);
}
#actualites > .bloc a {
    color: #FFF3CE;
}

/* ---------- Partenaires : logos ajoutés dans l'administration ---------- */
.partenaire-logo {
    display: block;
    max-width: min(260px, 70vw);
    max-height: 20vh;
    object-fit: contain;
}
.partenaire svg:not([id^="svg"]) {
    width: min(260px, 70vw);
    height: auto;
    max-height: 20vh;
    fill: #FFF3CE;
}
.partenaire-nom {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FFF3CE;
}
.partenaires-intro {
    max-width: 720px;
    margin: 0 auto 4vh;
    padding: 0 16px;
    color: #FFF3CE;
    font-size: 17px;
    line-height: 1.7;
}

/* ---------- Réservation : message au-dessus du module ---------- */
.reservation-intro {
    max-width: 760px;
    margin: 20px auto 0;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.85);
    color: #222020;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}
.reservation-intro p {
    margin: 0;
}

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
    .texte-photo {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .texte-photo.photo-a-gauche img {
        order: 0;
    }
    .colonnes,
    .colonnes-2.colonnes-premiere,
    .colonnes-2.colonnes-seconde {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    .texte-libre:has(> p:only-child) {
        font-size: 17px;
    }
}

/* Accueil : « Découvrir le salon » descend en douceur jusqu'au contenu (seulement sur
   l'accueil : sur Rendez-vous, le module Planity fait défiler la page lui-même). Rien
   pour qui a demandé à son appareil de réduire les animations. */
@media (prefers-reduced-motion: no-preference) {
    html:has(> body#body_accueil) {
        scroll-behavior: smooth;
    }
}

/* Pied de page : « Privé » (administration), après Instagram, même allure que les deux
   autres liens : le texte, puis l'icône aux mesures de celle d'Instagram (style.css :
   #insta_div svg), à toutes les tailles d'écran. */
#acces_div {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #FFF3CE;
    text-decoration: none;
}
#acces_div svg {
    height: 25px;
    width: 30px;
    padding-left: 10px;
    align-self: center;
    flex-shrink: 0;
}
/* Icône Facebook : même largeur de boîte que celle d'Instagram, pour la même taille
   dessinée sur tous les écrans (style.css la réduisait à 18 px sur tablette en paysage). */
#facebook_div svg {
    height: 25px;
    width: 30px;
    flex-shrink: 0;
}
#acces_div:hover p,
#acces_div:focus-visible p {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Bandeau d'annonce, tout en haut de chaque page (base.html.twig) : couleurs du site
   inversées (crème sur fond sombre ailleurs), pour qu'on le remarque sans qu'il détonne. */
.annonce {
    position: relative;
    background: #FFF3CE;
    color: #231F20;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    padding: 10px 48px;
}
.annonce[hidden] { display: none; }
/* Plusieurs bandeaux en même temps : un trait fin entre eux. */
.annonce:not([hidden]) ~ .annonce:not([hidden]) { border-top: 1px solid rgba(35, 31, 32, .18); }
.annonce p { margin: 0; }
.annonce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.annonce a:hover, .annonce a:focus-visible { text-decoration-thickness: 2px; }
.annonce-fermer {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.annonce-fermer:hover, .annonce-fermer:focus-visible { background: rgba(35, 31, 32, .1); }
@media (max-width: 600px) {
    .annonce { font-size: 14px; padding: 8px 44px 8px 14px; text-align: left; }
}

/* ---------- Mise en page commune à tous les blocs (réglages sous « Type de bloc ») ---------- */
/* Espace autour : resserré ou aéré (un bloc qui prolonge le précédent garde son haut collé). */
.salon-page .bloc-espace-serre:not(.bloc-suite) { padding-top: 4vh; }
.salon-page .bloc-espace-serre { padding-bottom: 4vh; }
.salon-page .bloc-espace-aere:not(.bloc-suite) { padding-top: 15vh; }
.salon-page .bloc-espace-aere { padding-bottom: 15vh; }
/* Alignement du texte. */
.salon-page .bloc-aligner-centre,
.salon-page .bloc-aligner-centre .texte-libre,
.salon-page .bloc-aligner-centre .salon-points { text-align: center; }
.salon-page .bloc-aligner-gauche,
.salon-page .bloc-aligner-gauche .texte-libre,
.salon-page .bloc-aligner-gauche .salon-points { text-align: left; }
.salon-page .bloc.bloc-aligner-gauche > .surtitre,
.salon-page .bloc.bloc-aligner-gauche > h2,
.salon-page .bloc.bloc-aligner-gauche > .texte-libre { max-width: 720px; margin-left: auto; margin-right: auto; }
/* Photo en fond, assombrie pour que le texte crème reste lisible. */
.salon-page .bloc-fond-photo {
    max-width: none;
    background-color: #231F20;
    background-image: linear-gradient(rgba(35, 31, 32, 0.72), rgba(35, 31, 32, 0.72)), var(--fond-photo);
    background-size: cover;
    background-position: var(--fond-position, center);
}
.salon-page .bloc-fond-photo > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.salon-page .bloc-fond-photo .surtitre { color: #E6DFD2; }
.salon-page .bloc.bloc-fond-photo > .texte-libre { max-width: 720px; }

/* Sous le pied de page : liens « Mentions légales » et « Confidentialité » (base.html.twig), petits et discrets. */
.liens-legaux {
    margin: 0;
    padding: 10px 16px 14px;
    background: #231F20;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
}
.liens-legaux span {
    color: #FFF3CE;
    opacity: .5;
}
.liens-legaux a {
    color: #FFF3CE;
    opacity: .75;
    text-decoration: none;
}
.liens-legaux a:hover,
.liens-legaux a:focus-visible {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Pages Confidentialité et Mentions légales (templates/confidentialite.html.twig,
   templates/mentions-legales.html.twig) ---------- */
.confidentialite-texte {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 9vh;
    font-size: 17px;
    line-height: 1.7;
    text-align: left;
}
.confidentialite-texte h2 {
    margin: 40px 0 12px;
    font-size: 21px;
    letter-spacing: 1px;
}
.confidentialite-texte ul {
    padding-left: 22px;
}
.confidentialite-texte li {
    margin: 6px 0;
}
.confidentialite-texte a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.confidentialite-texte .insecable {
    white-space: nowrap;
}
.confidentialite-texte .petit {
    font-size: 14px;
    opacity: .8;
}
.confidentialite-choix {
    margin: 8px 0 0;
    padding: 20px 24px;
    border: 1px solid rgba(255, 243, 206, .35);
    border-radius: 10px;
}
.confidentialite-choix h2 {
    margin-top: 0;
}
.confidentialite-choix .bouton {
    cursor: pointer;
    font: inherit;
}
