/*
Theme Name: Le Libriste
Author: Le Libriste
Description: Thème WordPress complet
Version: 1.0
*/

body {
            margin: 0;
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #111, #1f1f1f);
            color: #f2f2f2;
        }

        #header {
            text-align: center;
            padding: 80px 20px;
            background: rgba(0, 0, 0, 0.6);
        }


a {
  color: #d4a373;
}

a:hover,
a:focus {
  color: #ffd9a3;
}



        .logo {
            max-width: 160px;
            margin-bottom: 25px;
            filter: drop-shadow(0 0 12px rgba(212, 163, 115, 0.5));
        }

        h1 {
            font-size: 3em;
            margin: 0;
            letter-spacing: 2px;
        }

        h2 {
            font-size: 1.3em;
            font-weight: 300;
            color: #d4a373;
            margin-top: 10px;
        }

        .cta {
            margin-top: 35px;
        }

        .cta a {
            text-decoration: none;
            background: #d4a373;
            color: #111;
            padding: 15px 35px;
            border-radius: 30px;
            font-size: 1.1em;
            margin: 10px;
            display: inline-block;
            transition: 0.3s;
        }

        .cta a:hover {
            background: #f1c27d;
        }

        .age-warning {
            margin-top: 20px;
            font-size: 0.9em;
            color: #ff9a9a;
        }

        section {
            padding: 70px 20px;
            max-width: 1100px;
            margin: auto;
        }

        
 .box h3 {
            color: #d4a373;
            margin-bottom: 15px;
        }

       
        .presentation {
            text-align: center;
            max-width: 850px;
            margin: auto;
            line-height: 1.7;
            font-size: 1.05em;
        }

        footer {
            background: #0d0d0d;
            text-align: center;
            padding: 30px 20px;
            font-size: 0.9em;
            color: #aaa;
        }

        footer a {
            color: #d4a373;
            text-decoration: none;
            margin: 0 10px;
        }

        footer a:hover {
            text-decoration: underline;
        }

.features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.box {
    flex: 1 1 30%; /* s'adapte à 3 colonnes sur desktop */
    #background-color: #f9f9f9;
	background: rgba(212, 163, 115, 0.08); /* léger doré transparent */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
	
}

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

.box-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

.box-image-link:hover .box-image {
    transform: scale(1.05);
}

.box-title {
    display: block;
    margin: 15px 0 10px;
    font-size: 1.2em;
	color: #d4a373;
    #color: #d4af37; /* doré */
    text-decoration: none;
    font-weight: bold;
}

.box-title:hover {
    #color: #bfa232; /* doré un peu plus foncé au hover */
	#color: #bfa232;
	color: #ffd9a3;
    opacity: 1;
    transform: translateY(-1px);
}

.box-excerpt {
    font-size: 0.95em;
    #color: #555;
	color: #f2f2f2;
}

.breadcrumbs {
    font-size: 1.1em; /* plus gros texte */
    margin: 20px auto;
    max-width: 900px;
    text-align: left;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    box-sizing: border-box;
}

.breadcrumbs a {
    #color: #d4af37; /* même doré que tes titres et boxes */
	color: #d4a373;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    #color: #bfa232; /* doré légèrement plus foncé au hover */
	color: #ffd9a3;
    text-decoration: underline;
	opacity: 1;
    transform: translateY(-1px);
}

.breadcrumbs .current {
    color: #555;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 1em; /* un peu plus petit sur mobile */
    }
}



/* Responsive pour tablettes et mobiles */
@media (max-width: 1024px) {
    .box {
        flex: 1 1 45%; /* 2 colonnes */
    }
}

@media (max-width: 768px) {
    .box {
        flex: 1 1 100%; /* 1 colonne */
    }
}

/* Header */
header {
    position: relative;
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.6);
}

/* Logo centré */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.site-logo img {
    max-width: 160px;
    filter: drop-shadow(0 0 12px rgba(212, 163, 115, 0.5));
}

/* Menu en haut à droite */
.main-navigation {
    position: absolute;
    top: 20px;
    right: 40px;
    display: flex;
    align-items: center;
}

.main-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.main-menu li {
    margin: 0;
    padding: 0;
}

.main-menu li a {
    display: block;
    padding: 5px 0;
    text-decoration: none;
    color: #d4af37;
    font-weight: 700;
    font-size: 1.1em;
    transition: color 0.3s;
}

.main-menu li a:hover {
    color: #bfa232;
}

/* Hamburger menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    #color: #d4af37;
	color: #d4a373;
}

/* Responsive menu */
@media (max-width: 768px) {
    .main-menu {
        display: none;
        flex-direction: column;
        gap: 15px;
        background-color: rgba(0,0,0,0.9);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 20px;
        border-radius: 0 0 0 8px;
    }

    .main-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* Titres et CTA centrés */
header h1,
header h2,
header .cta,
header .age-warning {
    text-align: center;
}

/* CTA */
.cta a {
    text-decoration: none;
    background: #d4a373;
    color: #111;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1em;
    margin: 10px;
    display: inline-block;
    transition: 0.3s;
}

.cta a:hover {
    background: #f1c27d;
}

/* Age warning */
.age-warning {
    margin-top: 20px;
    font-size: 0.9em;
    color: #ff9a9a;
}

.table-of-contents {
    background: #1f1f1f; /* sombre et discret */
    padding: 20px 25px;
    margin-bottom: 40px;
    border-radius: 12px;
    color: #d4af37;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-family: 'Arial', sans-serif;
	
}

.table-of-contents strong {
    display: block;
    font-size: 1.4em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f2f2f2;
    /* Suppression de la bordure */
    border-bottom: none;
    padding-bottom: 0;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents li.toc-level-3 {
    margin-left: 20px; /* indentation H3 */
    font-size: 0.95em;
}

.table-of-contents a {
    #color: #d4af37;
	color: #d4a373;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

.table-of-contents a:hover {
    color: #f1c27d;
    transform: translateX(2px);
    text-decoration: underline;
}

/* Responsive mobile */
@media (max-width: 1024px) {
    .table-of-contents {
        padding: 15px 20px;
        font-size: 0.95em;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

    .table-of-contents li.toc-level-3 {
        margin-left: 15px;
    }
}


.page-content {
    padding: 70px 30px;
}

.page-container h1 {
    letter-spacing: 0;
    line-height: 1.3;
    margin-bottom: 25px;
}
.page-container {
    max-width: 1200px;   /* largeur confortable */
    margin: auto;
    text-align: left;    /* lecture naturelle */
    line-height: 1.85;
    font-size: 1.05em;
}

.page-container {
    background: rgba(0,0,0,0.35);
    padding: 40px;
    border-radius: 16px;
	#width: 100%;
    #box-sizing: border-box;
}

@media (max-width: 768px) {
    .page-container h1 {
        font-size: 2em;
        letter-spacing: 0;
    }
}

/* Écrans larges */
@media (min-width: 1400px) {
    .page-container {
        max-width: 1400px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-content {
        padding: 40px 20px;
    }
}


.testimonials {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.testimonials h2 {
    color: #d4a373;
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 30px;
}

.testimonial {
    background: rgba(212, 163, 115, 0.08);
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.05em;
    line-height: 1.7;
    color: #f2f2f2;
    margin-bottom: 10px;
}

.testimonial-author {
    color: #d4a373;
    font-weight: bold;
    font-size: 0.95em;
}



/* FAQ */
.faq {
    max-width: 1100px; /* un peu plus large pour articles longs */
    margin: 50px auto;
    padding: 0 20px;
}

.faq h2 {
    font-size: 2em;
    color: #d4a373; /* couleur dorée cohérente avec le thème */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px 25px;
    background: rgba(212, 163, 115, 0.1); /* léger doré transparent */
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.faq-item h3 {
    font-size: 1.4em;
    color: #d4a373; /* même doré que les titres principaux */
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #f2f2f2;
}

/* Commentaires visiteurs */
.visitor-comments {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

.visitor-comments h2 {
    font-size: 2em;
    color: #d4a373; /* cohérent avec FAQ */
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 1024px) {
    .faq-item, .visitor-comments {
        padding: 18px 20px;
    }
    .faq h2, .visitor-comments h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .faq-item, .visitor-comments {
        padding: 15px;
    }
    .faq h2, .visitor-comments h2 {
        font-size: 1.6em;
    }
}


/* HERO */
.hero {
    background: none; /* fond identique au site */
    padding: 2px 2px; /* réduit le padding haut/bas */
    text-align: center;
    position: relative;
    color: #f2f2f2;
}

/* Supprimer l'overlay */
.hero::after {
    display: none;
}

/* INTRO TEXT */
.intro-text {
    background: none; /* fond identique au site */
    max-width: 900px;
    margin: 40px auto 0 auto; /* réduit la marge haute */
    text-align: center;
    padding: 20px 20px; /* moins de padding vertical */
}



.hero h1 {
    font-size: 3em;
    font-weight: 700;
    color: #d4a373;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2em;
    color: #f2f2f2;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero .btn-primary {
    background: #d4a373;
    color: #111;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.hero .btn-primary:hover {
    background: #f1c27d;
}

/* Responsive HERO */
@media (max-width: 768px) {
    .hero {
        padding: 80px 15px;
    }
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .hero .btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* INTRO TEXT */
.intro-text {
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

.intro-text h2 {
    font-size: 2em;
    font-weight: 700;
    color: #d4a373;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #f2f2f2;
}

/* Lien externe RageBait dans l'Intro Text */
.intro-text a {
    color: #d4a373; /* doré, cohérent avec le thème */
    text-decoration: underline; /* discret mais visible */
    font-weight: 600;
    transition: color 0.3s, transform 0.2s;
}

.intro-text a:hover {
    color: #f1c27d; /* doré plus clair au hover */
    transform: translateX(2px); /* petit effet dynamique */
    text-decoration: none; /* optionnel : enlever le soulignement au hover */
}


/* Responsive INTRO TEXT */
@media (max-width: 768px) {
    .intro-text h2 {
        font-size: 1.6em;
    }
    .intro-text p {
        font-size: 1em;
    }
}

/* HOW TO / CONSEILS */
.how-to {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.how-to h2 {
    font-size: 2em;
    font-weight: 700;
    color: #d4a373;
    margin-bottom: 40px;
}

.how-to .grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.how-to .card {
    background: rgba(212, 163, 115, 0.08); /* léger doré transparent */
    border-radius: 15px;
    padding: 25px 20px;
    flex: 1 1 30%;
    box-sizing: border-box;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.how-to .card h3 {
    font-size: 1.4em;
    color: #d4a373;
    margin-bottom: 15px;
}

.how-to .card p {
    font-size: 1.05em;
    line-height: 1.6;
    color: #f2f2f2;
}

/* Hover effects */
.how-to .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Responsive HOW TO */
@media (max-width: 1024px) {
    .how-to .card {
        flex: 1 1 45%; /* deux colonnes */
    }
}

@media (max-width: 768px) {
    .how-to .card {
        flex: 1 1 100%; /* une colonne */
    }
    .how-to h2 {
        font-size: 1.6em;
    }
}

/* CTA FINAL AVANCÉ */
.cta-final {
    background: linear-gradient(135deg, rgba(17,17,17,0.95), rgba(31,31,31,0.95));
    padding: 100px 20px;
    text-align: center;
    color: #f2f2f2;
}

.cta-final .cta-content {
    max-width: 900px;
    margin: auto;
}

.cta-final h2 {
    font-size: 2.2em;
    color: #d4a373;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.cta-final p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #f2f2f2;
    text-align: justify;
}

.cta-final ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.cta-final ul li {
    font-size: 1.05em;
    margin-bottom: 10px;
    color: #f2f2f2;
    position: relative;
    padding-left: 25px;
}

.cta-final ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #d4a373;
    font-weight: bold;
}

.cta-final .btn-cta {
    display: inline-block;
    background: #d4a373;
    color: #111;
    padding: 18px 45px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    margin-top: 25px;
    transition: 0.3s;
}

.cta-final .btn-cta:hover {
    background: #f1c27d;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-final {
        padding: 60px 15px;
    }
    .cta-final h2 {
        font-size: 1.8em;
    }
    .cta-final p, .cta-final ul li {
        font-size: 1em;
    }
    .cta-final .btn-cta {
        padding: 15px 30px;
        font-size: 1em;
    }
}

.inscription-wrapper {
    max-width: 750px;
    margin: 40px auto 70px;
    background: rgba(0,0,0,0.45);
    padding: 35px 35px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

.inscription-wrapper h1 {
    text-align: center;
    color: #d4a373;
    margin-bottom: 15px;
    font-size: 1.9em;
}

.intro-inscription {
    text-align: center;
    line-height: 1.7;
    margin-bottom: 20px;
}

.inscription-form label {
    display: block;
    margin-top: 12px;
    font-size: 0.95em;
}

.inscription-form input[type="text"],
.inscription-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 10px;
    border: none;
    outline: none;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.85em;
}

.inscription-form button {
    margin-top: 18px;
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    border: none;
    background: #d4a373;
    color: #111;
    font-size: 1.05em;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 700;
}

.inscription-form button:hover {
    background: #f1c27d;
}

.confidentialite,
.age-limit {
    margin-top: 10px;
    text-align: center;
    font-size: 0.85em;
    color: #ccc;
}



.message-succes {
    max-width: 750px;
    margin: 40px auto;
    padding: 25px 30px;
    background: rgba(212, 163, 115, 0.25);
    color: #d4a373;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}

.social-share-home {
    max-width: 850px;
    margin: 45px auto;
    padding: 28px 20px;
    background: rgba(0,0,0,0.45);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

.social-share-home h2 {
    color: #d4a373;
    margin-bottom: 8px;
    font-size: 1.7em;
}

.share-text {
    color: #ccc;
    font-size: .95em;
    margin-bottom: 12px;
}

/* container icônes */
.share-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* boutons ronds */
.share-icons .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    text-decoration: none;
    transition: transform .25s, opacity .25s, box-shadow .25s;
}

/* icônes SVG */
.share-icons .icon svg {
    width: 22px;
    height: 22px;
}

/* couleurs réseaux */
.icon.fb { background:#1877f2; }
.icon.tw { background:#000000; }
.icon.wa { background:#25D366; }
.icon.mail { background:#d4a373; color:#111; }

/* hover élégant */
.share-icons .icon:hover {
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(255,255,255,.2);
    opacity: .9;
}

/* mobile */
@media(max-width:600px){
    .social-share-home {
        margin: 25px 12px;
        padding: 20px 15px;
    }
}

/* Police élégante pour le menu */
.main-menu li a {
    font-family: "Didot", "Playfair Display", serif;
    letter-spacing: 0.5px;
    font-size: 17px;
}

/* Style de base */
.main-menu li a {
    position: relative;
    color: #d4a373;
    text-decoration: none;
    padding: 4px 6px;
    transition: 0.3s ease;
    font-weight: 600;
    opacity: 0.9;
}

/* effet doré subtil permanent */
.main-menu li a {
    text-shadow: 0 0 6px rgba(212,163,115,0.25);
}

/* hover élégant */
.main-menu li a:hover {
    color: #ffd9a3;
    opacity: 1;
    transform: translateY(-1px);
}

/* soulignement fin et sensuel animé */
.main-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 1px;
    width: 0%;
    background: linear-gradient(90deg, transparent, #d4a373, transparent);
    transition: width 0.35s ease;
}

/* underline au hover */
.main-menu li a:hover::after {
    width: 100%;
}

/* effet glow très fin (libertin) */
.main-menu li a:hover {
    text-shadow:
        0 0 6px rgba(212,163,115,0.6),
        0 0 12px rgba(212,163,115,0.3);
}

/* resserrer les liens entre eux */
.main-menu li {
    margin-right: 8px;
}
.main-menu {
    gap: 4px;
}

/* Soulignement doré pour la page active */
.main-menu li.current-menu-item > a::after,
.main-menu li.current_page_item > a::after,
.main-menu li.current-menu-ancestor > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;       /* distance sous le texte */
    transform: translateX(-50%);
    width: 60%;          /* longueur du soulignement */
    height: 2px;         /* épaisseur */
    background: #d4a373; /* doré */
    border-radius: 2px;
}

/* Supprimer le soulignement doré sur mobile */
@media (max-width:768px){
    .main-menu li.current-menu-item > a::after,
    .main-menu li.current_page_item > a::after,
    .main-menu li.current-menu-ancestor > a::after {
        display: none;
    }
}


/* Guide libertinage – version élégante */
/* Guide Libertinage – style CTA Final */
#guide-libertinage {
    max-width: 1100px;
    margin: 60px auto;
    padding: 50px 30px;
    background: rgba(17,17,17,0.95);
    border-radius: 20px;
    color: #f2f2f2;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    font-family: 'Arial', sans-serif;
}

#guide-libertinage h2 {
    font-size: 2.4em;
    color: #d4a373;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

#guide-libertinage p {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 35px;
}

/* Table des matières */
.toc-guide {
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
}

.toc-guide li {
    margin-bottom: 15px;
}

.toc-guide li a {
    color: #d4a373;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding-left: 25px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.toc-guide li a::before {
    content: attr(data-icon);
    position: absolute;
    left: 0;
}

.toc-guide li a:hover {
    color: #ffd9a3;
    transform: translateX(3px);
    text-decoration: underline;
}

/* Articles */
#guide-libertinage article {
    background: rgba(212, 163, 115, 0.08); /* fond léger doré */
    border-radius: 15px;
    padding: 25px 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease; /* transition douce pour le mouvement */
}


#guide-libertinage article:hover {
    #transform: translateY(-5px);
    #box-shadow: 0 15px 35px rgba(212,163,115,0.2);
	transform: translateY(-2px); /* léger décalage vers le haut */
    box-shadow: none;
}

.guide-libertinage a {
    text-decoration: none; /* supprime le soulignement */
    color: #d4a373;       /* couleur dorée cohérente avec le thème */
    transition: color 0.3s ease;
}

.guide-libertinage a:hover {
    color: #f1c27d;       /* légère couleur au hover */
    text-decoration: none; /* s'assure qu'il n'y a toujours pas de soulignement */
}


#guide-libertinage article h3 {
    font-size: 1.4em;
    color: #d4a373;
    margin-bottom: 15px;
    font-weight: 700;
}

#guide-libertinage article p {
    font-size: 1.08em;
    line-height: 1.75;
    color: #f2f2f2;
}

/* Responsive */
@media (max-width: 1024px) {
    #guide-libertinage h2 {
        font-size: 2.1em;
    }
    #guide-libertinage article h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    #guide-libertinage {
        padding: 35px 15px;
    }
}

.related-articles {
    background: rgba(212, 163, 115, 0.08);
    padding: 25px 20px;
    border-radius: 15px;
    margin-top: 40px;
}

.related-articles h3 {
    color: #d4a373;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles ul li {
    margin-bottom: 12px;
}

.related-articles ul li a {
    color: #f2f2f2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.related-articles ul li a:hover {
    color: #ffd9a3;
}

/* Section Lectures recommandées */
.related-pages {
    background: rgba(212, 163, 115, 0.08);
    padding: 25px 20px;
    border-radius: 15px;
    margin-top: 50px;
}

.related-pages h2 {
    font-size: 1.2em;
    color: #d4a373;
    text-align: center;
    margin-bottom: 25px;
}

.related-pages ul {
    list-style: none;
    padding-left: 0;
}

.related-pages li {
    margin-bottom: 12px;
}

.related-pages a {
    color: #f2f2f2;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.related-pages a:hover {
    color: #ffd9a3;
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .guide-libertinage {
        padding: 60px 20px;
    }
    .guide-libertinage article {
        padding: 20px 20px;
    }
    .related-pages {
        padding: 20px 20px;
    }
}

@media (max-width: 768px) {
   
    .related-pages h2 {
        font-size: 1.6em;
    }
}

/* =========================
   MOBILE ONLY : menu sous le logo, hamburger ne bouge pas
   DESKTOP inchangé
========================= */
@media (max-width: 768px) {

  header { position: relative; }

  /* Hamburger : reste à sa place actuelle */
  .menu-toggle{
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 9999;
	padding: 6px 10px;   /* agrandit la zone cliquable */  
   }

  /* Nav ne doit plus être en absolute en mobile (sinon ça casse l'affichage) */
  .main-navigation{
    position: static !important;
    width: 100%;
    display: block;
    margin-top: 10px; /* espace sous le logo */
  }

  /* Menu : sous le logo, aligné à gauche */
  .main-menu{
    display: none;                 /* caché par défaut */
    position: static !important;   /* IMPORTANT : plus en absolute */
    width: 100%;
    flex-direction: column;
    gap: 12px;
    background: rgba(0,0,0,0.9);
    padding: 18px 20px;
    border-radius: 12px;
    box-sizing: border-box;
    margin-top: 12px;
  }

  /* Quand on ouvre */
  .main-menu.active{
    display: flex !important;
  }

  /* Texte plus gros */
  .main-menu li a{
    font-size: 26px !important;
    padding: 12px 0 !important;
	 
  }
}

/* =========================
   SECTION LIENS EXTERNES – HOME
========================= */

.external-link-boost{
  max-width: 850px;
  margin: 45px auto;
  padding: 28px 20px;
  background: rgba(0,0,0,0.45);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

/* Titre */
.external-link-boost h2{
  color: #d4a373;
  margin-bottom: 14px;
  font-size: 1.7em;
  font-weight: 700;
}

/* Liste */
.external-link-boost .external-links{
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

/* Items */
.external-link-boost .external-links li{
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #ccc;
  font-size: 0.98em;
  line-height: 1.7;
}

.external-link-boost .external-links li:first-child{
  border-top: none;
}

/* Liens */
.external-link-boost .external-links a{
  color: #d4a373;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  padding: 0 2px;
  transition: color .25s ease, text-shadow .25s ease, opacity .25s ease;
  text-shadow: 0 0 6px rgba(212,163,115,0.25);
}

/* Soulignement animé */
.external-link-boost .external-links a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1px;
  width: 0%;
  background: linear-gradient(90deg, transparent, #d4a373, transparent);
  transition: width .35s ease;
}

.external-link-boost .external-links a:hover,
.external-link-boost .external-links a:focus{
  color: #ffd9a3;
  opacity: 1;
  text-shadow:
    0 0 6px rgba(212,163,115,0.6),
    0 0 12px rgba(212,163,115,0.3);
}

.external-link-boost .external-links a:hover::after,
.external-link-boost .external-links a:focus::after{
  width: 100%;
}

/* Mobile */
@media(max-width:600px){
  .external-link-boost{
    margin: 25px 12px;
    padding: 20px 15px;
  }

  .external-link-boost h2{
    font-size: 1.5em;
  }

  .external-link-boost .external-links li{
    font-size: 0.95em;
  }
}


/* =========================
   SPACING RESPONSIVE SAFE
========================= */

/* Desktop & global */
section{
  padding: 20px 20px;
}

/* Présentation : toujours centrée */
.presentation{
  max-width: 850px;
  margin: 0 auto;
  padding: 0; /* aucun padding parasite */
}

/* How-to */
.how-to{
  margin: 15px auto;
  padding: 20px 20px;
}

/* Mobile : encore plus compact */
@media (max-width: 768px){
  section{
    padding: 15px 15px;
  }

  .how-to{
    margin: 10px auto;
    padding: 15px 15px;
  }

  .presentation{
    padding: 0;
  }
}
