/* ============================================================
   L'Échelle Humaine — feuille de style du site
   Reprend l'apparence du site WordPress actuel
   ============================================================ */

:root {
    --fond-ivoire: #FEFCF8;
    --texte: #404040;
    --texte-doux: #555555;
    --lien: #916b04;
    --olive: #727928;
    --or-cadre: #b0a50e;
    --titre-site: #a04a1c;
    --sous-titre-site: #8a6512;
    --menu-texte: #777777;
    --menu-survol: #498121;
    --menu-survol-fond: rgba(227, 227, 221, 0.61);
    --menu-actif: #376718;
    --menu-actif-fond: rgba(228, 220, 194, 0.41);
    --bordure-douce: #dddddd;
    --largeur-site: 1170px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--texte);
    background-color: #ffffff;
    background-position: left top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    color: var(--lien);
    text-decoration: none;
}

a:hover,
a:focus {
    color: #a04a1c;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.lecteur-ecran {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ------------------------------------------------------------
   Bandeau
   ------------------------------------------------------------ */

.bandeau {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 69px 15px;
    text-align: center;
}

.bandeau-textes {
    position: relative;
    display: inline-block;
    transform: translateY(-40px);
    padding: 20px;
}

/* Voile ivoire en halo derrière le titre */
.bandeau-textes::before {
    content: "";
    position: absolute;
    inset: -30px -90px;
    background: radial-gradient(
        ellipse closest-side at center,
        rgba(255, 248, 232, 0.65) 0%,
        rgba(255, 248, 232, 0.35) 55%,
        rgba(255, 248, 232, 0) 100%
    );
    z-index: -1;
    pointer-events: none;
}

.site-titre {
    margin: 0;
    font-size: 60px;
    line-height: 70px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.site-titre,
.site-titre a {
    color: var(--titre-site);
    -webkit-text-stroke: 0.5px #3A1708;
    text-shadow:
        1px 1px 1px rgba(58, 33, 21, 0.35),
        0 0 3px rgba(255, 250, 240, 1),
        0 0 16px rgba(255, 248, 232, 0.9),
        0 0 34px rgba(255, 246, 228, 0.6);
}

.site-titre a:hover,
.site-titre a:focus {
    text-decoration: none;
}

.site-sous-titre {
    margin: 10px 0 0;
    font-size: 23px;
    line-height: 26px;
    color: var(--sous-titre-site);
    -webkit-text-stroke: 0.3px #5A3214;
    text-shadow:
        1px 1px 1px rgba(58, 33, 21, 0.2),
        0 0 3px rgba(255, 250, 240, 1),
        0 0 14px rgba(255, 248, 232, 0.8);
}

/* ------------------------------------------------------------
   Menu principal
   ------------------------------------------------------------ */

.menu-principal {
    position: relative;
    z-index: 50;
    background: #ffffff;
    box-shadow: 0 7px 19px -1px rgba(0, 0, 0, 0.17);
}

.menu {
    list-style: none;
    margin: 0 auto;
    padding: 0 15px;
    max-width: var(--largeur-site);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;
    padding: 20px 15px;
    color: var(--menu-texte);
    font-size: 15px;
    line-height: 20px;
    /* Surlignement progressif */
    transition: color 0.8s ease, background-color 0.8s ease;
}

.menu > li > a:hover,
.menu > li > a:focus,
.menu > li:hover > a {
    color: var(--menu-survol);
    background-color: var(--menu-survol-fond);
    text-decoration: none;
}

.menu .fleche {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    vertical-align: middle;
    border-top: 5px solid currentColor;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.sous-menu {
    list-style: none;
    margin: 0;
    padding: 5px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176);
    /* Sous-menu qui se déroule : fondu et glissement, petit délai avant la fermeture */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s, visibility 0s linear 0.75s;
}

/* Les entrées du sous-menu apparaissent l'une après l'autre */
.sous-menu > li {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.menu > li:hover > .sous-menu > li,
.menu > li:focus-within > .sous-menu > li {
    opacity: 1;
    /* durée seule : garde le décalage de chaque entrée (cascade) */
    transition-duration: 0.6s;
}
.sous-menu > li:nth-child(2) { transition-delay: 0.08s; }
.sous-menu > li:nth-child(3) { transition-delay: 0.16s; }
.sous-menu > li:nth-child(4) { transition-delay: 0.24s; }
.sous-menu > li:nth-child(5) { transition-delay: 0.32s; }
.sous-menu > li:nth-child(6) { transition-delay: 0.4s; }
.sous-menu > li:nth-child(7) { transition-delay: 0.48s; }
.sous-menu > li:nth-child(n+8) { transition-delay: 0.56s; }

.sous-menu a {
    display: block;
    padding: 3px 20px;
    color: #333333;
    font-size: 15px;
    line-height: 21.4px;
    white-space: nowrap;
    transition: color 0.7s ease, background-color 0.7s ease;
}

.sous-menu a:hover,
.sous-menu a:focus {
    color: var(--menu-survol);
    background-color: var(--menu-survol-fond);
    text-decoration: none;
}

.menu > li:hover > .sous-menu,
.menu > li:focus-within > .sous-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s;
}

.bouton-menu,
.ouvrir-sous-menu {
    display: none;
}

/* ------------------------------------------------------------
   Mise en page générale
   ------------------------------------------------------------ */

/* Largeurs identiques à celles du site actuel (grille Bootstrap 3) */
.conteneur {
    width: 100%;
    margin: 0 auto;
    padding: 15px 15px 0;
    background: #ffffff;
}

@media (min-width: 768px) {
    .conteneur {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .conteneur {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .conteneur {
        width: 1170px;
    }
}

.disposition {
    display: flex;
    align-items: flex-start;
    margin: 0 -15px;
}

.colonne-principale {
    flex: 0 0 75%;
    max-width: 75%;
    min-width: 0;
    padding: 0 15px;
}

.colonne-laterale {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.contenu-page {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid var(--bordure-douce);
    padding: 30px 15px;
    margin-bottom: 30px;
}

.titre-page {
    margin: 20px 0 10px;
    text-align: center;
    font-size: 36px;
    font-weight: 500;
    line-height: normal;
    color: #000000;
}

.sous-titre-page {
    margin: 20px 0 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    line-height: normal;
    color: #000000;
}

/* ------------------------------------------------------------
   Pages intérieures (page.php) : relevé sur les pages WordPress
   ------------------------------------------------------------ */
.bandeau-decoration {
    margin: 0 0 20px;
}

.bandeau-decoration img {
    display: block;
    width: 100%;
    height: auto;
}

.bandeau-brouillon {
    margin: -10px 0 20px;
    padding: 8px 12px;
    background: #fff4d6;
    border: 1px solid #e6c766;
    border-radius: 4px;
    color: #6b5a1e;
    font-size: 14px;
    text-align: center;
}

.texte-page {
    margin-top: 20px;
}

.texte-page::after {
    content: "";
    display: table;
    clear: both;
}

.texte-page p,
.texte-page ul,
.texte-page ol {
    margin: 0 0 10px;
}

.texte-page h2,
.texte-page h3,
.texte-page h4 {
    margin: 20px 0 10px;
    font-weight: 500;
    line-height: 1.1;
    color: #000000;
}

.texte-page h2 { font-size: 30px; }
.texte-page h3 { font-size: 24px; }
.texte-page h4 { font-size: 18px; }

.texte-page img {
    max-width: 100%;
    height: auto;
}

.texte-page .alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.texte-page .alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.texte-page .aligncenter {
    display: block;
    margin: 5px auto 20px;
}

/* Images placées par l'éditeur : figure alignée (gauche, centre, droite) et largeur par paliers */
.texte-page figure.image-page {
    margin: 5px 0 20px;
}

.texte-page figure.image-page img {
    display: block;
    width: 100%;
    height: auto;
}

.texte-page figure.image-page.alignleft { margin: 5px 20px 20px 0; }
.texte-page figure.image-page.alignright { margin: 5px 0 20px 20px; }
.texte-page figure.image-page.aligncenter { margin: 5px auto 20px; }
.texte-page figure.image-petite { width: 30%; }
.texte-page figure.image-moyenne { width: 45%; }
.texte-page figure.image-grande { width: 100%; }
.texte-page figure.image-naturelle { width: fit-content; max-width: 100%; }   /* MODIFICATION REQUISE : taille d'origine de l'image */
.texte-page figure.image-naturelle img { width: auto; max-width: 100%; }
/* MODIFICATION REQUISE : la légende ne dépasse pas la largeur de l'image, retour à la ligne automatique */
.texte-page figure.image-naturelle figcaption { width: 0; min-width: 100%; }
.texte-page figure.image-page figcaption { margin-top: 6px; font-size: 10pt; line-height: 1.4; text-align: left; }
.texte-page figure.image-page.aligncenter figcaption { text-align: center; }
/* FIN MODIFICATION */

/* Colonnes posées par l'éditeur : deux ou trois colonnes, égales ou inégales */
.texte-page .colonnes {
    display: grid;
    gap: 30px;
    margin: 0 0 20px;
}

.texte-page .colonnes-2 { grid-template-columns: 1fr 1fr; }
.texte-page .colonnes-3 { grid-template-columns: 1fr 1fr 1fr; }
.texte-page .colonnes-2-1 { grid-template-columns: 2fr 1fr; }
.texte-page .colonnes-1-2 { grid-template-columns: 1fr 2fr; }
/* MODIFICATION REQUISE : largeurs réglées à la souris dans l'éditeur */
.texte-page .colonnes[style*="--col-largeurs"] { grid-template-columns: var(--col-largeurs); }
/* FIN MODIFICATION */

.texte-page .colonne {
    min-width: 0;
}

.texte-page .colonne > :first-child { margin-top: 0; }
.texte-page .colonne > :last-child { margin-bottom: 0; }
.texte-page .colonne::after {
    content: "";
    display: table;
    clear: both;
}

/* Accordéon posé par l'éditeur
   Deux styles : « pavés » (titres sur fond coloré, comme les accordéons de l'ancien site) et « filets » (lignes fines, pastille ronde).
   La couleur choisie arrive par --acc-couleur, la couleur du texte qui reste lisible dessus par --acc-texte. */
.texte-page .accordeon {
    --acc-couleur: #e5c80a;
    --acc-texte: #313131;
    --acc-arrondi: 15px;
    --acc-fond: #ffffff;
    --acc-taille: 18px;
    margin: 0 0 20px;
}

.texte-page .accordeon.arrondi-aucun { --acc-arrondi: 0; }
.texte-page .accordeon.arrondi-leger { --acc-arrondi: 6px; }
.texte-page .accordeon.fond-creme { --acc-fond: #FEFCF8; }
.texte-page .accordeon.fond-transparent { --acc-fond: transparent; }
.texte-page .accordeon.titres-petite { --acc-taille: 16px; }
.texte-page .accordeon.titres-grande { --acc-taille: 21px; }

.texte-page .accordeon .volet-titre {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    font-size: var(--acc-taille);
    line-height: 1.35;
    user-select: none;
}

.texte-page .accordeon .volet-titre::-webkit-details-marker { display: none; }
.texte-page .accordeon .volet-titre::marker { content: ""; }
.texte-page .accordeon .volet-texte { flex: 1; }

.texte-page .accordeon .volet-icone {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.45s ease, background-color 0.45s ease, color 0.45s ease;
}

.texte-page .accordeon .volet-contenu > :first-child { margin-top: 0; }
.texte-page .accordeon .volet-contenu > :last-child { margin-bottom: 0; }
.texte-page .accordeon .volet-contenu::after { content: ""; display: table; clear: both; }

/* Icônes : plus et moins, flèche, chevron */
.texte-page .accordeon.icone-plus .volet-icone::before { content: "+"; }
.texte-page .accordeon.icone-plus .volet[open] .volet-icone::before,
.texte-page .accordeon.icone-plus .volet.ouvert .volet-icone::before { content: "\2212"; }
.texte-page .accordeon.icone-fleche .volet-icone::before { content: "\276F"; font-size: 14px; }
.texte-page .accordeon.icone-fleche .volet[open] .volet-icone,
.texte-page .accordeon.icone-fleche .volet.ouvert .volet-icone { transform: rotate(90deg); }
.texte-page .accordeon.icone-chevron .volet-icone::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.texte-page .accordeon.icone-chevron .volet[open] .volet-icone,
.texte-page .accordeon.icone-chevron .volet.ouvert .volet-icone { transform: rotate(180deg); }

/* Style « pavés » */
.texte-page .accordeon-paves .volet { margin-bottom: 6px; }

.texte-page .accordeon-paves .volet-titre {
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: var(--acc-arrondi);
    background: var(--acc-couleur);
    color: var(--acc-texte);
    transition: filter 0.3s ease, border-radius 0.3s ease;
}

.texte-page .accordeon-paves .volet-titre:hover { filter: brightness(1.08) saturate(1.1); }

.texte-page .accordeon-paves .volet[open] > .volet-titre,
.texte-page .accordeon-paves .volet.ouvert > .volet-titre {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.texte-page .accordeon-paves .volet-contenu {
    padding: 14px 16px;
    border: 1px solid var(--acc-couleur);
    border-top: 0;
    border-radius: 0 0 var(--acc-arrondi) var(--acc-arrondi);
    background: var(--acc-fond);
}

/* Police des symboles astrologiques : Astronomicon, de Roberto Corona (licence libre SIL OFL) */
@font-face {
    font-family: "Astronomicon";
    src: url("../polices/astronomicon.woff2") format("woff2");
    font-display: swap;
}

.symbole-astro {
    font-family: "Astronomicon";
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

/* Cartes posées par l'éditeur : rangée de 2, 3 ou 4 cartes, avec image, symbole, icône ou rien en haut */
.texte-page .cartes {
    --carte-accent: #7A1515;
    --carte-sur-accent: #ffffff;
    --carte-fond: #FEFCF8;
    --carte-sur-fond: #404040;
    --carte-degrade: #F6EEDC;
    --carte-medaillon: #B8960A;
    --carte-arrondi: 10px;
    --carte-hauteur: 160px;
    --carte-zone: 110px;
    --carte-trait: 4px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 20px;
}

.texte-page .cartes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.texte-page .cartes-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.texte-page .cartes.arrondi-aucun { --carte-arrondi: 0; }
.texte-page .cartes.arrondi-marque { --carte-arrondi: 20px; }
.texte-page .cartes.visuel-bas { --carte-hauteur: 110px; --carte-zone: 80px; }
.texte-page .cartes.visuel-haut { --carte-hauteur: 220px; --carte-zone: 150px; }
.texte-page .cartes.medaillon-fin { --carte-trait: 2px; }
.texte-page .cartes.medaillon-epais { --carte-trait: 7px; }

.texte-page .carte {
    position: relative;
    display: block;
    border-radius: var(--carte-arrondi);
    color: var(--carte-sur-fond);
    text-decoration: none;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.texte-page a.carte:hover,
.texte-page a.carte:focus {
    color: var(--carte-sur-fond);
    text-decoration: none;
}

.texte-page .carte-pivot {
    display: grid;
    height: 100%;
    border-radius: inherit;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.texte-page .carte-recto,
.texte-page .carte-verso {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: inherit;
    background: var(--carte-fond);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.texte-page .carte-verso {
    justify-content: center;
    background: var(--carte-accent);
    color: var(--carte-sur-accent);
    transform: rotateY(180deg);
}

.texte-page .cartes:not(.survol-retourne) .carte-verso { display: none; }

/* Haut de la carte */
.texte-page .carte-visuel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--carte-accent);
}

.texte-page .carte-visuel-image { height: var(--carte-hauteur); }

.texte-page .carte-visuel img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.texte-page .carte-visuel-symbole,
.texte-page .carte-visuel-icone { height: var(--carte-zone); }

.texte-page .carte-visuel .symbole-astro {
    font-size: calc(var(--carte-zone) * 0.45);
    transition: transform 0.7s ease;
}

.texte-page .carte-icone { display: inline-flex; transition: transform 0.7s ease; }

.texte-page .carte-icone svg {
    width: calc(var(--carte-zone) * 0.42);
    height: calc(var(--carte-zone) * 0.42);
}

.texte-page .cartes.degrade .carte-visuel-symbole,
.texte-page .cartes.degrade .carte-visuel-icone,
.texte-page .cartes.degrade.medaillon .carte-visuel {
    background: linear-gradient(180deg, var(--carte-degrade), var(--carte-fond));
}

/* Médaillon : l'image, le symbole ou l'icône dans un cercle */
.texte-page .cartes.medaillon .carte-visuel {
    height: auto;
    padding: 22px 0 4px;
}

.texte-page .cartes.medaillon .carte-visuel > img,
.texte-page .cartes.medaillon .carte-visuel > .symbole-astro,
.texte-page .cartes.medaillon .carte-visuel > .carte-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: calc(var(--carte-zone) + 20px);
    height: calc(var(--carte-zone) + 20px);
    border: var(--carte-trait) solid var(--carte-medaillon);
    border-radius: 50%;
    background: var(--carte-fond);
    box-shadow: 0 3px 10px rgba(80, 60, 20, 0.12);
}

/* Corps de la carte */
.texte-page .carte-corps {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 18px 18px;
}

.texte-page .cartes.alignement-centre .carte-corps {
    align-items: center;
    text-align: center;
}

.texte-page .carte-titre {
    margin: 0 0 6px;
    font-size: 19px;
    line-height: 1.25;
    color: inherit;
}

.texte-page .carte-texte {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.55;
}

.texte-page .carte-lien {
    margin-top: auto;
    color: var(--carte-accent);
    font-size: 14.5px;
    font-weight: 600;
}

.texte-page .carte-verso .carte-lien { color: var(--carte-sur-accent); }
.texte-page .carte-verso .carte-corps { flex: none; }

.texte-page .carte-bouton {
    display: inline-block;
    margin-top: auto;
    padding: 8px 18px;
    border-radius: min(var(--carte-arrondi), 8px);
    background: var(--carte-accent);
    color: var(--carte-sur-accent);
    font-size: 14.5px;
    transition: filter 0.3s ease;
}

.texte-page .carte:hover .carte-bouton { filter: brightness(1.12); }
.texte-page .carte-verso .carte-bouton { background: var(--carte-sur-accent); color: var(--carte-accent); }

/* Style élégant ou sobre */
.texte-page .cartes-elegante .carte-recto { border: 1px solid color-mix(in srgb, var(--carte-accent) 16%, transparent); }
.texte-page .cartes-elegante .carte-titre { font-weight: 600; }
.texte-page .cartes-sobre .carte-recto { border: 1px solid #dddddd; }
.texte-page .cartes-sobre .carte-titre { font-weight: 400; }

.texte-page .cartes-sobre .carte-lien {
    padding: 6px 14px;
    border: 1px solid var(--carte-accent);
    font-weight: 400;
}

/* Ombres */
.texte-page .cartes.ombre-legere .carte { box-shadow: 0 2px 10px rgba(80, 60, 20, 0.08); }
.texte-page .cartes.ombre-marquee .carte { box-shadow: 0 6px 22px rgba(80, 60, 20, 0.18); }

/* Effets au survol de la souris */
.texte-page .cartes.survol-souleve .carte:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(80, 60, 20, 0.2);
}

.texte-page .cartes.survol-zoom .carte:hover .carte-visuel img,
.texte-page .cartes.survol-zoom .carte:hover .carte-visuel .symbole-astro,
.texte-page .cartes.survol-zoom .carte:hover .carte-icone {
    transform: scale(1.09);
}

.texte-page .cartes.survol-voile .carte-visuel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--carte-accent);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.texte-page .cartes.survol-voile .carte:hover .carte-visuel::after { opacity: 0.2; }

.texte-page .cartes.survol-retourne .carte { perspective: 1200px; }

.texte-page .cartes.survol-retourne .carte:hover .carte-pivot,
.texte-page .cartes.survol-retourne .carte:focus-within .carte-pivot,
.texte-page .cartes.survol-retourne .carte.retournee .carte-pivot {
    transform: rotateY(180deg);
}

/* Avec le retournement, la carte ne se soulève pas : les deux mouvements se gêneraient */
.texte-page .cartes.survol-retourne.survol-souleve .carte:hover { transform: none; }

/* Style « filets » */
.texte-page .accordeon-filets { --acc-fond: transparent; }
.texte-page .accordeon-filets.fond-blanc { --acc-fond: #ffffff; }
.texte-page .accordeon-filets.fond-creme { --acc-fond: #FEFCF8; }

.texte-page .accordeon-filets .volet {
    border-bottom: 1px solid color-mix(in srgb, var(--acc-couleur) 40%, transparent);
}

.texte-page .accordeon-filets .volet:first-child {
    border-top: 1px solid color-mix(in srgb, var(--acc-couleur) 40%, transparent);
}

.texte-page .accordeon-filets .volet-titre {
    padding: 15px 4px;
    color: #3a2e22;
    transition: color 0.3s ease;
}

.texte-page .accordeon-filets .volet-titre:hover,
.texte-page .accordeon-filets .volet[open] > .volet-titre,
.texte-page .accordeon-filets .volet.ouvert > .volet-titre {
    color: color-mix(in srgb, var(--acc-couleur) 75%, #000000);
}

.texte-page .accordeon-filets .volet-icone {
    order: -1;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--acc-couleur);
    border-radius: 50%;
    color: var(--acc-couleur);
    font-size: 16px;
}

.texte-page .accordeon-filets.arrondi-aucun .volet-icone { border-radius: 0; }
.texte-page .accordeon-filets.arrondi-leger .volet-icone { border-radius: 6px; }

.texte-page .accordeon-filets .volet[open] .volet-icone,
.texte-page .accordeon-filets .volet.ouvert .volet-icone {
    background: var(--acc-couleur);
    color: var(--acc-texte);
}

.texte-page .accordeon-filets .volet-contenu {
    padding: 2px 4px 18px 44px;
    background: var(--acc-fond);
    border-radius: var(--acc-arrondi);
}

.texte-page table {
    width: 100%;
    margin: 0 0 20px;
    border-collapse: collapse;
}

.texte-page th,
.texte-page td {
    padding: 8px;
    border: 1px solid var(--bordure-douce);
    vertical-align: top;
}

/* Tailles de texte par paliers, choisies dans l'éditeur (« Normal » = taille du texte courant) */
.texte-petit {
    font-size: 13px;
}

.texte-grand {
    font-size: 18px;
    line-height: 1.5;
}

.texte-tres-grand {
    font-size: 22px;
    line-height: 1.4;
}

.page-introuvable {
    text-align: center;
}

.erreur-page {
    padding: 10px 14px;
    background: #fdf0ef;
    border: 1px solid #e3b5b0;
    color: #8a2a20;
}

.date-du-jour {
    margin: 0 0 10px;
    text-align: center;
    font-style: italic;
    font-size: 14px;
    color: #666666;
}

.bloc-texte {
    margin-top: 20px;
}

/* ------------------------------------------------------------
   Encadrés à image retournable
   ------------------------------------------------------------ */

.rangee-encadres {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.encadre {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    margin-top: 50px;
    padding: 14px;
    border: 1px solid var(--olive);
    border-radius: 4px;
    background: var(--fond-ivoire);
    color: var(--texte-doux);
    font-family: 'Noto Sans', Arial, sans-serif;
    transition: box-shadow 0.3s;
}

/* Un encadré seul dans sa rangée garde la largeur d'une demi-rangée */
.rangee-encadres .encadre:only-child {
    flex: 0 1 calc(50% - 15px);
}

.encadre:hover,
.encadre:focus {
    text-decoration: none;
    box-shadow: 4px 4px 5px 5px rgba(0, 0, 0, 0.2);
}

.encadre-image {
    flex: 0 0 106px;
    width: 106px;
    margin-top: -75px;
    margin-bottom: 20px;
    padding: 2px;
    border: 1px solid var(--or-cadre);
    border-radius: 4px;
    background: #ffffff;
    perspective: 600px;
}

.image-a-droite {
    flex-direction: row-reverse;
}

.carte-retournee {
    position: relative;
    display: block;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.carte-retournee img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carte-retournee .face-arriere {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
}

.encadre:hover .carte-retournee,
.encadre:focus .carte-retournee {
    transform: rotateY(180deg);
}

.encadre-texte {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.image-a-gauche .encadre-texte {
    text-align: right;
}

.image-a-droite .encadre-texte {
    text-align: left;
}

.encadre-titre {
    display: block;
    margin: 5px 0 10px;
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
}

.encadre-description {
    display: block;
    font-size: 14px;
    line-height: 22.4px;
    color: var(--texte-doux);
}

/* ------------------------------------------------------------
   Phrases défilantes
   ------------------------------------------------------------ */

.phrases-defilantes {
    position: relative;
    margin: 30px 0 10px;
    min-height: 70px;
}

.phrase {
    margin: 0;
    text-align: center;
    font-family: Georgia, Palatino, serif;
    font-size: 14pt;
    line-height: 1.6;
    opacity: 0;
    position: absolute;
    inset: 0 0 auto 0;
    transition: opacity 1.9s;
}

.phrase.active {
    opacity: 1;
    position: relative;
}

.phrase-ligne1 {
    color: #999999;
}

.phrase-ligne2 {
    color: #a68a38;
}

/* ------------------------------------------------------------
   Encadrés de texte (Coup d'oeil, Accès rapide)
   ------------------------------------------------------------ */

.encadre-vertical {
    margin-top: 50px;
    padding: 14px;
    border: 1px solid var(--olive);
    border-radius: 4px;
    background: var(--fond-ivoire);
    text-align: center;
    font-family: 'Noto Sans', Arial, sans-serif;
    transition: box-shadow 0.3s;
}

.encadre-vertical:hover {
    box-shadow: 4px 4px 5px 5px rgba(0, 0, 0, 0.2);
}

.encadre-vertical-image {
    display: inline-block;
    margin: -75px 0 20px;
    padding: 2px;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--or-cadre);
}

.encadre-vertical-image img {
    display: block;
    max-height: 70px;
    width: auto;
    border-radius: 4px;
}

.encadre-vertical .encadre-titre {
    margin: 5px 0 10px;
}

.encadre-vertical .encadre-description {
    margin: 0;
}

/* ------------------------------------------------------------
   Nos principes
   ------------------------------------------------------------ */

.principes {
    max-width: 900px;
    margin: 60px auto 20px;
    padding: 10px;
    background: #fbf8f1;
    border: 2px solid #e0dcd1;
    border-radius: 16px;
    box-shadow: 4px 2px 14px 0 rgba(0, 0, 0, 0.2);
}

.principes-entete {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.principes-entete img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
}

.principes-entete h2 {
    margin: 0;
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: normal;
    color: #000000;
}

.principes blockquote {
    margin: 0;
    padding: 10px 20px 10px 0;
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 17px;
    line-height: 27.2px;
    color: #333333;
    text-align: left;
}

/* ------------------------------------------------------------
   Colonne latérale
   ------------------------------------------------------------ */

.widget {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--fond-ivoire);
    border: 1px solid var(--bordure-douce);
}

.widget-titre {
    position: relative;
    margin: 10px 0;
    padding: 0 15px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    text-transform: uppercase;
    color: #000000;
}

.widget-titre::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid var(--bordure-douce);
}

.widget-titre span {
    position: relative;
    z-index: 5;
    display: inline-block;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid var(--bordure-douce);
}

.widget-contenu > :first-child {
    margin-top: 0;
}

.widget-contenu > :last-child {
    margin-bottom: 0;
}

.widget-contenu p {
    margin: 0 0 10px;
}

.widget-texte p {
    text-align: justify;
    hyphens: auto;
}

.widget ul {
    margin: 0;
    padding-left: 18px;
}

.widget li {
    margin-bottom: 6px;
}

.formulaire-infolettre {
    text-align: center;
}

.formulaire-infolettre p {
    margin: 0 0 10px;
}

.formulaire-infolettre input[type="email"] {
    width: 100%;
    padding: 6px;
    font: inherit;
    color: #464a4c;
    border: 2px inset #767676;
    background: #ffffff;
}

.formulaire-infolettre input[type="submit"] {
    padding: 6px;
    font: inherit;
    color: #464a4c;
    background: #ffffff;
    border: 1px solid #8e8e8e;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.formulaire-infolettre input[type="submit"]:hover {
    background: #f4f4f4;
}

.vignette-video {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.vignette-video img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.bouton-lecture {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.bouton-lecture::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #ffffff;
}

.image-legendee {
    margin: 0;
    padding: 5px 3px 10px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #f0f0f0;
}

.image-legendee figcaption {
    margin: 0;
    font-size: 13px;
    color: #000000;
}

/* ------------------------------------------------------------
   Fenêtre vidéo
   ------------------------------------------------------------ */

.fenetre-video {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

.fenetre-video[hidden] {
    display: none;
}

.fenetre-video-cadre {
    position: relative;
    width: 640px;
    max-width: 90%;
}

.fenetre-video video {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.fermer-video {
    position: absolute;
    top: -38px;
    right: 0;
    padding: 0 4px;
    font-size: 28px;
    line-height: 1;
    color: #ffffff;
    background: none;
    border: 0;
    cursor: pointer;
}

/* ------------------------------------------------------------
   Pied de page
   ------------------------------------------------------------ */

.pied {
    padding: 50px 15px 20px;
    text-align: center;
    background: #1e1e1e;
    color: rgba(158, 158, 158, 0.69);
    font-size: 15px;
}

.pied p {
    margin: 0 0 10px;
    color: #e1e0d1;
}

/* ------------------------------------------------------------
   Tablettes et téléphones
   ------------------------------------------------------------ */

@media (max-width: 991px) {
    .bandeau {
        padding: 30px 15px;
    }

    .bandeau-textes {
        transform: translateY(-10px);
    }

    .bandeau-textes::before {
        inset: -20px -10px;
    }

    .site-titre {
        font-size: clamp(24px, 8vw, 56px);
        line-height: 1.15;
    }

    .site-sous-titre {
        font-size: clamp(15px, 3.8vw, 26px);
        line-height: 1.3;
    }

    .disposition {
        flex-direction: column;
        align-items: stretch;
    }

    .colonne-principale,
    .colonne-laterale {
        flex-basis: auto;
        max-width: none;
    }

    /* Menu à trois traits */
    .bouton-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin: 0 auto;
        padding: 14px 16px;
        background: none;
        border: 0;
        cursor: pointer;
    }

    .bouton-menu > span:not(.lecteur-ecran) {
        display: block;
        width: 26px;
        height: 3px;
        background: var(--menu-texte);
        border-radius: 2px;
    }

    .menu {
        display: none;
        flex-direction: column;
        padding: 0 0 10px;
    }

    .menu-principal.ouvert .menu {
        display: flex;
    }

    .menu > li {
        display: flex;
        flex-wrap: wrap;
        border-top: 1px solid #eeeeee;
    }

    .menu > li > a {
        flex: 1 1 auto;
    }

    .menu .fleche {
        display: none;
    }

    .ouvrir-sous-menu {
        display: block;
        width: 52px;
        background: none;
        border: 0;
        border-left: 1px solid #eeeeee;
        cursor: pointer;
        position: relative;
    }

    .ouvrir-sous-menu::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-top: 6px solid var(--menu-texte);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
    }

    .ouvrir-sous-menu[aria-expanded="true"]::after {
        border-top: 0;
        border-bottom: 6px solid var(--menu-texte);
    }

    .sous-menu,
    .menu > li:hover > .sous-menu,
    .menu > li:focus-within > .sous-menu {
        position: static;
        display: none;
        flex-basis: 100%;
        box-shadow: none;
        background: #fafafa;
    }

    .menu > li.sous-menu-ouvert > .sous-menu {
        display: block;
    }

    /* Sur téléphone, le sous-menu s'ouvre au toucher, sans effet de déroulement */
    .sous-menu,
    .sous-menu > li {
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .sous-menu a {
        padding-left: 32px;
    }
}

@media (max-width: 640px) {
    .rangee-encadres {
        flex-direction: column;
        gap: 0;
    }
    .rangee-encadres .encadre:only-child {
        flex-basis: auto;
    }

    .contenu-page {
        padding: 25px 15px;
    }

    .titre-page {
        font-size: 28px;
    }

    .sous-titre-page {
        font-size: 20px;
    }

    .texte-page .alignleft,
    .texte-page .alignright {
        float: none;
        display: block;
        margin: 5px auto 20px;
    }

    .texte-page figure.image-page.alignleft,
    .texte-page figure.image-page.alignright {
        margin: 5px auto 20px;
    }

    .texte-page figure.image-petite,
    .texte-page figure.image-moyenne {
        width: 70%;
    }

    .texte-page .colonnes,
    .texte-page .colonnes[style*="--col-largeurs"] {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .texte-page .cartes,
    .texte-page .cartes-2,
    .texte-page .cartes-4 {
        grid-template-columns: 1fr;
    }
}

/* Écrans moyens : une rangée de quatre cartes passe à deux */
@media (min-width: 641px) and (max-width: 991px) {
    .texte-page .cartes-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablettes : le sous-menu ne s'ouvre plus par le survol imité au toucher (qui l'affichait d'un coup),
   mais par le premier toucher sur la rubrique (classe ouvert-tactile posée par site.js), avec déroulement */
@media (hover: none) and (min-width: 992px) {
    .menu > li:hover > .sous-menu,
    .menu > li:focus-within > .sous-menu {
        visibility: hidden;
        opacity: 0;
        transform: translateY(-16px);
        pointer-events: none;
        transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
    }
    .menu > li:hover > .sous-menu > li,
    .menu > li:focus-within > .sous-menu > li {
        opacity: 0;
    }
    .menu > li:hover > a {
        color: var(--menu-texte);
        background-color: transparent;
    }
    .menu > li.ouvert-tactile > .sous-menu,
    .menu > li.ouvert-tactile:hover > .sous-menu,
    .menu > li.ouvert-tactile:focus-within > .sous-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s;
    }
    .menu > li.ouvert-tactile > .sous-menu > li,
    .menu > li.ouvert-tactile:hover > .sous-menu > li {
        opacity: 1;
        transition-duration: 0.6s;
    }
    .menu > li.ouvert-tactile > a,
    .menu > li.ouvert-tactile:hover > a {
        color: var(--menu-survol);
        background-color: var(--menu-survol-fond);
    }
}

/* Personnes qui ont demandé à leur ordinateur de réduire les animations */
@media (prefers-reduced-motion: reduce) {
    .menu > li > a,
    .sous-menu,
    .sous-menu > li,
    .sous-menu a {
        transition: none !important;
    }
    .sous-menu {
        transform: none;
    }
    .texte-page .accordeon .volet-icone,
    .texte-page .accordeon .volet-titre {
        transition: none !important;
    }
    .texte-page .carte,
    .texte-page .carte-pivot,
    .texte-page .carte-visuel img,
    .texte-page .carte-visuel .symbole-astro,
    .texte-page .carte-icone {
        transition: none !important;
    }
}

/* MODIFICATION REQUISE : lettrines, symboles dans le texte, onglets, encadré, boutons */

/* ==========================================================
   Lettrine — réglage du paragraphe
   <p class="lettrine lettrine-sobre lettrine-3" style="--lettrine-couleur:#916b04">
   ========================================================== */
.texte-page p.lettrine { min-height: calc(var(--lettrine-lignes, 2) * 1lh + 8px); }   /* la lettrine ne déborde pas sur le paragraphe suivant, et le texte peut toujours habiller une image */
.texte-page p.lettrine-3 { --lettrine-lignes: 3; }
.texte-page p.lettrine-4 { --lettrine-lignes: 4; }

.texte-page p.lettrine::first-letter {
    float: left;
    color: var(--lettrine-couleur, #916b04);
}

/* Sobre : grande initiale fine, dans la police du texte */
.texte-page p.lettrine-sobre::first-letter {
    font-weight: 300;
    line-height: 0.78;
    padding: 0.06em 0.09em 0 0;
}
.texte-page p.lettrine-sobre.lettrine-2::first-letter { font-size: 3.25em; }
.texte-page p.lettrine-sobre.lettrine-3::first-letter { font-size: 4.95em; }
.texte-page p.lettrine-sobre.lettrine-4::first-letter { font-size: 6.6em; }

/* Safari et Chrome savent poser une initiale exactement sur 2, 3 ou 4 lignes, quelle que soit la police */
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
    .texte-page p.lettrine-sobre::first-letter,
    .texte-page p.lettrine-sobre.lettrine-2::first-letter,
    .texte-page p.lettrine-sobre.lettrine-3::first-letter,
    .texte-page p.lettrine-sobre.lettrine-4::first-letter {
        float: none;
        font-size: 1em;
        line-height: inherit;
        padding: 0;
        margin-right: 0.12em;
    }
    .texte-page p.lettrine-sobre.lettrine-2::first-letter { -webkit-initial-letter: 2; initial-letter: 2; }
    .texte-page p.lettrine-sobre.lettrine-3::first-letter { -webkit-initial-letter: 3; initial-letter: 3; }
    .texte-page p.lettrine-sobre.lettrine-4::first-letter { -webkit-initial-letter: 4; initial-letter: 4; }
}

/* Enluminée : initiale à empattements dans un double cadre */
.texte-page p.lettrine-enluminee::first-letter {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    line-height: 1;
    margin: 4px 12px 0 0;
    background: #FEFCF8;
    border: 1px solid var(--lettrine-cadre, #B8960A);
    box-shadow: inset 0 0 0 3px #FEFCF8, inset 0 0 0 4px color-mix(in srgb, var(--lettrine-cadre, #B8960A) 45%, transparent);
}
.texte-page p.lettrine-enluminee.lettrine-2::first-letter { font-size: 1.85em; padding: 5px 9px 4px; }
.texte-page p.lettrine-enluminee.lettrine-3::first-letter { font-size: 3.1em; padding: 8px 12px 6px; }
.texte-page p.lettrine-enluminee.lettrine-4::first-letter { font-size: 4.35em; padding: 10px 15px 8px; }

/* Symbole astrologique au fil du texte */
.texte-page .symbole-texte {
    font-size: 1.12em;
    line-height: 1;
}

/* ==========================================================
   Onglets
   <div class="onglets onglets-fidele titres-gauche …"><section class="onglet"><h3 class="onglet-titre">…</h3><div class="onglet-contenu">…</div></section>…</div>
   Sans JavaScript, les sections se lisent l'une sous l'autre ; site.js construit la barre des titres (classe « pret »).
   ========================================================== */
.texte-page .onglets {
    --ong-couleur: #e0c70b;
    --ong-texte: #313131;
    --ong-actif: #f0e907;
    --ong-actif-texte: #111111;
    --ong-arrondi: 10px;
    --ong-fond: #fffefc;
    --ong-taille: 15.5px;
    --ong-largeur: 26%;
    margin: 0 0 24px;
}

.texte-page .onglets.arrondi-aucun { --ong-arrondi: 0px; }
.texte-page .onglets.arrondi-leger { --ong-arrondi: 5px; }
.texte-page .onglets.fond-blanc { --ong-fond: #ffffff; }
.texte-page .onglets.fond-transparent { --ong-fond: transparent; }
.texte-page .onglets.taille-petite { --ong-taille: 14px; }
.texte-page .onglets.taille-grande { --ong-taille: 17.5px; }
.texte-page .onglets.largeur-etroite { --ong-largeur: 19%; }
.texte-page .onglets.largeur-large { --ong-largeur: 34%; }

.texte-page .onglet-titre {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 10px;
    font-size: 21px;
}

.texte-page .onglet-visuel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
}

.texte-page .onglet-visuel.symbole-astro { font-size: 1.15em; }
.texte-page .onglet-visuel svg { width: 1.1em; height: 1.1em; }

.texte-page .onglet-contenu::after {
    content: "";
    display: table;
    clear: both;
}

.texte-page .onglet-contenu > :first-child { margin-top: 0; }
.texte-page .onglet-contenu > :last-child { margin-bottom: 0; }

.texte-page .onglets-barre {
    position: relative;
    display: flex;
    margin: 0;
    padding: 0;
}

.texte-page .onglet-bouton {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: var(--ong-taille);
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.texte-page .onglets.pret > .onglet > .onglet-titre { display: none; }
.texte-page .onglets.pret > .onglet:not(.actif) { display: none; }

/* Titres à gauche ou en haut */
.texte-page .onglets.pret.titres-gauche {
    display: flex;
    align-items: flex-start;
}

.texte-page .onglets.titres-gauche > .onglets-barre {
    flex: 0 0 var(--ong-largeur);
    flex-direction: column;
    max-width: var(--ong-largeur);
}

.texte-page .onglets.titres-gauche > .onglet {
    flex: 1;
    min-width: 0;
}

.texte-page .onglets.titres-haut > .onglets-barre { flex-wrap: wrap; }

/* Version fidèle : titres sur un fond coloré, contenu dans un cadre doré */
.texte-page .onglets-fidele .onglet-bouton {
    padding: 12px 10px 12px 18px;
    background: var(--ong-couleur);
    color: var(--ong-texte);
    transition: background-color 0.35s ease, color 0.35s ease, filter 0.35s ease;
}

.texte-page .onglets-fidele .onglet-bouton:hover { filter: brightness(1.06) saturate(1.08); }

.texte-page .onglets-fidele .onglet-bouton.actif {
    background: var(--ong-actif);
    color: var(--ong-actif-texte);
}

.texte-page .onglets-fidele .onglet-contenu {
    min-height: 180px;
    padding: 18px 20px;
    border: 1px solid color-mix(in srgb, var(--ong-couleur) 82%, #7a4a00);
    border-radius: 3px;
    background: var(--ong-fond);
}

.texte-page .onglets-fidele.titres-gauche .onglet-bouton {
    margin: 0 -1px 8px 0;
    border-radius: var(--ong-arrondi) 0 0 var(--ong-arrondi);
}

.texte-page .onglets-fidele.titres-haut > .onglets-barre { gap: 4px; }

.texte-page .onglets-fidele.titres-haut .onglet-bouton {
    padding: 10px 18px;
    border-radius: var(--ong-arrondi) var(--ong-arrondi) 0 0;
}

.texte-page .onglets-fidele.titres-haut .onglet-contenu { border-top-left-radius: 0; }

/* Version élégante : titres légers, filet d'or qui glisse sous (ou à côté de) l'onglet choisi */
.texte-page .onglets-elegante .onglet-bouton {
    padding: 10px 2px 12px;
    color: #8a7d68;
    letter-spacing: 0.02em;
    transition: color 0.35s ease;
}

.texte-page .onglets-elegante .onglet-bouton:hover,
.texte-page .onglets-elegante .onglet-bouton.actif { color: #3a2e22; }

.texte-page .onglets-elegante .onglet-visuel { color: var(--ong-couleur); }

.texte-page .onglets-elegante.titres-haut > .onglets-barre {
    gap: 4px 26px;
    border-bottom: 1px solid color-mix(in srgb, var(--ong-couleur) 30%, #e6dcc4);
}

.texte-page .onglets-elegante.titres-gauche > .onglets-barre {
    margin-right: 26px;
    border-right: 1px solid color-mix(in srgb, var(--ong-couleur) 30%, #e6dcc4);
}

.texte-page .onglets-elegante.titres-gauche .onglet-bouton { padding: 10px 16px 10px 2px; }

.texte-page .onglets-indicateur {
    position: absolute;
    border-radius: 2px;
    pointer-events: none;
    transition: left 0.5s cubic-bezier(0.33, 0, 0.2, 1), width 0.5s cubic-bezier(0.33, 0, 0.2, 1),
        top 0.5s cubic-bezier(0.33, 0, 0.2, 1), height 0.5s cubic-bezier(0.33, 0, 0.2, 1);
}

.texte-page .onglets.titres-haut .onglets-indicateur {
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--ong-couleur), color-mix(in srgb, var(--ong-couleur) 60%, #fff3a0));
}

.texte-page .onglets.titres-gauche .onglets-indicateur {
    right: -1px;
    width: 2px;
    background: linear-gradient(180deg, var(--ong-couleur), color-mix(in srgb, var(--ong-couleur) 60%, #fff3a0));
}

.texte-page .onglets-elegante .onglet-contenu {
    padding: 18px 2px;
    border-radius: var(--ong-arrondi);
    background: var(--ong-fond);
}

.texte-page .onglets-elegante:not(.fond-transparent) .onglet-contenu {
    margin-top: 10px;
    padding: 18px 20px;
}

.texte-page .onglets-elegante.titres-gauche:not(.fond-transparent) .onglet-contenu { margin-top: 0; }

/* Passage d'un onglet à l'autre (seulement après un clic, pas au chargement de la page) */
.texte-page .onglets.anime.anim-fondu > .onglet.actif { animation: onglet-fondu 0.5s ease both; }
.texte-page .onglets.anime.anim-glisse > .onglet.actif { animation: onglet-glisse 0.55s cubic-bezier(0.33, 0, 0.2, 1) both; }

@keyframes onglet-fondu {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes onglet-glisse {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* ==========================================================
   Encadré
   <div class="encart encart-fidele …"><span class="encart-pastille">…</span><p class="encart-titre">…</p><div class="encart-contenu">…</div></div>
   ========================================================== */
.texte-page .encart {
    --enc-couleur: #dddddd;
    --enc-fond: #FEFCF8;
    --enc-sur-fond: #404040;
    --enc-titre: #000000;
    --enc-arrondi: 6px;
    position: relative;
    margin: 0 0 22px;
    padding: 16px 20px;
    background: var(--enc-fond);
    color: var(--enc-sur-fond);
}

.texte-page .encart::after {
    content: "";
    display: table;
    clear: both;
}

.texte-page .encart.arrondi-aucun { --enc-arrondi: 0px; }
.texte-page .encart.arrondi-marque { --enc-arrondi: 14px; }

.texte-page .encart-fidele {
    border: 1px solid var(--enc-couleur);
    border-radius: var(--enc-arrondi);
}

.texte-page .encart-elegant {
    padding: 18px 22px;
    border-left: 3px solid var(--enc-couleur);
    border-radius: 0 var(--enc-arrondi) var(--enc-arrondi) 0;
    background: linear-gradient(135deg, var(--enc-fond), color-mix(in srgb, var(--enc-fond) 90%, var(--enc-couleur)));
}

.texte-page .encart.avec-pastille { padding-left: 68px; }

.texte-page .encart-pastille {
    position: absolute;
    top: 17px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--enc-couleur);
    border-radius: 50%;
    color: color-mix(in srgb, var(--enc-couleur) 80%, #000000);
    font-size: 19px;
    line-height: 1;
}

.texte-page .encart-fidele .encart-pastille {
    border-color: color-mix(in srgb, var(--enc-couleur) 70%, #8a7d68);
    color: #916b04;
}

.texte-page .encart-pastille svg { width: 18px; height: 18px; }

.texte-page .encart-titre {
    margin: 2px 0 8px;
    color: var(--enc-titre);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
}

.texte-page .encart-elegant .encart-titre { color: color-mix(in srgb, var(--enc-couleur) 62%, var(--enc-titre)); }

.texte-page .encart-contenu > :first-child { margin-top: 0; }
.texte-page .encart-contenu > :last-child { margin-bottom: 0; }

.texte-page .encart.ombre-legere { box-shadow: 0 6px 18px -10px rgba(80, 60, 20, 0.35); }
.texte-page .encart.ombre-marquee { box-shadow: 0 14px 30px -12px rgba(80, 60, 20, 0.5); }

.texte-page .encart.largeur-centree {
    max-width: 80%;
    margin-right: auto;
    margin-left: auto;
}

.texte-page .encart.largeur-droite {
    float: right;
    width: 42%;
    margin: 4px 0 16px 24px;
}

.texte-page .encart.largeur-gauche {
    float: left;
    width: 42%;
    margin: 4px 24px 16px 0;
}

.texte-page .encart.largeur-droite,
.texte-page .encart.largeur-gauche { box-sizing: border-box; }

/* ==========================================================
   Boutons
   <div class="boutons boutons-fidele taille-normale aligne-gauche …"><a class="bouton-page" href="…"><span class="bouton-texte">…</span></a></div>
   ========================================================== */
.texte-page .boutons {
    --btn-couleur: #e0c70b;
    --btn-texte: #222222;
    --btn-arrondi: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 6px 0 20px;
}

.texte-page .boutons.aligne-centre { justify-content: center; }
.texte-page .boutons.aligne-droite { justify-content: flex-end; }
.texte-page .boutons.arrondi-aucun { --btn-arrondi: 0px; }
.texte-page .boutons.arrondi-marque { --btn-arrondi: 40px; }

.texte-page .bouton-page {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--btn-arrondi);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.35s ease, background-size 0.55s cubic-bezier(0.33, 0, 0.2, 1), color 0.35s ease,
        box-shadow 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.texte-page a.bouton-page { cursor: pointer; }
.texte-page a.bouton-page:hover,
.texte-page a.bouton-page:focus { text-decoration: none; }

.texte-page .boutons.taille-petite .bouton-page { padding: 7px 16px; font-size: 13.5px; }
.texte-page .boutons.taille-grande .bouton-page { padding: 14px 32px; font-size: 17.5px; }
.texte-page .boutons.largeur-pleine .bouton-page { flex: 1 1 0; }

.texte-page .bouton-visuel {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.texte-page .bouton-visuel.symbole-astro { font-size: 1.15em; }
.texte-page .bouton-visuel svg { width: 1.1em; height: 1.1em; }

/* Version fidèle : pavé de couleur */
.texte-page .boutons-fidele .bouton-page,
.texte-page .boutons-fidele a.bouton-page:hover,
.texte-page .boutons-fidele a.bouton-page:focus {
    background-color: var(--btn-couleur);
    background-image: linear-gradient(90deg, color-mix(in srgb, var(--btn-couleur) 72%, #ffffff), color-mix(in srgb, var(--btn-couleur) 72%, #ffffff));
    color: var(--btn-texte);
}

/* Version élégante : contour fin, couleur qui remplit au survol */
.texte-page .boutons-elegante .bouton-page,
.texte-page .boutons-elegante a.bouton-page:focus {
    border: 1px solid var(--btn-couleur);
    background-color: transparent;
    background-image: linear-gradient(90deg, var(--btn-couleur), color-mix(in srgb, var(--btn-couleur) 70%, #fff3a0));
    color: color-mix(in srgb, var(--btn-couleur) 62%, #000000);
    letter-spacing: 0.03em;
}

/* Au survol */
.texte-page .boutons-fidele.survol-eclaire a.bouton-page:hover { filter: brightness(1.1) saturate(1.1); }
.texte-page .boutons-elegante.survol-eclaire a.bouton-page:hover { background-color: var(--btn-couleur); color: var(--btn-texte); }

.texte-page .boutons.survol-souleve a.bouton-page:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--btn-couleur) 80%, #000000);
}

.texte-page .boutons-elegante.survol-souleve a.bouton-page:hover { background-color: var(--btn-couleur); color: var(--btn-texte); }

.texte-page .boutons.survol-glisse a.bouton-page:hover { background-size: 100% 100%; }
.texte-page .boutons-elegante.survol-glisse a.bouton-page:hover {
    color: var(--btn-texte);
    box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--btn-couleur) 75%, transparent);
}

/* ==========================================================
   Téléphone : onglets en volets, encadrés pleine largeur
   ========================================================== */
@media (max-width: 640px) {
    .texte-page .onglets.pret.titres-gauche { display: block; }
    .texte-page .onglets.pret > .onglets-barre { display: none; }
    .texte-page .onglets.pret > .onglet,
    .texte-page .onglets.pret > .onglet:not(.actif) { display: block; }

    .texte-page .onglets.pret > .onglet > .onglet-titre {
        display: flex;
        margin: 0 0 6px;
        padding: 11px 14px;
        border-radius: var(--ong-arrondi);
        font-size: var(--ong-taille);
        line-height: 1.35;
        cursor: pointer;
    }

    .texte-page .onglets.pret > .onglet > .onglet-titre::after {
        content: "\2304";
        margin-left: auto;
        transition: transform 0.4s ease;
    }

    .texte-page .onglets.pret > .onglet.actif > .onglet-titre::after { transform: rotate(180deg); }

    .texte-page .onglets-fidele.pret > .onglet > .onglet-titre {
        background: var(--ong-couleur);
        color: var(--ong-texte);
    }

    .texte-page .onglets-fidele.pret > .onglet.actif > .onglet-titre {
        background: var(--ong-actif);
        color: var(--ong-actif-texte);
    }

    .texte-page .onglets-elegante.pret > .onglet > .onglet-titre {
        padding: 11px 2px;
        border-bottom: 1px solid color-mix(in srgb, var(--ong-couleur) 30%, #e6dcc4);
        border-radius: 0;
        color: #3a2e22;
    }

    .texte-page .onglets.pret > .onglet:not(.actif) > .onglet-contenu { display: none; }
    .texte-page .onglets.pret > .onglet > .onglet-contenu { margin: 0 0 10px; min-height: 0; }

    .texte-page .encart.largeur-droite,
    .texte-page .encart.largeur-gauche,
    .texte-page .encart.largeur-centree {
        float: none;
        width: auto;
        max-width: none;
        margin: 0 0 22px;
    }

    .texte-page .boutons.largeur-pleine .bouton-page { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .texte-page .onglet-bouton,
    .texte-page .onglets-indicateur,
    .texte-page .bouton-page {
        transition: none !important;
    }
    .texte-page .onglets.anime > .onglet.actif { animation: none !important; }
}
/* FIN MODIFICATION */

/* ------------------------------------------------------------
   Outils Encadrés à image et Phrases défilantes : styles et effets
   ------------------------------------------------------------ */
.texte-page a.encadre, .texte-page a.encadre:hover { color: var(--texte-doux); text-decoration: none; }
.encadres-elegant .encadre { border: 1px solid #e6dcc0; border-top: 3px solid #B8960A; border-radius: 8px; background: linear-gradient(180deg, #FEFCF8, #FBF6E9); box-shadow: 0 2px 8px rgba(80, 60, 20, 0.08); transition: box-shadow 0.4s, transform 0.4s; }
.encadres-elegant .encadre:hover, .encadres-elegant .encadre:focus { box-shadow: 0 10px 24px rgba(80, 60, 20, 0.2); transform: translateY(-3px); }
.encadres-elegant .encadre-image { border: 0; border-radius: 8px; padding: 3px; box-shadow: 0 4px 12px rgba(80, 60, 20, 0.25), 0 0 0 1px #d9c98f; }
.encadres-elegant .encadre-titre { font-family: Georgia, Palatino, serif; font-size: 18px; color: #7A1515; }
.effet-fondu .carte-retournee, .effet-zoom .carte-retournee, .effet-glisse .carte-retournee { overflow: hidden; border-radius: 4px; transform: none !important; transform-style: flat; transition: none; }
.effet-fondu .carte-retournee .face-arriere, .effet-zoom .carte-retournee .face-arriere, .effet-glisse .carte-retournee .face-arriere { transform: none; }
.effet-fondu .face-arriere { opacity: 0; transition: opacity 1.1s ease; }
.effet-fondu .encadre:hover .face-arriere, .effet-fondu .encadre:focus .face-arriere { opacity: 1; }
.effet-zoom .face-avant, .effet-zoom .carte-retournee .face-arriere { transition: opacity 1s ease, transform 1.6s ease; }
.effet-zoom .carte-retournee .face-arriere { opacity: 0; transform: scale(1.25); }
.effet-zoom .encadre:hover .face-arriere, .effet-zoom .encadre:focus .face-arriere { opacity: 1; transform: scale(1); }
.effet-zoom .encadre:hover .face-avant, .effet-zoom .encadre:focus .face-avant { transform: scale(1.15); }
.effet-glisse .carte-retournee .face-arriere { transform: translateY(101%); transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.3, 1); }
.effet-glisse .encadre:hover .face-arriere, .effet-glisse .encadre:focus .face-arriere { transform: none; }
.phrases-elegant.phrases-defilantes { padding: 14px 10px; border-top: 1px solid #d9c98f; border-bottom: 1px solid #d9c98f; overflow: hidden; }
.phrases-elegant .phrase-ligne1 { color: #6b6b6b; font-size: 13pt; font-style: italic; }
.phrases-elegant .phrase-ligne2 { color: #7A1515; font-size: 15pt; }
.phrases-elegant.phrases-defilantes .phrase { inset: 14px 10px auto 10px; }
.defile-montee { overflow: hidden; }
.defile-montee .phrase { transform: translateY(22px); transition: opacity 1.3s ease, transform 1.3s ease; }
.defile-montee .phrase.active { transform: none; }
.defile-montee .phrase.sortie { transform: translateY(-22px); }
.defile-rideau .phrase { opacity: 1; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s ease; }
.defile-rideau .phrase.active { clip-path: inset(0 0 0 0); }
.defile-rideau .phrase.sortie { clip-path: inset(0 0 0 100%); }
.defile-lignes .phrase { transition: opacity 0.9s 0.9s; }
.defile-lignes .phrase.active { transition: opacity 0.2s; }
.defile-lignes .phrase br { display: none; }
.defile-lignes .phrase-ligne1, .defile-lignes .phrase-ligne2 { display: block; opacity: 0; transform: translateY(8px); transition: opacity 1.1s ease, transform 1.1s ease; }
.defile-lignes .phrase.active .phrase-ligne1, .defile-lignes .phrase.active .phrase-ligne2 { opacity: 1; transform: none; }
.defile-lignes .phrase.active .phrase-ligne2 { transition-delay: 0.7s; }

.texte-page h2.sous-titre-page { font-size: 24px; line-height: normal; margin: 0 0 10px; }
.texte-page .encadre-vertical h2.encadre-titre { margin: 5px 0 10px; font-size: 17px; line-height: normal; }

/* L'image d'un encadré vertical dépasse de 61 px au-dessus du cadre : place réservée pour qu'elle ne touche pas le cadre précédent */
.encadre-vertical { margin-top: 85px; }

/* Encadré avec image en haut (dépasse du cadre) ou à côté du titre */
.texte-page .encart.avec-image-haute { margin-top: 85px; padding: 14px; text-align: center; font-family: 'Noto Sans', Arial, sans-serif; transition: box-shadow 0.3s; }
.texte-page .encart.avec-image-haute.arrondi-leger { --enc-arrondi: 4px; }
.texte-page .encart.avec-image-haute:hover { box-shadow: 4px 4px 5px 5px rgba(0, 0, 0, 0.2); }
.texte-page .avec-image-haute .encart-image { display: inline-block; margin: -75px 0 20px; padding: 2px; border-radius: 4px; background: #ffffff; box-shadow: inset 0 0 0 1px #b0a50e; }
.texte-page .avec-image-haute .encart-image img { display: block; max-height: 70px; width: auto; border-radius: 4px; }
.texte-page .avec-image-haute h2.encart-titre { margin: 5px 0 10px; font-family: 'Noto Sans', Arial, sans-serif; font-size: 17px; font-weight: 700; line-height: normal; }
.texte-page .avec-image-haute .encart-contenu p { margin: 0; font-size: 14px; line-height: 22.4px; color: #555555; }
.texte-page .encart.avec-image-cote { margin: 60px auto 20px; padding: 10px; border-width: 2px; border-radius: 16px; font-family: 'Noto Sans', Arial, sans-serif; box-shadow: 4px 2px 14px 0 rgba(0, 0, 0, 0.2); }
.texte-page .avec-image-cote .encart-image { float: left; margin: 0 15px 15px 0; }
.texte-page .avec-image-cote .encart-image img { display: block; width: 74px; height: 74px; border-radius: 50%; object-fit: cover; }
.texte-page .avec-image-cote h2.encart-titre { margin: 0 0 15px; font-family: 'Noto Sans', Arial, sans-serif; font-size: 30px; font-weight: 400; line-height: 74px; }
.texte-page .avec-image-cote .encart-contenu { clear: both; padding: 10px 20px 10px 0; }
.texte-page .avec-image-cote .encart-contenu p { margin: 0 0 27.2px; font-size: 17px; line-height: 27.2px; color: #333333; text-align: left; }
.texte-page .avec-image-cote .encart-contenu p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .texte-page .avec-image-cote h2.encart-titre { font-size: 22px; line-height: 1.25; } }

/* Encadré : image à gauche ou à droite, réglage fin, alignement du texte */
.texte-page .encart .encart-image { transform: translate(var(--enc-img-x, 0), var(--enc-img-y, 0)); }
.texte-page .encart[style*="--enc-img-l"] .encart-image img { width: var(--enc-img-l); max-width: 100%; height: auto; max-height: none; }
.texte-page .avec-image-gauche .encart-image img, .texte-page .avec-image-droite .encart-image img { display: block; width: 160px; max-width: 100%; height: auto; border-radius: 4px; }
.texte-page .avec-image-gauche h2.encart-titre, .texte-page .avec-image-droite h2.encart-titre { margin: 2px 0 8px; font-size: 21px; font-weight: 500; line-height: 1.2; }
.texte-page .encart.avec-image-gauche:not(.image-habillee) { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 18px; }
.texte-page .encart.avec-image-droite:not(.image-habillee) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; column-gap: 18px; }
.texte-page .encart.avec-image-gauche:not(.image-habillee)::after, .texte-page .encart.avec-image-droite:not(.image-habillee)::after { display: none; }
.texte-page .avec-image-gauche:not(.image-habillee) > .encart-image { grid-column: 1; grid-row: 1 / span 2; }
.texte-page .avec-image-gauche:not(.image-habillee) > .encart-titre, .texte-page .avec-image-gauche:not(.image-habillee) > .encart-contenu { grid-column: 2; }
.texte-page .avec-image-droite:not(.image-habillee) > .encart-image { grid-column: 2; grid-row: 1 / span 2; }
.texte-page .avec-image-droite:not(.image-habillee) > .encart-titre, .texte-page .avec-image-droite:not(.image-habillee) > .encart-contenu { grid-column: 1; }
.texte-page .avec-image-gauche.image-habillee > .encart-image { float: left; margin: 2px 18px 10px 0; }
.texte-page .avec-image-droite.image-habillee > .encart-image { float: right; margin: 2px 0 10px 18px; }
.texte-page .encart.texte-gauche .encart-titre, .texte-page .encart.texte-gauche .encart-contenu p { text-align: left; }
.texte-page .encart.texte-centre .encart-titre, .texte-page .encart.texte-centre .encart-contenu p { text-align: center; }
.texte-page .encart.texte-droite .encart-titre, .texte-page .encart.texte-droite .encart-contenu p { text-align: right; }
.texte-page .encart.texte-justifie .encart-contenu p { text-align: justify; }
/* Encadrés à image : place de l'image, réglage fin, alignement du texte */
.rangee-encadres .encadre-image { transform: translate(var(--vig-x, 0), var(--vig-y, 0)); }
.rangee-encadres[style*="--vig-l"] .encadre-image { flex-basis: var(--vig-l); width: var(--vig-l); }
.encadre.image-a-droite { flex-direction: row-reverse; }
.encadre.image-en-haut { flex-direction: column; align-items: center; }
.encadre.image-en-haut .encadre-texte { width: 100%; text-align: center; }
.rangee-encadres.image-habillee .encadre { display: block; }
.rangee-encadres.image-habillee .encadre::after { content: ""; display: table; clear: both; }
.rangee-encadres.image-habillee .image-a-gauche .encadre-image { float: left; margin-right: 14px; }
.rangee-encadres.image-habillee .image-a-droite .encadre-image { float: right; margin-left: 14px; }
.rangee-encadres.image-habillee .encadre-texte { display: inline; }
.rangee-encadres.texte-gauche .encadre-texte { text-align: left; }
.rangee-encadres.texte-centre .encadre-texte { text-align: center; }
.rangee-encadres.texte-droite .encadre-texte { text-align: right; }
.rangee-encadres.texte-justifie .encadre-texte { text-align: justify; }
.rangee-encadres.texte-justifie .encadre-titre { text-align: left; }
@media (max-width: 600px) {
    .texte-page .encart.avec-image-gauche:not(.image-habillee), .texte-page .encart.avec-image-droite:not(.image-habillee) { display: block; }
    .texte-page .avec-image-gauche > .encart-image, .texte-page .avec-image-droite > .encart-image { float: none; display: block; margin: 0 auto 12px; width: fit-content; }
}

.encadre.image-en-haut { margin-top: 85px; }
.encadre.image-en-haut .encadre-image, .rangee-encadres[style*="--vig-l"] .encadre.image-en-haut .encadre-image { flex-basis: auto; }

.rangee-encadres { margin-bottom: 22px; }

/* Sur téléphone, les grands espaces sont réduits automatiquement ; les petits ne changent pas */
@media (max-width: 767px) { .texte-page .espace { max-height: 30px; } }

/* ==========================================================
   Fenêtre papillon
   ========================================================== */
.papillon-ouvrir.papillon-bouton { display: inline-block; padding: 10px 22px; border: 0; border-radius: 4px; background: #e0c70b; color: #313131; font: 700 16px Raleway, Arial, sans-serif; cursor: pointer; transition: filter 0.3s; }
.papillon-ouvrir.papillon-bouton:hover { filter: brightness(1.07); }
.papillon-ouvrir.papillon-lien { padding: 0; border: 0; background: none; color: #916b04; font: inherit; cursor: pointer; }
.papillon-ouvrir.papillon-lien:hover { color: #a04a1c; text-decoration: underline; }
.papillon-fond { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(40, 32, 20, 0); visibility: hidden; transition: background 0.5s ease, visibility 0s 0.5s; }
.papillon-fond.ouvert { background: rgba(40, 32, 20, 0.55); visibility: visible; transition: background 0.5s ease; }
.papillon { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 100%; max-height: 100%; opacity: 0; color: #404040; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.3, 1), max-width 0.45s ease, height 0.45s ease; }
.papillon-fond.ouvert .papillon { opacity: 1; transform: none; }
.papillon.t-petite { max-width: 420px; }
.papillon.t-moyenne { max-width: 680px; }
.papillon.t-grande { max-width: 980px; height: 88vh; }
.papillon.t-pleine, .papillon.papillon-agrandie { max-width: none; height: 100%; }
.papillon.t-perso:not(.papillon-agrandie) { max-width: var(--pap-l, 60vw); height: var(--pap-h, auto); }
.a-monte .papillon { transform: translateY(34px); }
.a-zoom .papillon { transform: scale(0.9); }
.a-aile .papillon { transform: perspective(1100px) rotateX(-14deg) scale(0.86); transform-origin: 50% 0; }
.papillon-tete { display: flex; flex: none; align-items: center; gap: 6px; padding: 12px 14px 12px 20px; }
.texte-page h2.papillon-titre, .papillon-titre { flex: 1; margin: 0; font-size: 20px; font-weight: 500; line-height: 1.25; color: #000000; }
.papillon-action { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.papillon-corps { flex: 1; overflow: auto; padding: 4px 20px 20px; }
.s-fidele .papillon { border: 1px solid #727928; border-radius: 4px; background: #FEFCF8; box-shadow: 4px 4px 5px 5px rgba(0, 0, 0, 0.2); }
.s-fidele .papillon-tete { border-bottom: 1px solid #e0dcd1; }
.s-fidele .papillon-action:hover { background: #e8f5e9; }
.s-elegante .papillon { border-top: 3px solid #B8960A; border-radius: 12px; background: linear-gradient(180deg, #FEFCF8, #FBF6E9); box-shadow: 0 24px 60px rgba(40, 30, 10, 0.4); }
.s-elegante .papillon-tete { padding-top: 16px; }
.texte-page .s-elegante h2.papillon-titre, .s-elegante .papillon-titre { font-family: Georgia, Palatino, serif; font-size: 22px; font-weight: 400; color: #7A1515; }
.s-elegante .papillon-action:hover { background: #F6EEDC; }
body.papillon-ouverte { overflow: hidden; }
/* MODIFICATION REQUISE : fiche ouverte depuis une carte */
.papillon-fiche .texte-page { margin-top: 0; }
.papillon-attente { margin: 30px 0; text-align: center; color: #777777; }
/* FIN MODIFICATION */
@media (max-width: 600px) {
    .papillon-fond { padding: 0; }
    .papillon, .papillon.t-perso:not(.papillon-agrandie) { max-width: none; height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .papillon, .papillon-fond { transition-duration: 0.01s !important; } }

/* ==========================================================
   Outil Vidéo
   ========================================================== */
.video-bloc { box-sizing: border-box; margin: 0 auto 20px; }
.video-bloc.largeur-pleine { width: 100%; }
.video-bloc.largeur-moyenne { width: 60%; }
.video-bloc.largeur-petite { width: 35%; }
.video-bloc.largeur-perso { width: var(--vid-l, 60%); }
.video-bloc.place-gauche { float: left; margin: 4px 20px 16px 0; }
.video-bloc.place-droite { float: right; margin: 4px 0 16px 20px; }
.video-bloc.largeur-pleine.place-gauche, .video-bloc.largeur-pleine.place-droite { float: none; margin: 0 0 20px; }
.video-ouvrir { position: relative; display: block; width: 100%; min-height: 90px; padding: 0; border: 0; border-radius: 6px; background: #2F2A24; overflow: hidden; cursor: pointer; }
.video-ouvrir img { display: block; width: 100%; height: auto; transition: transform 0.7s ease; }
button.video-ouvrir:hover img { transform: scale(1.03); }
.video-lecture { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); transform: translate(-50%, -50%); transition: background 0.3s; }
.video-lecture::after { content: ""; position: absolute; top: 50%; left: 54%; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #ffffff; transform: translate(-50%, -50%); }
button.video-ouvrir:hover .video-lecture { background: rgba(122, 21, 21, 0.85); }
.video-bloc video, .video-cadre iframe { display: block; width: 100%; border: 0; border-radius: 6px; background: #000000; }
.video-cadre { position: relative; padding-top: 56.25%; }
.video-cadre iframe { position: absolute; inset: 0; height: 100%; }
.video-bloc figcaption { margin-top: 6px; font-size: 14px; text-align: center; color: #666666; }
.papillon.papillon-video { max-width: min(92vw, 1000px); background: #000000; }
.papillon-video .papillon-tete { padding: 6px 8px; color: #ffffff; }
.papillon-video .papillon-tete .papillon-titre { color: #ffffff; font-size: 16px; }
.papillon-video .papillon-corps { padding: 0; }
.papillon-video video { display: block; width: 100%; max-height: 80vh; background: #000000; }
@media (max-width: 600px) { .video-bloc.largeur-moyenne, .video-bloc.largeur-petite, .video-bloc.largeur-perso { float: none; width: 100%; margin: 0 0 20px; } }

/* Page sans colonne : le texte prend toute la largeur */
.disposition.sans-colonne .colonne-principale { flex-basis: 100%; max-width: 100%; }
.widget-contenu.texte-page .video-bloc { width: 100%; float: none; margin: 0; }
.widget-contenu.texte-page img { max-width: 100%; height: auto; }

/* ==========================================================
   Outil Feuilleteur
   ========================================================== */
.feuilleteur-bloc { margin: 10px 0 20px; text-align: center; }
.feuilleteur-bloc.place-gauche { text-align: left; }
.feuilleteur-bloc.place-droite { text-align: right; }
.feuilleteur-ouvrir.feuilleteur-vignette { display: inline-block; padding: 0; border: 0; background: none; cursor: pointer; }
.feuilleteur-vignette img { display: block; max-width: 220px; height: auto; border-radius: 3px; box-shadow: 0 6px 18px rgba(40, 30, 10, 0.35); transition: transform 0.5s ease; }
.feuilleteur-vignette:hover img { transform: translateY(-3px) rotate(-1deg); }
.feuilleteur-bloc figcaption { margin-top: 6px; font-size: 14px; color: #666666; }
.flt-fond { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; background: rgba(40, 32, 20, 0); visibility: hidden; transition: background 0.5s ease, visibility 0s 0.5s; }
.flt-fond.ouvert { background: rgba(30, 24, 16, 0.93); visibility: visible; transition: background 0.5s ease; }
.flt-barre { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; color: #EDE6D6; font-size: 14px; }
.flt-titre { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.flt-barre a, .flt-barre button { min-width: 34px; height: 34px; padding: 0 10px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: #EDE6D6; font: 14px Raleway, Arial, sans-serif; line-height: 34px; text-align: center; text-decoration: none; cursor: pointer; }
.flt-barre a:hover, .flt-barre button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.24); color: #ffffff; }
.flt-barre button:disabled { opacity: 0.35; cursor: default; }
.flt-scene { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px 14px 18px; opacity: 0; transition: opacity 0.5s ease; }
.ouvert .flt-scene { opacity: 1; }
.flt-livre { position: relative; perspective: 2400px; touch-action: pan-y; }
.flt-attente { padding: 20px; color: #EDE6D6; }
.flt-moitie { position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; background: #ffffff; }
.flt-moitie.gauche { left: 0; border-radius: 3px 0 0 3px; box-shadow: inset -18px 0 22px -18px rgba(0, 0, 0, 0.28); }
.flt-moitie.droite { left: 50%; border-radius: 0 3px 3px 0; box-shadow: inset 18px 0 22px -18px rgba(0, 0, 0, 0.28); }
.flt-moitie.vide { background: none; box-shadow: none; }
.flt-livre canvas { display: block; width: 100%; height: 100%; }
.flt-livre.une .flt-moitie.droite { left: 0; width: 100%; border-radius: 3px; box-shadow: none; }
.flt-livre.une .flt-moitie.gauche { display: none; }
.flt-feuille { position: absolute; top: 0; left: 50%; z-index: 5; width: 50%; height: 100%; transform-style: preserve-3d; transform-origin: 0 50%; transition: transform 0.85s cubic-bezier(0.45, 0.05, 0.3, 1); }
.flt-face { position: absolute; inset: 0; overflow: hidden; background: #ffffff; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flt-dos { transform: rotateY(180deg); }
.flt-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 30%); opacity: 0; transition: opacity 0.85s ease; }
.flt-feuille.tourne .flt-face::after { opacity: 1; }
.flt-livre.une .flt-feuille { left: 0; width: 100%; }
.flt-zone { position: absolute; top: 0; bottom: 0; z-index: 8; width: 30%; cursor: pointer; }
.flt-zone.prec { left: 0; }
.flt-zone.suiv { right: 0; }
@media (prefers-reduced-motion: reduce) { .flt-feuille, .flt-fond, .flt-scene { transition-duration: 0.01s !important; } }

/* MODIFICATION REQUISE : formulaire d'inscription, style des champs repris du site WordPress */
#form-inscription { padding: 20px 0; background: #FEFCF8; }
#form-inscription input[type="text"],
#form-inscription input[type="email"] {
    box-sizing: border-box;
    height: 40px;
    margin: 0 0 10px;
    padding: 6px;
    max-width: 100%;
    font: inherit;
    color: #464a4c;
    background: #ffffff;
    border: 2px inset #767676;
}
#form-inscription input[type="text"]:focus,
#form-inscription input[type="email"]:focus {
    outline: transparent;
    border: 1px solid #ccc;
    padding: 7px 14px;
    transition: 0.4s;
    background: transparent;
}
#form-inscription input[type="submit"] {
    margin: 0 0 10px;
    padding: 6px;
    font: inherit;
    color: #464a4c;
    background: #ffffff;
    border: 1px solid #8e8e8e;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
#form-inscription input[type="submit"]:hover { background: #f4f4f4; }
#form-inscription input[type="submit"] { transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
#form-inscription input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22); }
#form-inscription input[type="submit"]:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.ins-rappel { text-align: center; font-weight: 600; color: #008000; }
.ins-choix-sessions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 18px; }
.ins-pave { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid #ddd; border-radius: 8px; background: #fff; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.ins-pave input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ins-pave:hover { background: #e8f5e9; }
.ins-pave:focus-within { border-color: #C99A3A; }
.ins-pave.ins-coche { border: 2px solid #C99A3A; padding: 13px; background: #F8F3E5; }
.ins-pave-nom { font-weight: 600; line-height: 1.3; }
.ins-pave-detail { font-size: 0.86em; color: #666; }
.ins-session { margin: 0 0 14px; padding: 14px 16px; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.ins-session[hidden] { display: none; }
.ins-session .ins-session-titre { margin: 0 0 10px; font-weight: 600; }
.ins-offre, .ins-ligne { display: flex; align-items: center; gap: 10px; padding: 9px 10px; cursor: pointer; }
.ins-offre input, .ins-ligne input { flex: none; margin: 0; }
.ins-offre { margin: 0 0 10px; border: 1px solid #C99A3A; border-radius: 6px; font-weight: 600; background: #F8F3E5; }
.ins-ligne { border-top: 1px solid #eee; }
.ins-offre:hover, .ins-ligne:hover { background: #e8f5e9; }
.ins-ligne.ins-coche { background: #F8F3E5; }
.ins-offre.ins-coche { border-width: 2px; padding: 8px 9px; }
.ins-ligne-nom { flex: 1; min-width: 0; line-height: 1.35; }
.ins-prix { flex: none; font-weight: 600; white-space: nowrap; }
.ins-prix s { margin-right: 6px; font-weight: 400; color: #888; }
.ins-titre-bloc { margin: 8px 0 10px; text-align: center; font-weight: 700; }
.ins-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.ins-tuile { align-items: center; text-align: center; }
.ins-tuile-montant { font-size: 1.15em; font-weight: 700; }
.ins-choix-petit { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ins-choix-petit .ins-pave, .ins-choix-petit .ins-pave.ins-coche { padding: 8px 10px; font-size: 0.9em; }
.ins-paypal { margin: -8px 0 16px; text-align: center; font-size: 0.9em; color: #8A6A14; }
.ins-paypal[hidden] { display: none; }
#ins-fois-cheque[hidden] { display: none; }
#ins-fois-cheque { max-width: 480px; margin: 0 auto; }
#ins-fois-cheque .ins-titre-bloc { font-size: 0.9em; font-weight: 600; margin: 0 0 8px; }
#ins-fois-cheque .ins-tuiles { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
#ins-fois-cheque .ins-tuile { padding: 7px 8px; font-size: 0.85em; }
#ins-fois-cheque .ins-tuile-montant { font-size: 1em; }
.ins-recap { max-width: 560px; margin: 24px auto 28px; border: 2px solid #C99A3A; border-radius: 10px; background: #fff; overflow: hidden; }
.ins-recap[hidden] { display: none; }
.ins-recap-titre { padding: 10px 18px; font-weight: 700; text-align: center; background: #F8F3E5; border-bottom: 1px solid #E8DDBF; }
.ins-recap-ligne { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 12px 18px; border-bottom: 1px solid #eee; }
.ins-recap-nom { font-weight: 600; line-height: 1.35; }
.ins-recap-detail { font-size: 0.9em; line-height: 1.5; color: #666; }
.ins-recap-montant { flex: none; font-weight: 600; white-space: nowrap; }
.ins-recap-total { align-items: center; padding: 14px 18px; border-bottom: 0; background: #F8F3E5; }
.ins-recap-total .ins-recap-nom { font-size: 1.1em; }
.ins-recap-total .ins-recap-montant { font-size: 1.5em; font-weight: 700; }
/* Accordéons « pavés » : titre sable, titre du volet ouvert en ardoise (7 novembre, sur demande) */
body.charte-douce .texte-page .accordeon-paves:not(.couleurs-propres) {
    --acc-couleur: var(--site-ong-repos) !important;
    --acc-texte: var(--site-ong-repos-texte) !important;
}
body.charte-douce .texte-page .accordeon-paves:not(.couleurs-propres) .volet[open] > .volet-titre, body.charte-douce .texte-page .accordeon-paves:not(.couleurs-propres) .volet.ouvert > .volet-titre {
    background: var(--site-ong-choisi);
    color: var(--site-ong-choisi-texte);
}
body.charte-douce .texte-page .accordeon-paves:not(.couleurs-propres) .volet-contenu { border-color: #D6DCE0; }
/* Accordéons « filets » : filets et pastilles en ardoise */
body.charte-douce .texte-page .accordeon-filets:not(.couleurs-propres) {
    --acc-couleur: var(--site-ong-choisi) !important;
    --acc-texte: var(--site-ong-choisi-texte) !important;
}
/* FIN MODIFICATION */

.ins-consigne-cheque { max-width: 480px; margin: 16px 0; padding: 14px 18px; border: 2px solid #C99A3A; border-radius: 8px; background: #F8F3E5; }
.ins-consigne-cheque p { margin: 0 0 8px; }
.ins-consigne-cheque p:last-child { margin-bottom: 0; }

.ver-page { max-width: 620px; margin: 0 auto; }
.ver-intro { margin: 0 0 22px; text-align: center; color: #666; }
.ver-carte { margin: 0 0 18px; padding: 24px 28px; border: 1px solid #e6dfcf; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(90, 70, 20, 0.07); }
.ver-carte p { margin: 0 0 10px; }
.ver-carte p:last-child { margin-bottom: 0; }
.ver-titre { margin: 0 0 16px; padding: 0 0 10px; border-bottom: 1px solid #efe8d8; font-size: 0.85em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A6A14; }
.ver-cours { font-size: 1.2em; font-weight: 700; line-height: 1.3; }
.ver-dates { color: #666; }
.ver-lignes { margin-top: 14px; }
.ver-ligne { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; }
.ver-montant { flex: none; font-weight: 600; }
.ver-reglement { display: flex; justify-content: space-between; gap: 18px; margin-top: 8px; padding: 12px 0; border-top: 1px solid #efe8d8; }
.ver-reglement span:last-child { text-align: right; }
.ver-etiquette { flex: none; font-weight: 600; }
.ver-total { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin: 8px -28px -24px; padding: 16px 28px; border-radius: 0 0 12px 12px; background: #F8F3E5; font-weight: 700; }
.ver-total-montant { font-size: 1.5em; }
.ver-carte-cheque { border: 2px solid #C99A3A; background: #FFFDF8; }
.ver-coordonnees { line-height: 1.6; }
.ver-corriger { margin: 6px 0 22px; text-align: center; font-size: 0.92em; }
.ver-chantier { padding: 10px 14px; border: 1px dashed #ccc; border-radius: 8px; text-align: center; font-size: 0.85em; color: #777; }
@media (max-width: 560px) {
    .ver-carte { padding: 18px; }
    .ver-total { margin: 8px -18px -18px; padding: 14px 18px; }
    .ver-reglement { flex-direction: column; gap: 4px; }
    .ver-reglement span:last-child { text-align: left; }
}

.ver-payer { margin: 4px 0 18px; text-align: center; }
.ver-bouton { padding: 14px 46px; border: 0; border-radius: 10px; background: #C99A3A; color: #fff; font: inherit; font-size: 1.1em; font-weight: 700; cursor: pointer; box-shadow: 0 3px 8px rgba(90, 70, 20, 0.25); transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.ver-bouton:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(90, 70, 20, 0.3); background: #B8892C; }
.ver-bouton:active { transform: translateY(1px); box-shadow: 0 1px 3px rgba(90, 70, 20, 0.3); }
.ver-merci { text-align: center; }
.ver-paypal { margin: 0 0 10px; font-size: 0.98em; font-weight: 600; color: #6E5208; }

.ver-contrat-texte { max-height: 380px; overflow-y: auto; padding-right: 10px; font-size: 0.92em; line-height: 1.55; }
.ver-contrat-texte p { margin: 0 0 10px; }
.ver-signer { max-width: 620px; margin: 0 auto 18px; padding: 20px 28px; border: 1px solid #e6dfcf; border-radius: 12px; background: #fff; text-align: left; }
.ver-signer .ver-paypal, .ver-signer .ver-bouton { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.ver-signer .ver-bouton { margin-top: 6px; }
.ver-accepte { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; cursor: pointer; }
.ver-accepte input { margin-top: 4px; }
.ver-signature-etiquette { display: block; margin: 0 0 6px; font-weight: 600; }
#ver-signature { width: 100%; max-width: 360px; height: 40px; padding: 6px 10px; border: 1px solid #c9c2b2; border-radius: 6px; font: inherit; }
#ver-signature:focus { outline: none; border-color: #C99A3A; box-shadow: 0 0 0 3px rgba(201, 154, 58, 0.2); }
.ver-aide { margin: 6px 0 14px; font-size: 0.85em; color: #777; }
.ver-erreur { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-weight: 600; }
.ver-signe { margin: 0 0 14px; text-align: center; font-weight: 600; color: #2e7d32; }
@media (max-width: 560px) { .ver-signer { padding: 18px; } }

/* Boutons d'envoi : style general du site (repris du theme WordPress), souleve au survol, abaisse au clic */
input[type="submit"]:not(.ver-bouton), button[type="submit"]:not(.ver-bouton) { padding: 6px 14px; font: inherit; color: #464a4c; background: #fff; border: 1px solid #8e8e8e; border-radius: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
input[type="submit"]:not(.ver-bouton):hover, button[type="submit"]:not(.ver-bouton):hover { background: #f4f4f4; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22); }
input[type="submit"]:not(.ver-bouton):active, button[type="submit"]:not(.ver-bouton):active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }

/* Encart Ephemerides */
.ephemerides { font-size: 0.95em; }
.ephemerides .eph-date { margin: 0 0 8px; text-align: center; font-weight: 600; }
.ephemerides .eph-table, .texte-page .ephemerides .eph-table { width: 100%; max-width: 320px; margin: 0 auto; border: 0; border-collapse: collapse; background: transparent; }
.ephemerides .eph-table td, .texte-page .ephemerides .eph-table td { padding: 3px 2px; border: 0; border-bottom: 1px solid #efe8d8; background: transparent; vertical-align: middle; white-space: nowrap; }
.ephemerides .eph-table tr:last-child td { border-bottom: 0; }
.ephemerides .symbole-astro { font-family: "Astronomicon", serif; font-size: 1.25em; line-height: 1; color: #8A6A14; }
.ephemerides .eph-corps { width: 1.6em; text-align: center; }
.ephemerides .eph-nom { padding-left: 4px; }
.ephemerides .eph-degre { text-align: right; padding-left: 6px; }
.ephemerides .eph-signe { width: 1.6em; text-align: center; }
.ephemerides .eph-minute { text-align: left; }
.ephemerides .eph-r { width: 1em; text-align: center; }
.ephemerides .eph-retro { font-size: 0.8em; font-weight: 700; color: #8A6A14; }
.ephemerides .eph-note { margin: 8px 0 0; text-align: center; font-size: 0.8em; color: #777; }
/* Encart Ephemerides : couleur discrete des signes selon leur element */
.ephemerides .eph-feu .symbole-astro { color: #C0663A; }
.ephemerides .eph-terre .symbole-astro { color: #6E7F3A; }
.ephemerides .eph-air .symbole-astro { color: #4D8AA8; }
.ephemerides .eph-eau .symbole-astro { color: #3E5F96; }
.ephemerides .eph-table tr:nth-child(even) td { background: rgba(201, 154, 58, 0.06); }
.ephemerides .eph-date { color: #8A6A14; }

/* Champs de saisie des formulaires du site (repris du formulaire d'inscription) */
.colonne-principale input[type="text"], .colonne-principale input[type="email"], .colonne-principale input[type="tel"], .colonne-principale textarea { box-sizing: border-box; margin: 0 0 10px; padding: 6px; max-width: 100%; font: inherit; color: #464a4c; background: #ffffff; border: 2px inset #767676; transition: 0.4s; }
.colonne-principale input[type="text"], .colonne-principale input[type="email"], .colonne-principale input[type="tel"] { height: 40px; }
.colonne-principale textarea { min-height: 160px; line-height: 1.5; resize: vertical; }
.colonne-principale input[type="text"]:focus, .colonne-principale input[type="email"]:focus, .colonne-principale input[type="tel"]:focus, .colonne-principale textarea:focus { outline: transparent; border: 1px solid #ccc; padding: 7px 14px; background: transparent; }
.colonne-laterale input[type="text"], .colonne-laterale input[type="email"] { box-sizing: border-box; width: 100%; height: 40px; margin: 0; padding: 6px; font: inherit; color: #464a4c; background: #ffffff; border: 2px inset #767676; transition: 0.4s; }
.colonne-laterale input[type="text"]:focus, .colonne-laterale input[type="email"]:focus { outline: transparent; border: 1px solid #ccc; padding: 7px 14px; background: transparent; }
.ver-virement { margin: 0 0 18px; text-align: center; font-size: 0.92em; color: #2e7d32; }
.ver-virement a { color: #2e7d32; text-decoration: underline; }

/* ===== Bureau des élèves : connexion ===== */
.bur-carte { max-width: 440px; margin: 10px auto 24px; padding: 24px 28px; border: 1px solid #e6dfcf; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(90, 70, 20, 0.07); }
.bur-titre { margin: 0 0 16px; padding: 0 0 10px; border-bottom: 1px solid #efe8d8; font-size: 0.85em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A6A14; }
.bur-connexion label { display: block; margin: 0 0 4px; }
.bur-connexion input[type="text"], .bur-connexion input[type="password"] { display: block; box-sizing: border-box; width: 100%; height: 40px; margin: 0 0 14px; padding: 6px; font: inherit; color: #464a4c; background: #fff; border: 2px inset #767676; transition: 0.4s; }
.bur-connexion input[type="password"]:focus { outline: transparent; border: 1px solid #ccc; padding: 7px 14px; background: transparent; }
.bur-connexion label.bur-rester { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; font-size: 0.95em; cursor: pointer; }
.bur-envoi { margin: 0 0 14px; text-align: center; }
.bur-liens { margin: 0; text-align: center; font-size: 0.92em; line-height: 1.7; }
.texte-page p.bur-avertissement { max-width: none; margin: 0 0 14px; text-align: center; }
.bur-bouton { display: inline-block; padding: 6px 14px; color: #464a4c; background: #fff; border: 1px solid #8e8e8e; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.bur-bouton:hover { background: #f4f4f4; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22); }
.bur-deconnexion { margin: 14px 0 0; text-align: center; }
.bur-toast-fond { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.25); transition: opacity 0.4s; }
.bur-toast { max-width: 80%; padding: 18px 28px; border-radius: 10px; background: #fff; border-left: 5px solid #2E7D32; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); text-align: center; }
.bur-toast-erreur { border-left-color: #C0392B; }
.bur-toast-parti { opacity: 0; }
.bur-barre { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 6px 18px; margin: -6px 0 22px; font-size: 0.92em; color: #666; }
.bur-barre span { margin-right: auto; }
.bur-barre button.bur-lien-bouton[type="submit"], .bur-barre button.bur-lien-bouton[type="submit"]:hover { padding: 0; font: inherit; color: inherit; background: none; border: 0; box-shadow: none; text-decoration: underline; cursor: pointer; transform: none; }
.bur-connexion input[type="email"] { display: block; box-sizing: border-box; width: 100%; height: 40px; margin: 0 0 14px; padding: 6px; font: inherit; color: #464a4c; background: #fff; border: 2px inset #767676; }
.bur-aide { margin: -8px 0 16px; font-size: 0.85em; line-height: 1.4; color: #777; }
.bur-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Profil : une carte à onglets */
.bur-onglets { display: flex; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid #efe8d8; }
.bur-onglets a { margin-bottom: -1px; padding: 8px 14px; color: #666; text-decoration: none; border-bottom: 2px solid transparent; }
.bur-onglets a:hover { color: #8A6A14; }
.bur-onglets a.actif { color: #8A6A14; border-bottom-color: #8A6A14; font-weight: 600; }
.bur-profil [hidden] { display: none !important; }
.bur-supprimer-lien { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #efe8d8; text-align: center; font-size: 0.85em; }
.bur-supprimer-lien a { color: #999; }
@media (max-width: 520px) { .bur-onglets { flex-wrap: wrap; } .bur-onglets a { padding: 8px 8px; font-size: 0.92em; } }

/* ===== Bureau : exercices ===== */
.ex-carte { --ex-accent: #B4532A; --ex-cadre: #5B9BD0; max-width: 720px; margin: 10px auto 24px; padding: 26px 30px; border: 1px solid #e6dfcf; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(90, 70, 20, 0.07); }
.ex-etiquette { margin: 0 0 14px; font-size: 0.82em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ex-accent); }
.ex-consigne { margin: 0 0 28px; padding: 6px 4px 14px 18px; border-left: 1.5px solid var(--ex-cadre); border-bottom: 1.5px solid var(--ex-cadre); border-radius: 0 0 0 12px; line-height: 1.6; }
.ex-consigne p { margin: 0; }
.ex-partie { display: flex; align-items: center; gap: 10px; margin: 26px 0 6px; font-size: 1.05em; }
.ex-partie span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ex-accent); color: #fff; font-size: 0.85em; }
.ex-aide { margin: 0 0 14px; color: #777; font-size: 0.93em; }
.ex-couches { display: flex; flex-direction: column; max-width: 340px; margin: 0 auto 8px; border-radius: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--ex-accent) 30%, white); }
.ex-couche { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; cursor: text; }
.ex-couche:nth-child(1) { background: color-mix(in srgb, var(--ex-accent) 8%, white); }
.ex-couche:nth-child(2) { background: color-mix(in srgb, var(--ex-accent) 18%, white); }
.ex-couche:nth-child(3) { background: color-mix(in srgb, var(--ex-accent) 30%, white); }
.ex-couche span { font-size: 0.95em; color: color-mix(in srgb, var(--ex-accent) 70%, black); }
.texte-page .ex-couche input[type="text"] { width: 96px; height: 34px; margin: 0; padding: 4px 8px; border: 0; border-bottom: 2px solid var(--ex-accent); border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, 0.75); font: inherit; text-align: center; }
.texte-page .ex-couche input[type="text"]:focus { outline: none; background: #fff; }
.ex-champ { display: block; margin: 0 0 18px; }
.ex-champ span { display: block; margin: 0 0 6px; color: #555; font-style: italic; }
.texte-page .ex-champ textarea { display: block; box-sizing: border-box; width: 100%; min-height: 140px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--ex-accent) 25%, white); border-radius: 6px; background: #FAFAF8; font: inherit; line-height: 1.6; resize: vertical; }
.texte-page .ex-champ textarea:focus { outline: none; border-color: var(--ex-accent); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ex-accent) 15%, transparent); }
.ex-pied { margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid #efe8d8; text-align: center; }
.ex-expediteur { margin: 0 0 12px; color: #777; font-size: 0.9em; }
.ex-boutons { margin: 0; text-align: center; }
.ex-statut { min-height: 1.2em; margin: 8px 0 0; color: #2E7D32; font-size: 0.85em; opacity: 0; transition: opacity 0.4s; }
.ex-statut.visible { opacity: 1; }
.ex-envoye { text-align: center; }
.ex-envoye-titre { margin: 4px 0 12px; font-size: 1.3em; font-weight: 600; color: #2E7D32; }
@media (max-width: 600px) { .ex-carte { padding: 20px 16px; } }

.image-page.bur-vignette { width: 110px; margin: 4px 16px 10px 0; }
.image-page.bur-vignette img { border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }

.bur-carte.bur-profil { max-width: 560px; }
.bur-onglets a { white-space: nowrap; }

/* Page-index des exercices : une carte par session, une pastille par cours */
.ex-index { --ex-accent: #B4532A; --ex-cadre: #5B9BD0; max-width: 760px; margin: 0 auto; }
.ex-session { margin: 22px 0; padding: 20px 24px; border: 1px solid #e6dfcf; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(90, 70, 20, 0.06); }
.texte-page .ex-session-titre { margin: 0 0 6px; font-size: 1.15em; color: var(--ex-accent); }
.ex-session-texte { margin: 0 0 14px; padding: 0 0 10px 12px; border-left: 1.5px solid var(--ex-cadre); border-bottom: 1.5px solid var(--ex-cadre); border-radius: 0 0 0 10px; color: #555; }
.ex-pastilles { display: flex; flex-wrap: wrap; gap: 10px; }
.ex-pastille { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--ex-accent) 12%, white); border: 1.5px solid color-mix(in srgb, var(--ex-accent) 45%, white); color: var(--ex-accent); font-weight: 600; text-decoration: none; transition: transform 0.15s, background 0.15s, color 0.15s; }
a.ex-pastille:hover { background: var(--ex-accent); color: #fff; transform: translateY(-2px); }
.ex-pastille-attente { opacity: 0.35; cursor: default; }

/* ===== Bureau : style « bandeau » (ruban zodiacal, parchemin, orbites) ===== */
.ex-carte, .ex-index { --ex-ocre: #E2B26F; --ex-creme: #FBF3E4; }
.ex-carte, .ex-session { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--ex-accent) 22%, transparent); border-radius: 18px 28px 20px 34px / 26px 18px 30px 20px;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--ex-cadre) 10%, transparent), transparent 34%),
    radial-gradient(circle at 6% 96%, color-mix(in srgb, var(--ex-ocre) 35%, transparent), transparent 42%),
    radial-gradient(circle at 60% 120%, color-mix(in srgb, var(--ex-accent) 12%, transparent), transparent 50%),
    #FDF8EE;
  box-shadow: 0 6px 22px rgba(90, 60, 20, 0.10); }
/* orbites pointillées et étoile, en haut à droite, comme sur le bandeau */
.ex-carte::after, .ex-session::after { content: ""; position: absolute; top: -40px; right: -40px; width: 190px; height: 190px; pointer-events: none; opacity: 0.55;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 190'><g fill='none' stroke='%23B4532A' stroke-width='1' stroke-dasharray='2 4'><circle cx='95' cy='95' r='88'/><circle cx='95' cy='95' r='60'/></g><path d='M60 40 l3 10 10 3 -10 3 -3 10 -3 -10 -10 -3 10 -3z' fill='%23B4532A' opacity='0.7'/><circle cx='150' cy='120' r='5' fill='%23E2B26F'/></svg>") no-repeat; }
.ex-carte > *, .ex-session > * { position: relative; z-index: 1; }

/* Ruban zodiacal penché : cases alternées bleu et crème, glyphes des signes */
.ex-ruban { display: flex; align-items: stretch; width: max-content; max-width: 100%; margin: 0 0 18px -6px; transform: rotate(-2deg) skewX(-12deg); transform-origin: left center; box-shadow: 0 2px 6px rgba(47, 90, 143, 0.18); }
.ex-ruban span { display: flex; align-items: center; padding: 3px 9px; font-family: "Astronomicon", serif; font-size: 1em; line-height: 1.5; background: var(--ex-cadre); color: var(--ex-creme); }
.ex-ruban span:nth-of-type(even) { background: #F1E2C4; color: var(--ex-cadre); }
.ex-ruban strong { display: flex; align-items: center; padding: 3px 16px; background: var(--ex-creme); color: var(--ex-accent); font-weight: 600; font-size: 0.92em; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.ex-ruban strong em, .ex-ruban span em { display: inline-block; font-style: normal; transform: skewX(12deg); }

/* Exercice */
.ex-etiquette { display: none; }
.ex-consigne { margin: 0 6px 30px 4px; padding: 14px 18px 16px; transform: rotate(-0.7deg); background: #FFFDF8; border: 0; border-left: 1.5px solid var(--ex-cadre); border-bottom: 1.5px solid var(--ex-cadre); border-radius: 2px 10px 4px 22px; box-shadow: 4px 5px 0 color-mix(in srgb, var(--ex-ocre) 30%, transparent); }
.ex-partie span { background: var(--ex-accent); outline: 1.5px dashed var(--ex-accent); outline-offset: 3px; }
.ex-couches { gap: 6px; max-width: 380px; border: 0; border-radius: 0; overflow: visible; }
.ex-couche { transform: skewX(-10deg); border-radius: 3px; box-shadow: 0 2px 5px rgba(90, 60, 20, 0.10); }
.ex-couche:nth-child(1) { margin-left: 30px; background: color-mix(in srgb, var(--ex-ocre) 30%, white); }
.ex-couche:nth-child(2) { margin-left: 15px; background: color-mix(in srgb, var(--ex-ocre) 55%, white); }
.ex-couche:nth-child(3) { margin-left: 0; background: color-mix(in srgb, var(--ex-accent) 45%, var(--ex-ocre)); }
.ex-couche span, .ex-couche input { transform: skewX(10deg); }
.ex-couche:nth-child(3) span { color: #fff; }
.texte-page .ex-champ textarea { background: #FFFDF8; border: 1px solid color-mix(in srgb, var(--ex-cadre) 30%, transparent); border-radius: 4px 14px 6px 18px; }
.ex-pied { border-top: 1px dashed color-mix(in srgb, var(--ex-accent) 40%, transparent); }

/* Page-index : cartes de session légèrement penchées, cours en cases de ruban */
.ex-session:nth-of-type(odd) { transform: rotate(-0.5deg); }
.ex-session:nth-of-type(even) { transform: rotate(0.6deg); }
.ex-session-titre { display: none; }
.ex-session-texte { background: transparent; }
.ex-pastilles { gap: 12px; padding: 4px 2px 6px; }
.ex-pastille { width: 46px; height: 46px; border-radius: 4px; border: 0; background: var(--ex-cadre); color: var(--ex-creme); box-shadow: 0 2px 5px rgba(47, 90, 143, 0.25); transform: rotate(-4deg); }
.ex-pastille:nth-child(even) { background: #F1E2C4; color: var(--ex-cadre); transform: rotate(3deg); }
a.ex-pastille:hover { background: var(--ex-accent); color: #fff; transform: rotate(0) translateY(-3px) scale(1.08); }
.ex-pastille-attente { opacity: 0.3; }

.ex-pastilles .ex-pastille { transform: rotate(-4deg); }
.ex-pastilles .ex-pastille:nth-child(even) { transform: rotate(3deg); }
.ex-pastilles a.ex-pastille:hover { transform: rotate(0) translateY(-3px) scale(1.08); }

/* ===== QCM, style bandeau : constellation de progression, réponses en cases de ruban ===== */
.ex-carte { overflow: clip; }
.ex-consigne p + p { margin-top: 8px; }
.ex-qcm-etoiles { position: sticky; top: 10px; z-index: 5; display: flex; justify-content: center; gap: 4px; width: max-content; margin: 0 auto 24px; padding: 6px 14px; transform: rotate(-1.2deg) skewX(-10deg); background: var(--ex-cadre); border-radius: 3px; box-shadow: 0 3px 10px rgba(47, 90, 143, 0.3); }
.ex-qcm-etoiles span { display: inline-block; transform: skewX(10deg); font-size: 1.15em; line-height: 1; color: rgba(251, 243, 228, 0.28); transition: color 0.3s, transform 0.3s, text-shadow 0.3s; }
.ex-qcm-etoiles span.allumee { color: var(--ex-ocre); text-shadow: 0 0 8px rgba(226, 178, 111, 0.9); transform: skewX(10deg) scale(1.2); }
.ex-qcm-question { margin: 0 0 22px; padding: 14px 16px 16px; border: 0; border-radius: 6px 16px 8px 20px; background: rgba(255, 253, 248, 0.85); box-shadow: 3px 4px 0 color-mix(in srgb, var(--ex-ocre) 22%, transparent); transition: box-shadow 0.3s; }
.ex-qcm-question:nth-of-type(odd) { transform: rotate(-0.4deg); }
.ex-qcm-question:nth-of-type(even) { transform: rotate(0.35deg); }
.ex-qcm-question legend { display: flex; align-items: flex-start; gap: 10px; float: left; width: 100%; margin: 0 0 12px; padding: 0; font-weight: 600; line-height: 1.45; }
.ex-qcm-numero { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%; background: var(--ex-accent); color: #fff; font-size: 0.82em; outline: 1.5px dashed var(--ex-accent); outline-offset: 3px; }
.ex-qcm-choix { clear: both; display: flex; flex-wrap: wrap; gap: 10px 12px; padding-left: 36px; }
.ex-qcm-choix input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ex-qcm-choix label { display: inline-block; padding: 7px 16px; transform: skewX(-10deg); background: #F1E2C4; color: #4a3a1c; border-radius: 3px; cursor: pointer; box-shadow: 0 1px 3px rgba(90, 60, 20, 0.12); transition: background 0.2s, color 0.2s, transform 0.2s; }
.ex-qcm-choix label em { display: inline-block; transform: skewX(10deg); font-style: normal; }
.ex-qcm-choix label:hover { background: color-mix(in srgb, var(--ex-cadre) 18%, white); transform: skewX(-10deg) translateY(-2px); }
.ex-qcm-choix input:checked + label { background: var(--ex-cadre); color: var(--ex-creme); }
.ex-qcm-choix input:checked + label em::before { content: "✦ "; color: var(--ex-ocre); }
.ex-qcm-choix input:focus-visible + label { outline: 2px solid var(--ex-accent); outline-offset: 2px; }
.ex-qcm-question.oubliee { box-shadow: 0 0 0 2px var(--ex-accent), 3px 4px 0 color-mix(in srgb, var(--ex-accent) 25%, transparent); animation: ex-secousse 0.4s; }
@keyframes ex-secousse { 25% { translate: -5px 0; } 50% { translate: 5px 0; } 75% { translate: -3px 0; } }
.ex-qcm-intertitre { margin: 34px 0 22px; }
.ex-qcm-intertitre p { margin: 0; color: #555; font-style: italic; line-height: 1.6; }
.ex-statut.alerte { color: var(--ex-accent); font-weight: 600; }

/* Résultat du QCM, montré après l'envoi */
.ex-qcm-ciel { margin: 6px 0 4px; font-size: 1.7em; letter-spacing: 6px; }
.ex-qcm-ciel .juste { color: var(--ex-ocre); text-shadow: 0 0 10px rgba(226, 178, 111, 0.8); }
.ex-qcm-ciel .faux { color: color-mix(in srgb, var(--ex-cadre) 25%, white); }
.ex-qcm-note { margin: 0; font-size: 1.1em; color: #555; }
.ex-qcm-note strong { font-size: 2.6em; line-height: 1; color: var(--ex-accent); }
.ex-qcm-message { max-width: 520px; margin: 10px auto 22px; line-height: 1.6; }
.ex-qcm-details { text-align: left; }
.ex-qcm-details details { margin: 0 0 10px; padding: 10px 14px; border-left: 3px solid var(--ex-ocre); border-radius: 2px 10px 10px 2px; background: rgba(255, 253, 248, 0.9); }
.ex-qcm-details details.faux { border-left-color: var(--ex-accent); }
.ex-qcm-details summary { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 600; line-height: 1.45; }
.ex-qcm-details details.juste .ex-qcm-numero { background: #C9952F; outline-color: #C9952F; }
.ex-qcm-details details p { margin: 10px 0 0 36px; line-height: 1.6; }
.ex-qcm-courriel { margin: 18px 0 16px; color: #777; font-size: 0.9em; }
@media (max-width: 600px) { .ex-qcm-choix { padding-left: 0; } .ex-qcm-etoiles span { font-size: 1em; } }


/* ---------- Exercices : thèmes, lignes courtes, solution dépliable, tableau des transits ---------- */
.ex-figure { margin: 22px auto; max-width: 620px; padding: 10px; background: #fff; border: 1px solid color-mix(in srgb, var(--ex-cadre) 30%, transparent); border-radius: 4px 16px 6px 20px; box-shadow: 4px 6px 0 color-mix(in srgb, var(--ex-ocre, #D9A441) 22%, transparent); transform: rotate(-0.6deg); }
.ex-figure img { display: block; width: 100%; height: auto; border-radius: 2px 10px 2px 12px; }
.texte-page .ex-figure figcaption { margin: 8px 0 0; text-align: center; font-style: italic; color: #666; font-size: 0.92em; }
.ex-champ.ex-ligne { margin-bottom: 10px; }
.ex-ligne { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ex-ligne span { flex: 0 0 auto; min-width: 9em; margin: 0; }
.texte-page .ex-ligne input[type=text], .texte-page .ex-ligne input[type=email] { flex: 1 1 220px; box-sizing: border-box; padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--ex-cadre) 30%, transparent); border-radius: 4px 12px 4px 14px; background: #FFFDF8; font: inherit; }
.texte-page .ex-ligne input[type=text]:focus, .texte-page .ex-ligne input[type=email]:focus { outline: none; border-color: var(--ex-accent); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ex-accent) 15%, transparent); }
.ex-solution { margin: 0 0 14px; }
.ex-solution summary { cursor: pointer; display: inline-block; padding: 4px 14px; background: color-mix(in srgb, var(--ex-cadre) 12%, white); border-radius: 3px 12px 3px 12px; transform: skewX(-8deg); color: var(--ex-cadre); font-weight: 600; }
.ex-solution[open] summary { margin-bottom: 10px; }
.ex-solution img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.ex-tableau-cadre { overflow-x: auto; margin: 18px 0; }
.ex-tableau { border-collapse: separate; border-spacing: 4px; min-width: 760px; width: 100%; }
.ex-tableau th { padding: 6px 4px; font-size: 0.85em; color: #fff; background: var(--ex-cadre); border-radius: 3px 10px 3px 10px; }
.ex-tableau th[scope=row] { background: var(--ex-accent); text-align: left; padding-left: 10px; }
.texte-page .ex-tableau textarea { width: 100%; box-sizing: border-box; min-height: 64px; padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--ex-cadre) 30%, transparent); border-radius: 3px 10px 3px 10px; background: #FFFDF8; font: inherit; font-size: 0.85em; line-height: 1.4; resize: vertical; }
.texte-page .ex-tableau textarea:focus { outline: none; border-color: var(--ex-accent); background: #fff; }


/* ---------- Bureau des élèves : style du bandeau (penché, rubans, orbites) ---------- */
/* Couleurs réglables dans l'éditeur (Réglages) : eleve_barre() pose --bur-accent et --bur-cadre */
:root { --bur-accent: #B4532A; --bur-cadre: #2F5A8F; --bur-ocre: #E2B26F; --bur-creme: #FBF3E4; --bur-sable: #F1E2C4; }

/* Barre du haut : bande de parchemin légèrement penchée */
.bur-barre { margin: -6px 0 26px; padding: 8px 18px; background: var(--bur-creme); border-radius: 4px 18px 6px 22px; transform: rotate(-0.6deg); box-shadow: 3px 4px 0 color-mix(in srgb, var(--bur-ocre) 30%, transparent); color: #555; }
.bur-barre span { font-style: italic; }
.bur-barre a, .bur-barre button.bur-lien-bouton[type="submit"], .bur-barre button.bur-lien-bouton[type="submit"]:hover { color: var(--bur-cadre); text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--bur-cadre) 50%, transparent); }
.bur-barre a:hover, .bur-barre button.bur-lien-bouton[type="submit"]:hover { color: var(--bur-accent); border-bottom-color: var(--bur-accent); }

/* Cartes (connexion, profil, inscription, mot de passe, cartes du ciel) */
.bur-carte { position: relative; overflow: clip; border: 1px solid color-mix(in srgb, var(--bur-accent) 22%, transparent); border-radius: 18px 28px 20px 34px / 26px 18px 30px 20px;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--bur-cadre) 10%, transparent), transparent 34%),
    radial-gradient(circle at 6% 96%, color-mix(in srgb, var(--bur-ocre) 35%, transparent), transparent 42%),
    radial-gradient(circle at 60% 120%, color-mix(in srgb, var(--bur-accent) 12%, transparent), transparent 50%),
    #FDF8EE;
  box-shadow: 0 6px 22px rgba(90, 60, 20, 0.10); }
.bur-carte::after { content: ""; position: absolute; top: -46px; right: -46px; width: 170px; height: 170px; pointer-events: none; opacity: 0.5;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 190'><g fill='none' stroke='%23B4532A' stroke-width='1' stroke-dasharray='2 4'><circle cx='95' cy='95' r='88'/><circle cx='95' cy='95' r='60'/></g><path d='M60 40 l3 10 10 3 -10 3 -3 10 -3 -10 -10 -3 10 -3z' fill='%23B4532A' opacity='0.7'/><circle cx='150' cy='120' r='5' fill='%23E2B26F'/></svg>") no-repeat; }
.bur-carte > * { position: relative; z-index: 1; }
.bur-carte.bur-large { max-width: 720px; }
.bur-titre { display: inline-block; margin: 0 0 18px -4px; padding: 3px 16px; border: 0; background: var(--bur-creme); color: var(--bur-accent); transform: rotate(-2deg) skewX(-12deg); box-shadow: 0 2px 6px rgba(47, 90, 143, 0.18); }
.bur-titre::before, .bur-ressources .colonne > p:first-child strong::before { content: "✦ "; color: var(--bur-cadre); }
.texte-page .bur-carte input[type=text], .texte-page .bur-carte input[type=password], .texte-page .bur-carte input[type=email] { background: #FFFDF8; border: 1px solid color-mix(in srgb, var(--bur-cadre) 30%, transparent); border-radius: 4px 12px 4px 14px; }
.texte-page .bur-carte input[type=text]:focus, .texte-page .bur-carte input[type=password]:focus, .texte-page .bur-carte input[type=email]:focus { outline: none; border-color: var(--bur-accent); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bur-accent) 15%, transparent); }
.bur-carte a { color: var(--bur-cadre); }
.bur-carte a:hover { color: var(--bur-accent); }

/* Onglets du profil : cases de ruban penchées */
.bur-onglets { gap: 0; border-bottom: 0; margin: 0 0 22px; transform: rotate(-1.2deg); }
.bur-onglets a { margin: 0; padding: 6px 16px; border: 0; background: var(--bur-sable); color: var(--bur-cadre); transform: skewX(-12deg); }
.bur-onglets a:first-child { border-radius: 3px 0 0 3px; }
.bur-onglets a:last-child { border-radius: 0 3px 3px 0; }
.bur-onglets a:hover { color: var(--bur-accent); }
.bur-onglets a.actif { background: var(--bur-cadre); color: var(--bur-creme); border: 0; }

/* Tuiles de l'accueil du bureau : cartes posées de travers sur la table */
.bureau-bandeau .carte { border-radius: 10px 26px 12px 30px / 22px 12px 26px 14px; transform: rotate(-0.9deg); box-shadow: 5px 6px 0 color-mix(in srgb, var(--bur-ocre) 32%, transparent), 0 6px 18px rgba(90, 60, 20, 0.10); transition: transform 0.2s, box-shadow 0.2s; }
.bureau-bandeau .carte:nth-child(even) { transform: rotate(0.9deg); }
.bureau-bandeau .carte:nth-child(3n) { transform: rotate(-0.4deg); }
.bureau-bandeau .carte:hover, .bureau-bandeau .carte:focus-visible { transform: rotate(0) translateY(-4px); box-shadow: 7px 9px 0 color-mix(in srgb, var(--bur-accent) 30%, transparent), 0 10px 22px rgba(90, 60, 20, 0.14); }
.bureau-bandeau .carte-pivot, .bureau-bandeau .carte-recto { border-radius: inherit; overflow: hidden; }
.bureau-bandeau .carte-corps { background:
    radial-gradient(circle at 6% 100%, color-mix(in srgb, var(--bur-ocre) 30%, transparent), transparent 55%),
    #FDF8EE; }
.bureau-bandeau .carte-titre { display: inline-block; padding: 2px 16px; background: var(--bur-cadre); color: var(--bur-creme); font-size: 0.95em; letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(-2deg) skewX(-12deg); }
.bureau-bandeau .carte:nth-child(even) .carte-titre { background: var(--bur-accent); transform: rotate(1.5deg) skewX(-12deg); }

/* Ressources : chaque document sur sa feuille de parchemin */
.bur-ressources .colonne { position: relative; margin-bottom: 26px; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--bur-accent) 18%, transparent); border-radius: 14px 26px 16px 30px / 22px 14px 26px 16px; background:
    radial-gradient(circle at 92% 6%, color-mix(in srgb, var(--bur-cadre) 9%, transparent), transparent 36%),
    radial-gradient(circle at 4% 98%, color-mix(in srgb, var(--bur-ocre) 30%, transparent), transparent 44%),
    #FDF8EE; box-shadow: 0 5px 16px rgba(90, 60, 20, 0.08); transform: rotate(-0.5deg); }
.bur-ressources .colonne:nth-child(even) { transform: rotate(0.5deg); }
.bur-ressources .colonne > p:first-child strong { display: inline-block; padding: 2px 12px; background: var(--bur-creme); color: var(--bur-accent); transform: rotate(-1.5deg) skewX(-10deg); box-shadow: 0 2px 6px rgba(47, 90, 143, 0.15); }
.bur-vignette img { border-radius: 4px 14px 4px 16px; transform: rotate(-3deg); box-shadow: 3px 4px 0 color-mix(in srgb, var(--bur-ocre) 40%, transparent); }

/* ---------- Forums du Bureau (style bandeau, mêmes cartes que les exercices) ---------- */
.fo-carte { max-width: 720px; }
.fo-entete { margin: -6px 0 18px; color: #666; font-size: 0.92em; }
.fo-reponse .fo-ancien { max-height: 320px; overflow: auto; padding: 12px 16px; background: #FFFDF8; border: 1px dashed color-mix(in srgb, var(--ex-cadre) 35%, transparent); border-radius: 4px 14px 6px 16px; color: #555; font-size: 0.92em; line-height: 1.6; }
.fo-pieces { position: relative; display: block; margin: 0 0 18px; padding: 14px 18px; text-align: center; border: 1.5px dashed color-mix(in srgb, var(--ex-ocre, #E2B26F) 80%, transparent); border-radius: 6px 18px 8px 22px; background: color-mix(in srgb, var(--ex-ocre, #E2B26F) 10%, #FFFDF8); cursor: pointer; transform: rotate(-0.4deg); transition: background 0.2s; }
.fo-pieces input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fo-pieces strong { color: var(--ex-accent); }
.fo-pieces em { display: block; font-size: 0.85em; color: #777; }
.fo-pieces.survol, .fo-pieces:hover { background: color-mix(in srgb, var(--ex-ocre, #E2B26F) 22%, #FFFDF8); }
.fo-pieces .fo-fichiers { display: block; margin-top: 6px; color: var(--ex-cadre); font-size: 0.88em; }
.fo-enseignants { display: block; margin: 0 0 16px; }
.fo-liens { margin: 14px 0 0; text-align: center; font-size: 0.88em; color: #888; }
.fo-liens a { color: var(--ex-cadre); text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--ex-cadre) 50%, transparent); }
.fo-note { margin-top: 18px; font-size: 0.9em; color: #777; }
.fo-rejoindre { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed #E2CFAE; }
.fo-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin: 22px 0; }
.fo-tuile { display: block; padding: 18px 16px; text-align: center; text-decoration: none; border: 1px solid color-mix(in srgb, var(--ex-accent) 22%, transparent); border-radius: 12px 24px 14px 26px / 20px 12px 24px 14px; background: radial-gradient(circle at 6% 100%, color-mix(in srgb, var(--ex-ocre, #E2B26F) 30%, transparent), transparent 55%), #FDF8EE; box-shadow: 4px 5px 0 color-mix(in srgb, var(--ex-ocre, #E2B26F) 28%, transparent); transform: rotate(-0.8deg); transition: transform 0.2s; }
.fo-tuile:nth-child(even) { transform: rotate(0.8deg); }
.fo-tuile:hover { transform: rotate(0) translateY(-3px); }
.fo-tuile strong { display: inline-block; padding: 2px 12px; background: var(--ex-cadre); color: #FBF3E4; transform: skewX(-12deg); font-size: 0.95em; letter-spacing: 0.04em; }
.fo-tuile.fo-inscrit strong { background: var(--ex-accent); }
.fo-tuile span { display: block; margin-top: 8px; font-size: 0.82em; color: #777; font-style: italic; }

/* ---------- Espace du symposium ---------- */
.sy-rubriques { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 26px; transform: rotate(-1deg); --ex-accent: #B4532A; --ex-cadre: #2F5A8F; }
.sy-rubriques a { padding: 5px 16px; background: #F1E2C4; color: var(--ex-cadre); text-decoration: none; transform: skewX(-12deg); font-size: 0.95em; letter-spacing: 0.03em; box-shadow: 0 2px 5px rgba(47, 90, 143, 0.12); transition: background 0.2s; }
.sy-rubriques a:hover { background: color-mix(in srgb, var(--ex-accent) 18%, #F1E2C4); }
.sy-rubriques a.actif { background: var(--ex-cadre); color: #FBF3E4; }
.sy-rubriques a.sy-accueil { background: var(--ex-accent); color: #FBF3E4; }
.sy-tuiles .fo-tuile { padding: 22px 18px; }
.sy-tuiles .fo-tuile span { font-style: normal; color: #666; }
.sy-annees { gap: 12px; margin-bottom: 26px; }
.ex-pastilles .sy-annee { width: auto; min-width: 58px; padding: 0 10px; }
.sy-presentations { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 0 0 26px; }
.sy-presentation { display: block; padding: 12px 16px; text-decoration: none; background: #FFFDF8; border: 1px solid color-mix(in srgb, var(--ex-cadre) 25%, transparent); border-radius: 4px 16px 6px 18px; transform: rotate(-0.6deg); transition: transform 0.2s; }
.sy-presentation:nth-child(even) { transform: rotate(0.6deg); }
.sy-presentation:hover { transform: rotate(0) translateY(-2px); }
.sy-presentation em { display: block; font-style: normal; font-size: 0.8em; color: var(--ex-accent); letter-spacing: 0.05em; }
.sy-presentation strong { display: block; color: var(--ex-cadre); }
.sy-presentation span { font-size: 0.88em; color: #777; font-style: italic; }
.sy-participants { columns: 2 220px; margin: 0 0 6px; padding: 0; list-style: none; }
.sy-participants li { margin: 0 0 8px; break-inside: avoid; color: #555; }
.sy-ens { display: inline-block; margin-left: 4px; padding: 0 8px; font-size: 0.78em; background: color-mix(in srgb, var(--ex-accent) 14%, white); color: var(--ex-accent); transform: skewX(-10deg); }
.sy-recherche { margin-bottom: 10px; }
.texte-page .sy-recherche select { flex: 1 1 220px; padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--ex-cadre) 30%, transparent); border-radius: 4px 12px 4px 14px; background: #FFFDF8; font: inherit; }
.sy-message { margin: 0 0 8px; border-bottom: 1px dashed #E8D9BE; }
.sy-message summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 8px 6px; cursor: pointer; list-style: none; border-radius: 4px 12px 4px 14px; }
.sy-message summary::-webkit-details-marker { display: none; }
.sy-message summary:hover { background: #e8f5e9; }
.sy-auteur { font-weight: 600; color: var(--ex-cadre); min-width: 7em; }
.sy-date { font-size: 0.85em; color: #888; min-width: 6em; }
.sy-sujet { flex: 1 1 260px; color: #555; }
.sy-texte { padding: 6px 12px 16px; font-size: 1.05em; line-height: 1.65; color: #555; }
.sy-initiale { font-size: 1.15em; color: #4A4A4A; }
.sy-pages { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
.sy-pages a { color: var(--ex-cadre); }

/* Tuile « concerne uniquement les enseignants » (s'allume au clic, s'éteint au second) */
.fo-bascule { display: block; margin: -4px 0 20px; cursor: pointer; }
.fo-bascule input { position: absolute; opacity: 0; pointer-events: none; }
.fo-bascule span { display: block; padding: 10px 18px; text-align: center; background: #F1E2C4; color: var(--ex-cadre); border-radius: 3px 14px 4px 16px; transform: rotate(-0.6deg) skewX(-6deg); letter-spacing: 0.02em; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.fo-bascule span::before { content: "☆ "; }
.fo-bascule:hover span { background: color-mix(in srgb, var(--ex-cadre) 15%, #F1E2C4); }
.fo-bascule input:checked + span { background: var(--ex-cadre); color: #FBF3E4; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ex-ocre, #E2B26F) 70%, transparent), 0 4px 12px rgba(47, 90, 143, 0.3); }
.fo-bascule input:checked + span::before { content: "✦ "; color: var(--ex-ocre, #E2B26F); }
.fo-bascule input:focus-visible + span { outline: 2px solid var(--ex-accent); outline-offset: 2px; }
.fo-envoi-mobile { display: none; }
@media (max-width: 700px) {
  .fo-envoi-mobile { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 10px 16px; background: color-mix(in srgb, #FDF8EE 92%, transparent); box-shadow: 0 -4px 14px rgba(90, 60, 20, 0.15); text-align: center; }
  .fo-envoi-mobile input[type=submit] { width: 100%; }
  #fo-formulaire { padding-bottom: 70px; }
}

/* Tuile enseignants : petite et discrète, sous le champ sujet */
.fo-bascule { display: block; margin: -8px 0 20px; text-align: right; }
.fo-bascule span { display: inline-block; padding: 3px 12px; font-size: 0.8em; transform: rotate(-0.8deg) skewX(-8deg); border-radius: 2px 10px 3px 12px; }

/* « voir le message » et sa fenêtre */
.fo-voir { margin: 0 0 6px; font-size: 0.85em; color: #888; }
.fo-voir a { color: var(--ex-cadre); }
.fo-papillon { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fo-papillon[hidden] { display: none; }
.fo-papillon-fond { position: absolute; inset: 0; background: rgba(40, 30, 15, 0.45); }
.fo-papillon-boite { position: relative; width: 100%; max-width: 620px; max-height: 80vh; overflow: auto; padding: 22px 26px; background: #FDF8EE; border: 1px solid #EAD9BF; border-radius: 14px 24px 16px 28px; box-shadow: 0 10px 34px rgba(40, 30, 15, 0.3); transform: rotate(-0.4deg); }
.fo-papillon-fermer { float: right; font-size: 0.85em; color: var(--ex-cadre); }
.fo-papillon-titre { margin: 0 0 12px; font-size: 0.85em; color: var(--ex-accent); letter-spacing: 0.04em; }
.fo-papillon-texte { font-size: 0.92em; line-height: 1.6; color: #555; }
.fo-initiale { font-size: 1.15em; color: #4A4A4A; }
.fo-bascule i { font-style: normal; }
.fo-bascule .fo-allume, .fo-bascule input:checked + span .fo-eteint { display: none; }
.fo-bascule input:checked + span .fo-allume { display: inline; }

/* Historique du symposium : filtres en deux colonnes, sujets en accordéons */
.sy-colonnes { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.sy-colonne { flex: 1 1 280px; }
.sy-colonne-titre { margin: 0 0 10px; font-size: 0.85em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ex-accent); }
.sy-colonne .ex-ligne span { min-width: 6.5em; }
.sy-compteur { margin: 6px 0 16px; padding-top: 10px; border-top: 1px dashed #E8D9BE; color: #666; }
.sy-compteur a { color: var(--ex-cadre); }
.sy-groupe { margin: 0 0 10px; background: #FFFDF8; border: 1px solid color-mix(in srgb, var(--ex-cadre) 18%, transparent); border-radius: 4px 14px 6px 16px; }
.sy-groupe > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 14px; cursor: pointer; list-style: none; border-radius: 4px 14px 6px 16px; }
.sy-groupe > summary::-webkit-details-marker { display: none; }
.sy-groupe > summary:hover { background: #e8f5e9; }
.sy-groupe-titre { flex: 1 1 260px; font-weight: 600; color: var(--ex-cadre); }
.sy-groupe-titre::before { content: "✦ "; color: var(--ex-ocre, #E2B26F); }
.sy-groupe[open] > summary .sy-groupe-titre::before { color: var(--ex-accent); }
.sy-groupe-info { font-size: 0.82em; color: #888; }
.sy-groupe > .sy-message { margin: 0 12px 6px; }
.sy-groupe[open] { padding-bottom: 8px; }

/* ---------- Demandes du Bureau ---------- */
.dm-pastilles { margin: 0 0 18px; }
.dm-pastille { position: relative; cursor: pointer; }
.dm-pastille input { position: absolute; opacity: 0; pointer-events: none; }
.dm-pastille .ex-pastille { cursor: pointer; }
.dm-pastille:hover .ex-pastille { background: color-mix(in srgb, var(--ex-accent) 25%, white); }
.dm-pastille input:checked + .ex-pastille { background: var(--ex-accent); color: #fff; border-color: var(--ex-accent); }
.dm-pastille input:focus-visible + .ex-pastille { outline: 2px solid var(--ex-cadre); outline-offset: 2px; }
.dm-avertissement { font-style: italic; }
/* MODIFICATION REQUISE (12 novembre) : correction-type automatique, groupes de cours et réponse immédiate */
.dm-groupe { margin: 6px 0 8px; font-size: 0.85em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ex-cadre); opacity: 0.8; }
.dm-etat { margin: 4px 0 18px; padding: 14px 18px; border-radius: 8px; border-left: 4px solid var(--ex-accent); background: color-mix(in srgb, var(--ex-accent) 8%, white); animation: dm-etat-apparait 0.35s ease; }
.dm-etat p { margin: 0 0 8px; }
.dm-etat p:last-child { margin-bottom: 0; }
.dm-etat-nonfait p { margin-bottom: 12px; }
.dm-renonce { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: var(--ex-cadre); }
.dm-renonce input { width: 18px; height: 18px; accent-color: var(--ex-accent); cursor: pointer; }
@keyframes dm-etat-apparait { from { opacity: 0; } to { opacity: 1; } }
/* FIN MODIFICATION */

/* ---------- Demande de tracé de thème ---------- */
.tp-carte .ex-ligne > span:first-child { min-width: 13em; }
.ex-ligne .tp-petits { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-style: normal; color: inherit; }
.texte-page .tp-petits input[type=text] { flex: 0 0 3.6em; width: 3.6em; padding: 8px 4px; text-align: center; }
.texte-page .tp-petits input.tp-annee { flex-basis: 5.2em; width: 5.2em; }
.tp-exemple { margin-top: 12px !important; }
.tp-exemple a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.tp-exemple img { display: block; width: 72px; height: auto; border: 1px solid color-mix(in srgb, var(--ex-cadre) 30%, transparent); border-radius: 3px; box-shadow: 3px 3px 0 color-mix(in srgb, var(--ex-ocre) 30%, transparent); transform: rotate(-2deg); }
.tp-exemple span { font-style: italic; }

/* ---------- Espace du symposium : titre du bandeau un peu plus petit (titre plus long) ---------- */
.site-titre.site-titre-symposium { font-size: 46px; line-height: 56px; }
@media (max-width: 900px) { .site-titre.site-titre-symposium { font-size: clamp(20px, 6.2vw, 44px); line-height: 1.15; } }

/* ---------- Boutons de validation : crème et sable au repos, cobalt pâle au survol ---------- */
input[type="submit"]:not(.ver-bouton), button[type="submit"]:not(.ver-bouton), .bur-bouton,
.formulaire-infolettre input[type="submit"], #form-inscription input[type="submit"] { color: #4A4A4A; background: #FBF3E4; border-color: #CDB892; }
input[type="submit"]:not(.ver-bouton):hover, button[type="submit"]:not(.ver-bouton):hover, .bur-bouton:hover,
.formulaire-infolettre input[type="submit"]:hover, #form-inscription input[type="submit"]:hover { color: #F6EBD0; background: #5E7F98; border-color: #5E7F98; }   /* bleu et crème des glyphes du bandeau */
.bur-barre button.bur-lien-bouton[type="submit"], .bur-barre button.bur-lien-bouton[type="submit"]:hover { background: none; }

/* ---------- Forum : question d'inscription et mode d'emploi ---------- */
.fo-question { margin: 6px 0 12px; font-size: 1.2em; color: var(--ex-cadre); }
.fo-mode { margin: 0 0 16px; padding: 12px 16px; background: #FFFDF8; border: 1px dashed color-mix(in srgb, var(--ex-cadre) 35%, transparent); border-radius: 4px 14px 6px 18px; transform: rotate(-0.4deg); }
.fo-mode p { margin: 0; }
.fo-mode p + p { margin-top: 8px; }
.fo-choix { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.fo-mode-plie { margin: -4px 0 14px; }
.fo-mode-plie summary { display: inline-block; cursor: pointer; font-size: 0.92em; font-style: italic; color: var(--ex-cadre); border-bottom: 1px dashed color-mix(in srgb, var(--ex-cadre) 50%, transparent); list-style: none; }
.fo-mode-plie summary::-webkit-details-marker { display: none; }
.fo-mode-plie summary::before { content: "✦ "; color: var(--ex-accent); }
.fo-mode-plie[open] summary { margin-bottom: 10px; }

/* ---------- Demande de thème gratuite (stages) ---------- */
.tg-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tg-option { display: block; margin: 0 0 12px; cursor: pointer; }
.tg-option input { margin-right: 8px; accent-color: var(--ex-cadre); }
.tg-volet { margin: 0 0 18px 4px; padding: 12px 0 2px 18px; border-left: 1.5px dashed color-mix(in srgb, var(--ex-cadre) 40%, transparent); }

/* ---------- Vos préférences ---------- */
.texte-page .vp-question input[type=text] { display: block; width: 100%; box-sizing: border-box; padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--ex-cadre) 30%, transparent); border-radius: 4px 12px 4px 14px; background: #FFFDF8; font: inherit; }
.texte-page .vp-question input[type=text]:focus { outline: none; border-color: var(--ex-accent); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ex-accent) 15%, transparent); }
.vp-note { margin: 14px 0 6px; }
.vp-petit { font-size: 0.9em; font-style: italic; color: #6E6E6E; }

/* ---------- Essai : charte douce sur le site public (visible seulement avec le témoin essai_charte) ---------- */
body.charte-douce .menu-principal { background: #FCF8F1; }
body.charte-douce .conteneur { background: linear-gradient(180deg, #FEFCF8, #FCF8F1); }
body.charte-douce .contenu-page { background: #FFFDF8; border: 1px solid #EAD9BF; border-radius: 6px 22px 8px 26px; box-shadow: 4px 5px 0 rgba(226, 178, 111, 0.18); }
body.charte-douce .titre-page { color: #3F3F46; }
body.charte-douce .texte-page { color: #555555; }
body.charte-douce .texte-page h2:not([class]) { color: #2F5A8F; }
body.charte-douce .texte-page h3:not([class]) { color: #B4532A; }
body.charte-douce .encadre { border-color: #E2CFA9; border-radius: 4px 16px 6px 20px; background: #FCF8EF; box-shadow: 3px 4px 0 rgba(226, 178, 111, 0.22); }
body.charte-douce .encadre-titre { color: #2F5A8F; }
body.charte-douce .widget { background: #FDFAF4; border-color: #EAD9BF; border-radius: 4px 16px 6px 20px; }
body.charte-douce .widget-titre { margin: 2px 0 14px; color: #B4532A; font-size: 12px; line-height: 1.35; }
body.charte-douce .widget-titre span { padding: 4px 12px; letter-spacing: 0.04em !important; }
body.charte-douce .widget-titre::before { border-top-color: #E2CFA9; }
body.charte-douce .widget-titre span { background: #FBF3E4; border: 0; transform: rotate(-1.5deg) skewX(-10deg); box-shadow: 0 2px 6px rgba(47, 90, 143, 0.18); letter-spacing: 0.06em; }
body.charte-douce .widget-titre span::before { content: "✦ "; color: #2F5A8F; }
/* champs de saisie : teinte parchemin plus légère que le fond, blancs quand on écrit dedans */
body.charte-douce input[type="text"], body.charte-douce input[type="email"], body.charte-douce input[type="tel"], body.charte-douce input[type="number"], body.charte-douce input[type="search"], body.charte-douce input[type="password"], body.charte-douce input[type="url"], body.charte-douce input[type="date"], body.charte-douce textarea, body.charte-douce select { background-color: #FAF5E9; border-color: #E3D0AC; color: #4A4A4A; transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
body.charte-douce input[type="text"]:focus, body.charte-douce input[type="email"]:focus, body.charte-douce input[type="tel"]:focus, body.charte-douce input[type="number"]:focus, body.charte-douce input[type="search"]:focus, body.charte-douce input[type="password"]:focus, body.charte-douce input[type="url"]:focus, body.charte-douce input[type="date"]:focus, body.charte-douce textarea:focus, body.charte-douce select:focus { background-color: #ffffff; border-color: #9DB3D1; outline: none; box-shadow: 0 0 0 3px rgba(47, 90, 143, 0.12); }
/* intérieur des cadres de page (onglets, accordéons) : léger jaune parchemin plutôt que blanc */
body.charte-douce .texte-page .onglet-contenu { background: #FCF8EF; border-color: #EAD9BF; }
body.charte-douce .texte-page .accordeon.fond-blanc { --acc-fond: #FCF8EF; }
/* personnages sur fond blanc dans les accordéons : le blanc se fond dans le parchemin */
body.charte-douce .texte-page .accordeon img { mix-blend-mode: multiply; }
/* Chemin discret vers le cours de préparation, au bas de l'index des exercices */
.ex-preparation { margin: 26px 0 0; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--ex-cadre) 30%, transparent); text-align: center; font-size: 0.9em; font-style: italic; color: #8A7A66; }
.ex-preparation a { color: var(--ex-cadre); }
/* Phrases défilantes : un peu plus petites, pour tenir chacune sur une ligne */
body.charte-douce .phrase { font-size: clamp(10.5pt, 1.9vw, 12.5pt); }
body.charte-douce .phrases-elegant .phrase-ligne1 { font-size: clamp(10pt, 1.8vw, 12pt); }
body.charte-douce .phrases-elegant .phrase-ligne2 { font-size: clamp(11pt, 2vw, 13pt); }

/* MODIFICATION REQUISE : relecture du 7 novembre - champs « crème claire » au clic et onglets horizontaux « sable et ardoise » pour tout le site.
   Les couleurs sont réunies dans des variables (body.charte-douce) pour pouvoir les régler plus tard depuis l'éditeur de site.
   Les onglets horizontaux ignorent désormais les couleurs posées page par page (!important l'emporte sur le style en ligne). */
body.charte-douce {
    --site-champ-clic: #FFFBF3;
    --site-champ-filet: #5E7F98;
    --site-ong-repos: #EFE3CB;
    --site-ong-repos-texte: #6B5A45;
    --site-ong-choisi: #5E7F98;
    --site-ong-choisi-texte: #F6EBD0;
}
body.charte-douce input[type="text"]:focus, body.charte-douce input[type="email"]:focus, body.charte-douce input[type="tel"]:focus, body.charte-douce input[type="number"]:focus, body.charte-douce input[type="search"]:focus, body.charte-douce input[type="password"]:focus, body.charte-douce input[type="url"]:focus, body.charte-douce input[type="date"]:focus, body.charte-douce textarea:focus, body.charte-douce select:focus,
body.charte-douce .colonne-principale input[type="text"]:focus, body.charte-douce .colonne-principale input[type="email"]:focus, body.charte-douce .colonne-principale input[type="tel"]:focus, body.charte-douce .colonne-principale textarea:focus,
body.charte-douce .colonne-laterale input[type="text"]:focus, body.charte-douce .colonne-laterale input[type="email"]:focus,
body.charte-douce #form-inscription input[type="text"]:focus, body.charte-douce #form-inscription input[type="email"]:focus {
    background-color: var(--site-champ-clic);
    border-color: var(--site-champ-filet);
    box-shadow: 0 0 0 3px rgba(94, 127, 152, 0.16);
    outline: none;
}
/* onglets verticaux compris (7 novembre, sur demande) */
body.charte-douce .texte-page .onglets-fidele:not(.couleurs-propres) {
    --ong-couleur: var(--site-ong-repos) !important;
    --ong-texte: var(--site-ong-repos-texte) !important;
    --ong-actif: var(--site-ong-choisi) !important;
    --ong-actif-texte: var(--site-ong-choisi-texte) !important;
}
body.charte-douce .texte-page .onglets-fidele.titres-haut:not(.couleurs-propres) .onglet-contenu {
    border: 1px solid #D6DCE0;
    border-top: 3px solid var(--site-ong-choisi);
}
/* FIN MODIFICATION */

/* MODIFICATION REQUISE : page « Cours par visio » en version compacte (7 novembre) */
.texte-page .vi-fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 22px 0; }
.texte-page .vi-fiche > div { padding: 12px 14px; border: 1px solid #EAD9BF; border-radius: 8px; background: #FCF8EF; font-size: 14px; line-height: 1.45; }
/* MODIFICATION REQUISE (15 novembre) : fin trait bleu en haut, à l'intérieur de chaque cadre */
.texte-page .vi-fiche.fiche-trait > div { box-shadow: inset 0 2px 0 var(--fiche-trait, var(--site-ong-choisi, #5E7F98)); }   /* trait facultatif (outil Fiches), couleur du site ou couleur libre */
/* FIN MODIFICATION */
.texte-page .vi-fiche b { display: block; margin-bottom: 2px; font-family: 'Alegreya Sans', Raleway, Arial, sans-serif; font-size: 20px; font-weight: 500; color: #3A3A3A; }
.texte-page .vi-sessions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 22px; }
.texte-page .vi-session { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid #EAD9BF; border-radius: 8px; background: #FFFDF8; }
.texte-page .vi-session h3 { margin: 0; font-family: 'Alegreya Sans', Raleway, Arial, sans-serif; font-size: 22px; font-weight: 400; color: #2F5A8F; }
.texte-page .vi-session p { margin: 0; font-size: 14px; line-height: 1.5; flex: 1; }
.texte-page .vi-session .boutons { margin: 0; }
.texte-page .vi-note { font-size: 14px; color: #7A6E5E; }
.texte-page details.vi-replie, .texte-page details.vi-informe { margin: 0 0 12px; padding: 0 16px; border: 1px solid #EAD9BF; border-radius: 8px; background: #FCF8EF; }
.texte-page details.vi-replie > summary, .texte-page details.vi-informe > summary { padding: 11px 0; cursor: pointer; font-weight: 600; color: #4A4A4A; }
.texte-page details.vi-replie[open], .texte-page details.vi-informe[open] { padding-bottom: 14px; }
.texte-page details.vi-informe { margin: 16px 0; }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE : cadre parchemin pour les paragraphes d'une page (page formation, 7 novembre) */
.texte-page p.cadre-parchemin { display: flow-root; margin: 0 0 14px; padding: 14px 18px; border: 1px solid #EAD9BF; border-radius: 8px; background: #FCF8EF; }
.texte-page p.cadre-parchemin img.alignleft { margin-top: 4px; }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE (7 novembre) : vignettes de la liste des articles — jamais agrandies (pas de pixels), jamais tronquées */
.texte-page .cartes-articles .carte-visuel-image { background: #FCF8EF; }
.texte-page .cartes-articles .carte-visuel-image img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE (7 novembre) : page visio — quatre sessions sur une ligne, boutons sur une seule ligne, conditions en encadré */
.texte-page .vi-sessions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .texte-page .vi-sessions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .texte-page .vi-sessions { grid-template-columns: 1fr; } }
.texte-page .vi-session .bouton-page { white-space: nowrap; }
.texte-page .vi-conditions { margin: 0 0 18px; padding: 12px 18px; border: 1px solid #EAD9BF; border-radius: 8px; background: #FCF8EF; }
.texte-page .vi-conditions h3 { margin: 0 0 6px; font-size: 1.05em; font-weight: 600; color: #4A4A4A; }
.texte-page .vi-conditions ul { margin: 0; }
/* Tableaux de dates venus de WordPress : en-têtes verts et cases grises accordés aux couleurs de l'apparence */
body.charte-douce .texte-page table:not(.couleurs-propres) td[style*="#74a315" i] { background-color: var(--site-ong-choisi) !important; color: var(--site-ong-choisi-texte); }
body.charte-douce .texte-page table:not(.couleurs-propres) td[style*="#ebebeb" i] { background-color: #FCF8EF !important; border: 1px solid #EAD9BF; }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE (7 novembre) : cours de préparation, page de présentation et encart discret */
body.charte-douce .encart-preparation { margin: 18px 0; padding: 12px 18px; border: 1px dashed #D8C7A6; border-radius: 14px 22px 14px 22px; background: #FCF8EF; font-size: 0.95em; line-height: 1.5; }
body.charte-douce .encart-preparation::before { content: "\2726"; margin-right: 8px; color: var(--site-ong-choisi, #5E7F98); }
body.charte-douce .pr-presentation { display: flow-root; margin-bottom: 6px; }
body.charte-douce .pr-extrait { float: right; width: 170px; margin: 0 0 14px 22px; text-align: center; text-decoration: none; }
body.charte-douce .pr-couverture { display: block; width: 100%; height: auto; margin: 0 0 10px; border-radius: 6px; box-shadow: 0 6px 18px rgba(60, 40, 20, 0.18); transform: rotate(1.5deg); transition: transform 0.3s ease, box-shadow 0.3s ease; }
body.charte-douce .pr-extrait:hover .pr-couverture { transform: rotate(0deg) scale(1.03); box-shadow: 0 10px 24px rgba(60, 40, 20, 0.24); }
body.charte-douce .pr-extrait span { font-size: 0.85em; color: #990000; }
body.charte-douce .pr-cours { list-style: none; counter-reset: pr-cours; margin: 14px 0 6px; padding: 0; }
body.charte-douce .pr-cours li { counter-increment: pr-cours; position: relative; margin: 0 0 8px; padding: 10px 14px 10px 54px; border: 1px solid #EAD9BF; border-radius: 8px; background: #FCF8EF; line-height: 1.4; overflow: hidden; }
body.charte-douce .pr-cours li::before { content: counter(pr-cours); position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-content: center; background: var(--site-ong-choisi, #5E7F98); color: var(--site-ong-choisi-texte, #F6EBD0); font-family: 'Alegreya Sans', Raleway, Arial, sans-serif; }
body.charte-douce .pr-cours li b { display: block; font-family: 'Alegreya Sans', Raleway, Arial, sans-serif; font-weight: 500; font-size: 1.1em; }
@media (max-width: 600px) { body.charte-douce .pr-extrait { float: none; display: block; width: 150px; margin: 0 auto 16px; } }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE (7 novembre) : aucune transition ni animation pendant le chargement de la page (classe retirée par site.js) */
.sans-transition *, .sans-transition *::before, .sans-transition *::after { transition: none !important; animation-delay: 0s !important; animation-duration: 0s !important; }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE (8 novembre) : cours de préparation, annonce des explications par courriel, juste sous la note */
.ex-qcm-annonce { display: inline-block; max-width: 520px; margin: 0 auto 22px; padding: 8px 16px; border: 1px dashed color-mix(in srgb, var(--ex-accent, #5E7F98) 45%, transparent); border-radius: 4px 14px 6px 16px; background: #FCF8EF; font-style: italic; line-height: 1.5; }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE (8 novembre) : bloc « Ressource » de l'éditeur, chaque document sur sa feuille de parchemin (même rendu que .bur-ressources .colonne) */
.bur-ressource { position: relative; margin-bottom: 26px; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--bur-accent) 18%, transparent); border-radius: 14px 26px 16px 30px / 22px 14px 26px 16px; background:
    radial-gradient(circle at 92% 6%, color-mix(in srgb, var(--bur-cadre) 9%, transparent), transparent 36%),
    radial-gradient(circle at 4% 98%, color-mix(in srgb, var(--bur-ocre) 30%, transparent), transparent 44%),
    #FDF8EE; box-shadow: 0 5px 16px rgba(90, 60, 20, 0.08); transform: rotate(-0.5deg); }
.colonne:nth-child(even) > .bur-ressource { transform: rotate(0.5deg); }
.bur-ressource::after { content: ""; display: block; clear: both; }
.bur-ressource > p:first-child strong { display: inline-block; padding: 2px 12px; background: var(--bur-creme); color: var(--bur-accent); transform: rotate(-1.5deg) skewX(-10deg); box-shadow: 0 2px 6px rgba(47, 90, 143, 0.15); }
.bur-ressource > p:first-child strong::before { content: "✦ "; color: var(--bur-cadre); }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE (8 novembre) : cadre des articles et billets, très légèrement crème */
body.charte-douce .contenu-page.contenu-article { background: #FFFEFA; }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE (8 novembre) : encadré des questionnaires du cours de préparation, en haut de la page des exercices */
.ex-preparation-encadre { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 560px; margin: 0 0 22px; padding: 10px 16px; border: 1px dashed color-mix(in srgb, var(--ex-accent, #5E7F98) 45%, transparent); border-radius: 4px 14px 6px 16px; background: #FCF8EF; transform: rotate(-0.4deg); }
.ex-preparation-encadre p { margin: 0; }
.ex-preparation-encadre .ex-pastilles { display: flex; gap: 8px; margin: 0; }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE (8 novembre) : forum, « voir son message » à droite sur la ligne de « Votre message » (même petite taille) */
.fo-bloc-message { position: relative; }
.fo-bloc-message > .fo-voir { position: absolute; top: 2px; right: 0; max-width: 62%; margin: 0; text-align: right; line-height: 1.4; }
@media (max-width: 520px) { .fo-bloc-message > .fo-voir { position: static; max-width: none; margin: 0 0 6px; text-align: left; } }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE (8 novembre) : page « Choisissez votre forum », tuiles côte à côte (la classe fo-choix du cadre en faisait une colonne étroite) */
.ex-index.fo-choix { display: block; }
.ex-index.fo-choix > .fo-liste { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
/* FIN MODIFICATION */

/* MODIFICATION REQUISE (8 novembre) : nombre de forums de l'élève, avant les tuiles */
.fo-nombre { margin: 16px 0 0; font-size: 0.95em; color: #666; }
.fo-nombre strong { color: var(--ex-accent); font-size: 1.15em; }
/* FIN MODIFICATION */
/* MODIFICATION REQUISE (9 novembre) : halo or doux en haut à droite des cartes du forum, au lieu du reflet bleu-gris */
.ex-carte.fo-carte {
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--ex-ocre) 30%, transparent), transparent 34%),
    radial-gradient(circle at 6% 96%, color-mix(in srgb, var(--ex-ocre) 35%, transparent), transparent 42%),
    radial-gradient(circle at 60% 120%, color-mix(in srgb, var(--ex-accent) 12%, transparent), transparent 50%),
    #FDF8EE;
}
/* FIN MODIFICATION */
/* MODIFICATION REQUISE (9 novembre) : la fenêtre « voir son message » du forum apparaît et disparaît en fondu */
.fo-papillon-fond { opacity: 0; transition: opacity 0.4s ease; }
.fo-papillon-boite { opacity: 0; transform: rotate(-0.4deg) translateY(14px) scale(0.97); transition: opacity 0.4s ease, transform 0.4s ease; }
.fo-papillon.fo-ouvert .fo-papillon-fond { opacity: 1; }
.fo-papillon.fo-ouvert .fo-papillon-boite { opacity: 1; transform: rotate(-0.4deg); }
/* FIN MODIFICATION */
/* MODIFICATION REQUISE (9 novembre) : tableaux des pages (outil Tableau de l'éditeur) */
.tableau-page { margin: 1.4em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #EAD9BF; border-radius: 10px; background: #FFFDF8; }
.tableau-page table { width: 100%; border-collapse: collapse; font-size: 0.95em; line-height: 1.5; }
.tableau-page th, .tableau-page td { padding: 10px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #F0E6D2; }
.tableau-page tbody tr:last-child th, .tableau-page tbody tr:last-child td { border-bottom: none; }
.tableau-page tbody tr:nth-child(even) { background: #FCF7EC; }
.tableau-page tbody tr:hover { background: var(--site-champ-clic, #F7EEDB); }
/* en-tête aux couleurs des onglets au repos, filet de la couleur des champs : réglés dans l'onglet Apparence de l'éditeur */
.tableau-page.tableau-entete thead th { background: var(--site-ong-repos, #FBF3E4); color: var(--site-ong-repos-texte, #6B5A45); font-variant: small-caps; letter-spacing: 0.05em; font-weight: 600; font-size: 1.02em; border-bottom: 2px solid var(--site-champ-filet, #E2CC97); white-space: nowrap; }
.tableau-page.tableau-colonne-titre tbody th { font-weight: 600; color: #4A4A4A; }
.tableau-page a { color: #990000; }
/* FIN MODIFICATION */
/* MODIFICATION REQUISE (9 novembre) : page des cours par visio, champ « être informé des nouvelles sessions » assez large pour son texte d'invite */
.vi-informe input[type="email"] { width: 19em; max-width: 100%; box-sizing: border-box; }
/* FIN MODIFICATION */
/* MODIFICATION REQUISE (9 novembre) : fenêtre papillon d'une session fermée (js/site.js), en fondu */
.ins-ferme { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ins-ferme-fond { position: absolute; inset: 0; background: rgba(40, 30, 15, 0.45); opacity: 0; transition: opacity 0.4s ease; }
.ins-ferme-boite { position: relative; width: 100%; max-width: 540px; max-height: 85vh; overflow: auto; padding: 22px 26px; background: #FDF8EE; border: 1px solid #EAD9BF; border-radius: 14px 24px 16px 28px; box-shadow: 0 10px 34px rgba(40, 30, 15, 0.3); opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity 0.4s ease, transform 0.4s ease; }
.ins-ferme.ins-ouvert .ins-ferme-fond { opacity: 1; }
.ins-ferme.ins-ouvert .ins-ferme-boite { opacity: 1; transform: none; }
.ins-ferme-fermer { float: right; font-size: 0.85em; color: #990000; }
.ins-ferme-titre { margin: 0 0 12px; font-size: 0.9em; color: #B8960A; font-variant: small-caps; letter-spacing: 0.04em; }
.ins-ferme-texte { margin: 0 0 16px; line-height: 1.6; }
.ins-ferme-zone form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.ins-ferme-zone input[type="email"] { flex: 1 1 15em; min-width: 0; box-sizing: border-box; }
.ins-ferme-note { margin: 12px 0 0; font-size: 0.8em; color: #777; }
.ins-ferme-merci { margin: 0; color: #2e6b34; font-weight: 600; }
.ins-ferme-erreur { margin: 0 0 8px; color: #990000; font-size: 0.92em; }
/* FIN MODIFICATION */
/* MODIFICATION REQUISE (9 novembre) : champ d'adresse de la page des cours par visio (cadre et fenêtre papillon) mis en forme comme les champs récents du site */
body .colonne-principale .texte-page .vi-informe input[type="email"], body .colonne-principale .texte-page .ins-ferme-zone input[type="email"] { height: 40px; margin: 0; padding: 8px 14px; border: 1px solid #E3D0AC; border-radius: 8px; background: #FFFDF8; color: #464a4c; font: inherit; box-shadow: inset 0 1px 2px rgba(120, 90, 40, 0.06); transition: border-color 0.3s, background 0.3s; }
body .colonne-principale .texte-page .vi-informe input[type="email"]:focus, body .colonne-principale .texte-page .ins-ferme-zone input[type="email"]:focus { outline: none; padding: 8px 14px; border: 1px solid var(--site-champ-filet, #C9A227); background: var(--site-champ-clic, #FFFBF3); }
/* FIN MODIFICATION */