/* =========================================
   LES AGES DE LA VIE - STYLES COMMUNS
   Choix fixé : Police Lisible (Open Sans) + Couleur Nature douce
   Sélecteur désactivé — pour réactiver : décommenter <script src="palette-selector.js">
   dans chaque fichier HTML
   ========================================= */
   

 a img {
  opacity: 1;
  transition: opacity 0.3s ease;
  filter:alpha(opacity=100);
}

a:hover img {
  opacity: 0.7;
  filter:alpha(opacity=70);
}


/* Propriétés enregistrées pour animer les changements de palette (CSS Houdini @property) */
@property --vert-pastel       { syntax: '<color>'; initial-value: #A8D5BA; inherits: true; }
@property --vert-pastel-clair { syntax: '<color>'; initial-value: #C8E6D7; inherits: true; }
@property --marron            { syntax: '<color>'; initial-value: #8B6F47; inherits: true; }
@property --marron-clair      { syntax: '<color>'; initial-value: #A68A66; inherits: true; }
@property --bleu              { syntax: '<color>'; initial-value: #7EAED3; inherits: true; }
@property --bleu-clair        { syntax: '<color>'; initial-value: #A5C9E0; inherits: true; }

:root {
    /* ── Couleur 2 : Nature douce (choix définitif client) ───────────────── */
    --vert-pastel: #A8D5BA;
    --vert-pastel-clair: #C8E6D7;
    --marron: #8B6F47;
    --marron-clair: #A68A66;
    --bleu: #7EAED3;
    --bleu-clair: #A5C9E0;

    /* Autres palettes disponibles — décommenter pour tester (+ réactiver palette-selector.js) */
    /* Nature tendre  : --marron:#C4AD94; --marron-clair:#E0D5C5; --vert-pastel-clair:#D8EFE6; */
    /* Nature intense : --marron:#5D4E37; --marron-clair:#73604A;                              */
    /* Terracotta     : --vert-pastel:#D4A090; --marron:#8B3A2A; --bleu:#F27A5C;               */
    /* Professionnelle: --vert-pastel:#9BBACF; --marron:#1B3A5C; --bleu:#B07D10;               */
    /* Élégante       : --vert-pastel:#C4B8D8; --marron:#3A2E50; --bleu:#8B68C4;               */

    /* Transition désactivée (plus de changement dynamique) */
    /* transition:
        --vert-pastel       0.45s ease,
        --vert-pastel-clair 0.45s ease,
        --marron            0.45s ease,
        --marron-clair      0.45s ease,
        --bleu              0.45s ease,
        --bleu-clair        0.45s ease; */

    /* ── Police 4 : Lisible — Open Sans (choix définitif client) ─────────── */
    /* Autres polices disponibles (+ réactiver palette-selector.js pour les proposer) */
    /* Classique : --font-heading:'Helvetica Neue',Arial,sans-serif; --font-body:Georgia,serif; */
    /* Moderne   : --font-heading:'Montserrat',sans-serif; --font-body:'Montserrat',sans-serif; */
    /* Élégante  : --font-heading:'Playfair Display',serif; --font-body:'Lora',serif;           */
    --font-heading: 'Open Sans', sans-serif;
    --font-body:    'Open Sans', sans-serif;


    /* Couleurs neutres */
    --blanc: #FFFFFF;
    --gris-clair: #F5F5F5;
    --gris-moyen: #D0D0D0;
    --gris-fonce: #4A4A4A;
    --texte: #333333;
}

.couleur_tetiere_page  {
	color: #ffffff;/* #8B6F47 */ 
}
p.subtitle.couleur_tetiere_page {
    color: #ffffff;
}


/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--texte);
    /*background-color: var(--blanc);*/
	background-color:#efefef; 
    font-size: 17px;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--marron);
    margin-bottom: 1.2rem;
}

h1 {
    font-size: 2.8rem;
    font-weight: 300;
}

h2 {
    font-size: 2.2rem;
    font-weight: 300;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--bleu);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--marron);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--vert-pastel-clair) 0%, var(--bleu-clair) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--marron);
    font-family: var(--font-heading);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.3rem;
}

nav a {
    color: var(--marron);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.4rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--blanc);
    color: var(--bleu);
}

/* Sous-menu desktop */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--blanc);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    min-width: 220px;
    z-index: 1200;
    padding: 0.4rem 0;
    flex-direction: column;
    gap: 0;
}

.has-submenu:hover .submenu {
    display: flex;
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 0;
    white-space: nowrap;
    font-size: 0.9rem;
}

.submenu a:hover {
    background-color: var(--gris-clair);
    color: var(--bleu);
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section commune */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--marron);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.btn-primary {
    background-color: var(--bleu);
    color: var(--blanc);
}

.btn-primary:hover {
    background-color: var(--marron);
    color: var(--blanc);	
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--vert-pastel);
    color: var(--marron);
}

.btn-secondary:hover {
    background-color: var(--marron);
    color: var(--blanc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Cards */
.card {
    background: var(--blanc);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--vert-pastel);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--marron) 0%, var(--marron-clair) 100%);
    color: var(--blanc);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--vert-pastel-clair);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section a {
    color: var(--blanc);
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--vert-pastel-clair);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Sous-menu mobile — toujours visible dans le burger */
@media (max-width: 899px) {
    .submenu {
        display: block !important;
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: var(--gris-clair);
        width: 100%;
    }

    .submenu li {
        display: block;
        width: 100%;
    }

    .submenu a {
        display: block;
        width: 100%;
        padding: 6px 20px;
        font-size: 0.95rem;
        color: var(--marron-clair);
    }
}

/* Logo adaptatif sur petit écran */
@media (max-width: 899px) {
    .logo {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.95rem;
    }
}

/* Burger visible dès 899px */
@media (max-width: 899px) {
    .burger-menu {
        display: flex !important;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--blanc);
        z-index: 1100;
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 80px 20px 20px;
    }

    #main-nav.active {
        right: 0;
    }

    /* Forcer la disposition verticale de tous les ul dans le burger */
    #main-nav ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    #main-nav .submenu {
        display: block !important;
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: var(--gris-clair);
        width: 100%;
    }

    #main-nav .submenu li {
        display: block;
        width: 100%;
    }

    #main-nav .submenu a {
        display: block;
        padding: 6px 20px;
        font-size: 0.95rem;
        color: var(--marron-clair);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Menu burger mobile — espacement compact */
    #main-nav ul {
        gap: 0;
        text-align: left;
    }

    #main-nav a {
        padding: 5px 10px;
    }
    
    h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    /* Images responsives — écrase les max-width et flex-shrink inline */
    img {
        max-width: 100% !important;
        height: auto !important;
        flex-shrink: 1 !important;
    }

    /* Flex containers qui causent des débordements */
    .info-box,
    [style*="display: flex"],
    [style*="display:flex"] {
        flex-wrap: wrap !important;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* =========================================
   STYLES PAGES DE CONTENU
   ========================================= */

/* En-tête de page */
.page-header {
    /*background: linear-gradient(135deg, rgba(168, 213, 186, 0.2) 0%, rgba(126, 174, 211, 0.2) 100%);*/
	background-color:#8B6F47;
    padding: 4rem 0 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* En-tête de page avec image de fond */
.page-header.has-bg {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
    /* background-image géré via var(--page-header-bg) dans ::before */
}

/* Image de fond : opacity modifiable indépendamment du texte */
.page-header.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--page-header-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7; /* ← Modifier uniquement ici pour l'opacité de l'image */
    z-index: 1;
}

/* Overlay dégradé coloré au-dessus de l'image */
.page-header.has-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(200, 230, 215, 0.75) 0%,
        rgba(165, 201, 224, 0.70) 50%,
        rgba(139, 111, 71, 0.55) 100%
    );
    z-index: 2;
}

.page-header.has-bg .container {
    position: relative;
    z-index: 3; /* Au-dessus des deux pseudo-éléments */
}

.page-header.has-bg h1 {
    color: var(--blanc);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-size: 3.2rem;
}

.page-header.has-bg .breadcrumb {
    color: rgba(255, 255, 255, 0.85);
}

.page-header.has-bg .breadcrumb a {
    color: var(--blanc);
}

.page-header.has-bg .header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 0.8rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--marron);
    margin-bottom: 1rem;
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    color: var(--gris-fonce);
}

.page-header .breadcrumb a {
    color: var(--bleu);
}

/* Image de transition entre sections */
.section-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin: 2.5rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Image flottante dans le contenu */
.content-image-right {
    float: right;
    max-width: 320px;
    margin: 0 0 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.content-image-left {
    float: left;
    max-width: 320px;
    margin: 0 2rem 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Layout contenu + sidebar */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Article principal */
.main-content h2 {
    color: var(--marron);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--vert-pastel);
}

.main-content h3 {
    color: var(--bleu);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.main-content h4 {
    color: var(--marron-clair);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.main-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.main-content ul,
.main-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.main-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.main-content blockquote {
    background: var(--gris-clair);
    border-left: 5px solid var(--bleu);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 5px;
}

.main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Encadré important */
.info-box {
    background: linear-gradient(135deg, rgba(168, 213, 186, 0.1) 0%, rgba(126, 174, 211, 0.1) 100%);
    border-left: 5px solid var(--vert-pastel);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.info-box h4 {
    color: var(--marron);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--blanc);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border-top: 4px solid var(--vert-pastel);
}

.sidebar-widget h3 {
    color: var(--marron);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.sidebar-widget li::before {
    content: "\25B8";
    color: var(--bleu);
    position: absolute;
    left: 0;
}

.sidebar-widget a {
    color: var(--gris-fonce);
    transition: color 0.3s ease;
}

.sidebar-widget a:hover {
    color: var(--bleu);
}

/* CTA Sidebar */
.cta-widget {
    background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-clair) 100%);
    color: var(--blanc);
    text-align: center;
}

.cta-widget h3 {
    color: var(--blanc);
}

.cta-widget .btn {
    background-color: var(--blanc);
    color: var(--bleu);
}

.cta-widget .btn:hover {
    background-color: var(--vert-pastel);
    color: var(--marron);
}

/* Navigation de page */
.page-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--gris-moyen);
}

.nav-link {
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.nav-label {
    font-size: 0.9rem;
    color: var(--gris-fonce);
    margin-bottom: 0.5rem;
}

.nav-title {
    color: var(--bleu);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Témoignage */
.testimonial {
    background: var(--gris-clair);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 5px solid var(--marron);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    color: var(--marron);
    font-weight: 600;
}

/* =========================================
   SECTIONS BIOGRAPHIQUES (Accompagnements)
   ========================================= */

.bio-section {
    background: var(--blanc);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2.5rem;
    border-left: 5px solid var(--vert-pastel);
    transition: box-shadow 0.3s ease;
}

.bio-section:nth-child(even) {
    border-left-color: var(--bleu);
}

.bio-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.bio-section h3 {
    color: var(--marron);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bio-section .bio-subtitle {
    color: var(--bleu);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.bio-section p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.bio-section .bio-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================================
   CARTOUCHES CONTACT
   ========================================= */

.cartouches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.cartouche {
    background: var(--blanc);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 5px solid var(--vert-pastel);
    text-decoration: none;
    color: var(--texte);
    display: block;
}

.cartouche:nth-child(2) {
    border-top-color: var(--bleu);
}

.cartouche:nth-child(3) {
    border-top-color: var(--marron);
}

.cartouche:nth-child(4) {
    border-top-color: var(--bleu-clair);
}

.cartouche:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: var(--texte);
}

.cartouche h3 {
    color: var(--marron);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.cartouche p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Age-card en lien */
a.age-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* =========================================
   PAGE LIVRE
   ========================================= */

.book-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.price-card {
    background: var(--gris-clair);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.price-card .price {
    font-size: 2.5rem;
    color: var(--marron);
    font-weight: 600;
    font-family: var(--font-heading);
    margin: 1rem 0;
}

.price-card .price-label {
    color: var(--gris-fonce);
    font-size: 0.95rem;
}

/* =========================================
   PAGES LEGALES
   ========================================= */

.legal-content h2 {
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vert-pastel);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.legal-info {
    background: var(--gris-clair);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.legal-info p {
    margin-bottom: 0.5rem;
}

/* =========================================
   PAGE A PROPOS
   ========================================= */

.about-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.about-photo {
    text-align: center;
}

.about-photo img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* =========================================
   CTA SECTION (bas de page)
   ========================================= */

.cta-section {
    background-color: var(--gris-clair);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* =========================================
   RESPONSIVE COMPLÉMENTAIRE
   ========================================= */

@media (max-width: 968px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header.has-bg h1 {
        font-size: 2.4rem;
    }

    .page-header.has-bg {
        padding: 4rem 0 3rem;
    }

    .content-image-right,
    .content-image-left {
        float: none;
        max-width: 100%;
        margin: 1.5rem 0;
    }

    .section-image {
        height: 180px;
    }

    .page-navigation {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-link {
        max-width: 100%;
    }

    .about-profile {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .cartouches-grid {
        grid-template-columns: 1fr;
    }

    .book-pricing {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SÉLECTEUR DE PALETTE DE COULEURS
   ========================================= */
#palette-selector {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.55rem 1rem 0.55rem 0.85rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13), 0 1px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.palette-selector-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    white-space: nowrap;
    user-select: none;
}

.palette-sep {
    display: block;
    width: 1px;
    height: 1.25rem;
    background: #ddd;
    flex-shrink: 0;
}

.palette-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.palette-dot {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    outline: none;
    background-clip: padding-box;
}

.palette-dot:hover {
    transform: scale(1.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.palette-dot.active {
    border-color: rgba(0, 0, 0, 0.35);
    transform: scale(1.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.palette-dot:focus-visible {
    outline: 2px solid var(--bleu);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    #palette-selector {
        bottom: 1rem;
        right: 1rem;
        padding: 0.45rem 0.75rem 0.45rem 0.65rem;
        gap: 0.4rem;
    }

    .palette-selector-label {
        display: none;
    }

    .palette-sep {
        display: none;
    }

    .palette-dot {
        width: 1rem;
        height: 1rem;
    }
}

/* =========================================
   SÉLECTEUR DE POLICE DE CARACTÈRES
   ========================================= */
#font-selector {
    position: fixed;
    bottom: 4.75rem;
    right: 1.75rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.55rem 1rem 0.55rem 0.85rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13), 0 1px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.font-btns {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.font-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 0.35rem;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #666;
    background: transparent;
    transition: all 0.18s ease;
    outline: none;
    line-height: 1;
    white-space: nowrap;
}

.font-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #222;
}

.font-btn.active {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.22);
    color: #111;
}

.font-btn:focus-visible {
    outline: 2px solid var(--bleu);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    #font-selector {
        bottom: 3.75rem;
        right: 1rem;
        padding: 0.45rem 0.75rem 0.45rem 0.65rem;
        gap: 0.4rem;
    }

    .font-btn {
        font-size: 0.78rem;
        min-width: 1.6rem;
        height: 1.6rem;
    }
}
