/*
 Theme Name: TT4 Enfant
 Theme URI: https://votresite.com/
 Description: Thème enfant pour Twenty Twenty-Five.
 Author: Votre Nom
 Author URI: https://votresite.com/
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: tt4-enfant
*/

/* ===========================
    Variables de couleurs globales
   =========================== */
:root {
    /* Couleurs principales en hexadécimal */
    --color-primary: #303030;
    --color-secondary: #505050;
    --color-accent: #007BFF;
    --color-success: #81c784;

    /* Composantes RGB pour les couleurs principales */
    --color-primary-r: 48;
    --color-primary-g: 48;
    --color-primary-b: 48;
    --color-secondary-r: 80;
    --color-secondary-g: 80;
    --color-secondary-b: 80;
    --color-accent-r: 0;
    --color-accent-g: 123;
    --color-accent-b: 255;

    /* Couleurs avec transparence */
    --color-primary-transparent: rgba(var(--color-primary-r), var(--color-primary-g), var(--color-primary-b), 0.5);
    --color-secondary-transparent: rgba(var(--color-secondary-r), var(--color-secondary-g), var(--color-secondary-b), 0.5);
    --color-accent-transparent: rgba(var(--color-accent-r), var(--color-accent-g), var(--color-accent-b), 0.5);

    /* Couleurs de fond principales (pour thème sombre) */
    --color-background-dark: #222;
    --color-background-medium-dark: var(--color-primary);
    --color-background-light-overlay: rgba(255, 255, 255, 0.7);
    --color-background-semi-transparent: rgba(0, 0, 0, 0.7);
    --color-background-semi-transparent-light: rgba(0, 0, 0, 0.4);
    --color-background-semi-transparent-lighter: rgba(0, 0, 0, 0.6);
    --color-background-card-light: #fff;
    --color-background-default-light: #f9f9f9;

    /* Couleurs de bordure */
    --color-border-dark: #444;
    --color-border-medium: #555;
    --color-border-light: #ddd;
    --color-border-secondary: #666;

    /* Couleurs de texte */
    --color-text-light: #fff;
    --color-text-medium-light: #eee;
    --color-text-medium-gray: #ccc;
    --color-text-dark: #333;
    --color-text-medium-dark: #2c3e50;
    --color-text-soft-gray: #888;
    --color-text-bold-dark: #222;
    --color-text-dark-gray: #555;

    /* Couleurs d'accentuation (Bleu) */
    --color-accent-blue: #0099ff;
    --color-accent-blue-darker: var(--color-accent);
    --color-accent-blue-darkest: #0056b3;
    --color-accent-blue-active: #005680;

    /* Couleurs d'ombre */
    --color-shadow-default: rgba(0, 0, 0, 0.2);
    --color-shadow-card: rgba(0, 0, 0, 0.1);
    --color-shadow-carousel-primary: rgba(0, 0, 0, 0.4);
    --color-shadow-carousel-secondary: rgba(0, 0, 0, 0.2);
    --color-shadow-carousel-hover-primary: rgba(0, 0, 0, 0.5);
    --color-shadow-carousel-hover-secondary: rgba(0, 0, 0, 0.3);

    /* Autres couleurs spécifiques */
    --color-pagination-bullet: #999;
    --color-accent-price: #ff9aa2;

    --wp--preset--font-size--small: clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.196), 1.25rem);
    /* taille 18px→20px */
    --wp--preset--font-size--medium: clamp(1.25rem, 1.25rem + ((1vw - 0.2rem) * 0.25), 1.375rem);
    /* taille 20px→22px */
}

/*
 * Google Fonts:
 * J'ai remplacé Poppins par "Playfair Display" pour les titres.
 * Cette police serif est à la fois élégante et moderne, souvent utilisée dans l'édition et le luxe.
 * Le corps de texte reste en "Lora".
 * N'oubliez pas d'inclure ces polices dans votre HTML :
 * <link rel="preconnect" href="https://fonts.googleapis.com">
 * <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 * <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lora:wght@400;700&display=swap" rel="stylesheet">
*/

body {
    font-family: 'Merriweather', serif;
    color: var(--color-text-medium-light);
    background-color: var(--color-background-dark);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: 0.5em;
}


h1 {
    font-size: 3.2rem;
    font-weight: 400;
    font-style: italic;
}

h2 {
    font-size: 2.2rem;
    font-style: italic;
}

h3 {
    font-size: 1.9rem;
}

h4 {
    font-size: 1.6rem;
}

h5 {
    font-size: 1.4rem;
}

h6 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Styles pour les paragraphes */
p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-medium-light);
}

/* Styles pour les liens */
a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-blue-darker);
    text-decoration: underline;
}

/* Styles pour les listes */
ul,
ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5rem;
}

/* Styles pour les éléments de formulaire (input, textarea) */
input,
textarea {
    font-family: 'Lora', serif;
    color: var(--color-text-light);
    background-color: var(--color-background-medium-dark);
    border: 1px solid var(--color-border-medium);
    border-radius: 4px;
    padding: 10px;
}

/* Styles pour les boutons */
button,
.button {
    font-family: 'Playfair Display', serif;
    /* Police de titre pour les boutons */
    font-weight: 400;
    background-color: var(--color-accent-blue);
    color: var(--color-text-light);
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
.button:hover {
    background-color: var(--color-accent-blue-darker);
    color: var(--color-text-medium-light);
}

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



/* HEADER OVERLOAD */
.is-layout-flex {
    flex-wrap: nowrap;
}

/*
   * Styles pour le Sélecteur de Langue Déroulant
   */

/* Conteneur principal du menu déroulant */
.tt4-lang-switcher-dropdown {
    position: relative;
    display: inline-block;
    font-size: 0.9em;
    margin-left: 15px;
    z-index: 100;
}

/* Bouton qui déclenche le menu déroulant (la langue active) */
.tt4-lang-switcher-dropdown .lang-dropdown-toggle {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border-medium);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.tt4-lang-switcher-dropdown .lang-dropdown-toggle:hover {
    background-color: var(--color-background-medium-dark);
    border-color: #777;
    /* Garde cette valeur si spécifique ou ajoutez une variable si unifiée */
}

/* Flèche du menu déroulant */
.tt4-lang-switcher-dropdown .dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-text-light);
    margin-left: 8px;
    transition: transform 0.2s ease-in-out;
}

/* Rotation de la flèche quand le menu est ouvert */
.tt4-lang-switcher-dropdown .lang-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Le menu déroulant lui-même */
.tt4-lang-switcher-dropdown .lang-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-background-dark);
    border: 1px solid var(--color-border-dark);
    border-radius: 6px;
    box-shadow: 0px 8px 16px var(--color-shadow-carousel-hover-primary);
    min-width: 160px;
    max-height: 250px;
    overflow-y: auto;

    /* NOUVELLES RÈGLES DE CACHAGE/AFFICHAGE */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0.2s ease-in-out;
    pointer-events: none;
    /* Empêche les clics quand le menu est caché */
}

/* Afficher le menu quand la classe 'is-open' est présente */
.tt4-lang-switcher-dropdown .lang-dropdown-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    /* Permet les clics quand le menu est ouvert */
}


/* Éléments de la liste du menu déroulant */
.tt4-lang-switcher-dropdown .lang-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.tt4-lang-switcher-dropdown .lang-dropdown-menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-medium-light);
    padding: 8px 12px;
    transition: background-color 0.2s ease-in-out;
    border-radius: 4px;
}

.tt4-lang-switcher-dropdown .lang-dropdown-menu a:hover {
    background-color: var(--color-border-dark);
    /* Utilise la couleur de bordure foncée comme fond au survol */
    color: var(--color-text-light);
}

/* Langue active dans le menu déroulant */
.tt4-lang-switcher-dropdown .lang-dropdown-menu li.active a {
    background-color: var(--color-accent-blue-active);
    color: var(--color-text-light);
    font-weight: bold;
}

/* Styles pour les emojis de drapeaux */
.lang-emoji {
    font-size: 1.5em;
    line-height: 1;
    margin-right: 8px;
}

/* Optionnel : Masquer le nom de la langue sur petits écrans si le bouton est trop grand */
@media (max-width: 768px) {
    .tt4-lang-switcher-dropdown .lang-name {
        display: none;
    }

    .tt4-lang-switcher-dropdown .lang-dropdown-toggle {
        padding: 8px;
    }

    .tt4-lang-switcher-dropdown .dropdown-arrow {
        margin-left: 0;
    }
}



/* ===========================
      Styles généraux pour la section de mission
     =========================== */

.site-mission-section {
    padding: 40px 20px;
    color: var(--color-text-dark);
    /* Adapté au fond clair du voile */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    border-radius: 10px;
    ;

    /* Image de fond */
    background: url('/wp-content/uploads/2025/07/fondLivreHome.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    z-index: 1;
}

/* Pseudo-élément pour le voile laiteux */
.site-mission-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-background-semi-transparent-light);
    background-image: linear-gradient(to bottom,
            var(--color-background-semi-transparent-light),
            var(--color-background-light-overlay));
    z-index: -1;
}

/* Assurez-vous que le contenu de la section a un z-index plus élevé que le pseudo-élément */
.site-mission-section .container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1300px;
}

/* Ajustements pour la couleur du texte si le voile le rend moins lisible */
.site-mission-section h2,
.site-mission-section h3,
.site-mission-section p,
.site-mission-section p strong {
    color: var(--color-text-light);
}

.site-mission-section .section-title {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 1.5em;
}

.site-mission-section .mission-intro,
.site-mission-section .mission-conclusion {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.site-mission-section p,
.site-mission-section p strong {
    font-size: 1em;
}

.site-mission-section p.mission-conclusion {
    color: var(--color-text-dark);
}

/* Styles pour la grille/flexbox des points clés */
.mission-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}


.mission-point-card {
    background-color: var(--color-background-card-light);
    /*background-color: hsl(from var(--color-background-medium-dark) h s l / 0.8);*/
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px var(--color-shadow-card);
    text-align: justify;
    transition: transform 0.3s ease;
}

.mission-point-card:hover {
    transform: translateY(-5px);
}

.mission-point-card .point-title {
    color: var(--color-accent-blue);
    /* Uniformisé avec le bleu d'accentuation */
    font-size: 1.1em;
    margin-bottom: 15px;
}

.mission-point-card p,
.mission-point-card p strong {
    color: var(--color-text-dark-gray);
}

/* Styles pour les balises strong/gras à l'intérieur des paragraphes */
.site-mission-section strong {
    font-weight: bold;
    color: var(--color-text-bold-dark);
}

/* Médias queries pour la réactivité */
@media (max-width: 768px) {
    .site-mission-section .section-title {
        font-size: 1.1em;
    }

    .mission-points-grid {
        grid-template-columns: 1fr;
    }

    .mission-point-card {
        padding: 20px;
    }

    .mission-point-card .point-title {
        font-size: 1.1em;
    }
}

/* ===========================
      Styles pour l'Index déroulant 
     =========================== */

.index_tab {
    border: 1px solid var(--color-border-dark);
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--color-background-dark);
    border-radius: 5px;
    box-shadow: 0 2px 5px var(--color-shadow-default);
}

.index_tab h2.index-toggle {
    cursor: pointer;
    padding: 10px 0;
    margin: 0;
    font-size: 1.5em;
    color: var(--color-text-medium-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.index_tab h2.index-toggle:hover {
    color: var(--color-accent-blue);
}

.index_tab .toggle-icon {
    transition: transform 0.3s ease;
}

.index_tab .index-content.active .toggle-icon {
    transform: rotate(180deg);
}

.index_tab .index-content {
    padding-top: 10px;
    border-top: 1px solid var(--color-border-secondary);
    margin-top: 10px;
    display: none;
}

/* Styles pour la liste de l'index */
.index_tab .index-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.index_tab .index-content ul li {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 0.95em;
    padding-left: 15px;
    position: relative;
    color: var(--color-text-medium-gray);
}

.index_tab .index-content ul li:hover {
    color: var(--color-accent-blue);
}

/* Ajout d'une petite puce stylisée (optionnel) */
.index_tab .index-content ul li::before {
    content: '•';
    color: var(--color-accent-blue);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* ===========================
      Styles pour le Slicer de Collection Thématique (Générique)
     =========================== */

.tt4-theme-slider-section {
    padding: 60px 0;
    background-color: var(--color-background-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

.tt4-theme-slider-section.theme-egypte {
    background: url('/wp-content/uploads/2025/07/fondThemeEgypte.png') fixed left bottom no-repeat;
}

.tt4-theme-slider-section.theme-bereshit {
    margin-top: 50px;
    background: url('/wp-content/uploads/2025/08/nigmatique-et-tres-belle-princesse-dgypte-mystre-pope.jpg') left top no-repeat;
    background-size: cover;
}

@font-face {
    font-family: 'Uni Sans';
    src: url('https://res.cloudinary.com/muhammederdem/raw/upload/v1536168547/unisans-font/UniSansHeavyCAPS.woff2') format('woff2'),
        url('https://res.cloudinary.com/muhammederdem/raw/upload/v1536168547/unisans-font/UniSansHeavyCAPS.woff') format('woff'),
        url('https://res.cloudinary.com/muhammederdem/raw/upload/v1536168548/unisans-font/UniSansHeavyCAPS.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

.theme-egypte .tt4-theme-slider-title,
.theme-bereshit .tt4-theme-slider-title {
    writing-mode: sideways-lr;
    /* Écrit le texte verticalement */
    /* text-orientation: upright; Garde les caractères droits */
    font-family: 'Uni Sans', sans-serif;
    /* Utilise la police Uni Sans */
    font-weight: 900;
    /* Poids de la police */
    display: inline-block;
    padding: 20px;
    /* Augmente l'espace intérieur pour un cadre plus grand */
    padding-right: 400px;
    /* Augmente l'espace intérieur pour un cadre plus grand */
    background-color: rgba(0, 0, 0, 0.5);
    /* Fond semi-transparent */
    color: white;
    /* Couleur du texte */
    border: 1px solid #0073aa;
    /* Bordure fine avec couleur */
    border-radius: 10px;
    /* Coins arrondis */
    margin: 20px 0;
    /* Marge autour du titre */
    height: 300px;
    /* Ajuste la hauteur pour s'assurer qu'il est plus grand */
    line-height: 1.8;
    /* Espacement entre les lignes pour une meilleure lisibilité */
    text-align: center;
    /* Centre le texte */
    position: absolute;
    left: 5%;
    height: 600px;
    letter-spacing: 3px;
}

.tt4-theme-slider-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

/* --- Section de la carte explicative (à gauche) --- */
.tt4-theme-slider-section .product-info {
    flex: 1;
    padding: 30px;
    background-color: var(--color-background-medium-dark);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--color-shadow-default);
    color: var(--color-text-medium-light);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    margin-right: 40px;
}

.tt4-theme-slider-section .product-info__item {
    position: absolute;
    top: 50%;
    left: 30px;
    right: 30px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    text-align: left;
}

.tt4-theme-slider-section .product-info__item.active {
    opacity: 1;
    pointer-events: auto;
}

.tt4-theme-slider-section .product-info__item h2 {
    font-size: 1.3em;
    color: var(--color-accent-blue);
    margin-bottom: 0px;
}

.tt4-theme-slider-section .product-info__item .subtitle {
    font-size: 1.1em;
    color: var(--color-text-soft-gray);
    margin-bottom: 15px;
}

.tt4-theme-slider-section .product-info__item .description {
    color: var(--color-text-medium-gray);
    line-height: 1.2;
    margin-bottom: 15px;
}

.tt4-theme-slider-section .product-info__item .view-details-btn {
    display: inline-block;
    background-color: var(--color-accent-blue-darker);
    color: var(--color-text-light);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.tt4-theme-slider-section .product-info__item .view-details-btn:hover {
    background-color: var(--color-accent-blue-darkest);
}

/* --- Section du Slider d'images (à droite) --- */
.tt4-book-image-slider {
    flex: 1;
    width: 50%;
    position: relative;
    height: 400px;
    /* Hauteur fixe pour les slides */
    overflow: hidden;
}

#tt4-book-image-slider.autoplay {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#tt4-book-image-slider.paused {
    opacity: 0.9;
    /* Légère baisse d'opacité pour indiquer la pause */
}

.tt4-book-image-slider__item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Assure que l'image est bien contenue dans son conteneur */
    border-radius: 8px;
    box-shadow: 0 10px 20px var(--color-shadow-default);
}

.tt4-book-image-slider__item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.tt4-book-image-slider__item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    pointer-events: none;
}

.tt4-book-image-slider__item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.tt4-book-image-slider__item.next {
    transform: translateX(-100%);
    opacity: 0;
}

.tt4-book-image-slider__item.prev {
    transform: translateX(100%);
    opacity: 0;
}


/* --- Flèches de navigation personnalisées (boutons) --- */
.tt4-book-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0);
    color: var(--color-text-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-size: 1.8em;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.tt4-book-slider-nav.prev {
    left: -25px;
}

.tt4-book-slider-nav.next {
    right: -25px;
}

.tt4-book-slider-nav:hover {
    background-color: var(--color-accent-blue);
    box-shadow: 0 0 15px var(--color-accent-blue);
}

.tt4-book-slider-nav.prev::before {
    content: '❮';
}

.tt4-book-slider-nav.next::before {
    content: '❯';
}

.tt4-book-slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--color-background-semi-transparent-light) !important;
}


/* CORRECTIONS MOBILE SEULEMENT */

@media (max-width: 992px) {
    .tt4-theme-slider-section {
        padding: 30px 0;
        min-height: auto;
        position: relative;
        overflow: visible;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Correction du titre */
    .theme-egypte .tt4-theme-slider-title,
    .theme-bereshit .tt4-theme-slider-title {
        writing-mode: horizontal-tb;
        position: relative;
        left: auto;
        top: auto;
        height: auto;
        width: 100%;
        max-width: 500px;
        padding: 20px;
        margin: 0 auto 10px auto;
        letter-spacing: 2px;
        text-align: center;
        z-index: 1;
        box-sizing: border-box;
    }

    /* Réorganisation du conteneur principal */
    .tt4-theme-slider-container {
        flex-direction: column;
        width: 95%;
        max-width: 600px;
        margin: 0 auto;
        gap: 10px;
    }

    /* Correction de la carte produit */
    .tt4-theme-slider-section .product-info {
        margin: 0;
        width: 100%;
        min-height: 350px;
        position: relative;
        height: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        order: 1;
        /* Place en dessous du slider */
    }

    /* Correction des éléments d'info - carrousel fonctionnel */
    .tt4-theme-slider-section .product-info__item {
        position: absolute;
        top: 50%;
        left: 25px;
        right: 25px;
        transform: translateY(-50%);
        opacity: 0;
        pointer-events: none;
        padding: 15px;
        transition: opacity 0.5s ease;
    }

    .tt4-theme-slider-section .product-info__item.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Ajustement des styles de texte pour mobile */
    .tt4-theme-slider-section .product-info__item h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .tt4-theme-slider-section .product-info__item .subtitle {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .tt4-theme-slider-section .product-info__item .description {
        font-size: 0.95em;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    /* Correction du slider de livres - taille augmentée */
    .tt4-book-image-slider {
        width: 100%;
        height: 350px;
        min-height: 350px;
        position: relative;
        top: auto !important;
        margin: 0;
        order: 0;
        /* Place au-dessus de l'info */
    }

    /* Agrandissement significatif de l'image du livre */
    .tt4-book-image-slider__item img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        min-height: 300px;
        object-fit: contain;
        transform-origin: center;
    }

    .product-info__item.active .subtitle {
        display: none;
    }

    .product-info__item.active .description {
        max-height: 4.5em;
        overflow: hidden;
        position: relative;
        line-height: 1.5em;
        text-align: justify;
    }

    /* Solution approximative avec dégradé seulement */
    .product-info__item.active .description::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 3em;
        height: 1.5em;
        background: linear-gradient(to right, transparent, var(--color-background-medium-dark) 70%);
    }


    /* Conteneur pour améliorer l'affichage */
    .tt4-book-image-slider__item a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Correction des boutons de navigation */
    .tt4-book-slider-nav {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    .tt4-book-slider-nav.prev {
        left: 5px;
        right: auto;
    }

    .tt4-book-slider-nav.next {
        right: 5px;
        left: auto;
    }

    /* Ajustement de la hauteur de la section */
    .tt4-theme-slider-section.theme-egypte {
        min-height: 950px;
        /* Hauteur suffisante pour tout le contenu */
    }
}




/* ===========================
      Styles pour le message pas de résultat article
     =========================== */


.no-results-message {
    background-color: var(--color-secondary-transparent);
    color: var(--color-text-light);
    padding: 1.5rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--color-shadow-default);
    max-width: 800px;
    margin: 1.5rem auto;
    text-align: center;
}

.no-results-message h2 {
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
}

.no-results-message p {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text-medium-light);
    line-height: 1.6;
}

.no-results-message a {
    color: var(--color-accent-blue);
    text-decoration: underline;
}

.no-results-message a:hover {
    color: var(--color-accent-blue-darkest);
}

/* RTL pour arabe */
.no-results-message.rtl {
    direction: rtl;
    text-align: center;
}

.no-results-message.rtl h2,
.no-results-message.rtl p {
    font-family: 'Amiri', serif;
    /* Optionnel pour une meilleure lisibilité */
}




/* ===========================
      Styles Home
     =========================== */

.articles-list h2,
.newsletter-form h2 {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg {
    color: var(--color-accent);
}

.privacy-policy-container {
    font-family: Arial, sans-serif;
    color: var(--color-primary);
    line-height: 1.6;
    padding: 20px;
}

.privacy-policy-box {
    background-color: var(--color-background-light-overlay);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.privacy-policy-box h1,
.privacy-policy-box h2,
.privacy-policy-box h3,
.privacy-policy-box a {
    text-align: center;
    color: var(--color-accent);
    margin-bottom: 25px;
}

.privacy-policy-box h4 {
    color: var(--color-accent-blue-darkest);
    margin-top: 20px;
}

.privacy-policy-box p {
    margin-bottom: 15px;
    color: var(--color-primary);
}

.acroche_first_page h1,
.acroche_first_page p {
    text-align: center;
}

.acroche_first_page p {
    font-size: 1.3em;
}

/* Conteneur principal */
.wp-block-post-featured-image {
    overflow: hidden;
    position: relative;
}

/* Image avec effet de zoom */
.wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
    object-fit: cover;
}

/* Effet de zoom au survol */
.wp-block-post-featured-image:hover img {
    transform: scale(1.051);
}

.post-navigation-link-next,
.post-navigation-link-previous {
    display: none;
}



/* ===================
formulaire newsletter 
====================== */
.tnp.tnp-subscription .tnp-field-profile label {
    display: none;
}

/* Styles uniquement pour desktop (pas mobile) */
@media (min-width: 769px) {
    .tnp.tnp-subscription {
        background: var(--color-border-dark);
        border: 1px solid var(--color-border-medium);
        border-radius: 12px;
        padding: 24px;
        max-width: 500px;
        margin: 0 auto;
        box-shadow: 0 4px 20px var(--color-shadow-default);
        backdrop-filter: blur(10px);
    }

    /* Style des labels */
    .tnp.tnp-subscription label {
        color: var(--color-text-medium-light);
        font-weight: 500;
        display: block;
        margin-bottom: 0;
    }

    /* Style uniformisé pour les champs de saisie et select */
    .tnp.tnp-subscription input[type="email"],
    .tnp.tnp-subscription input[type="text"],
    .tnp.tnp-subscription select.tnp-profile {
        width: 100%;
        padding: 12px 16px;
        background: var(--color-background-semi-transparent-light);
        border: 1px solid var(--color-border-secondary);
        border-radius: 8px;
        color: var(--color-text-light);
        margin-bottom: 16px;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    .tnp.tnp-subscription select.tnp-profile {
        appearance: none;
        /* Supprime le style natif du select */
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 40px;
        font-size: 1rem;
    }

    .tnp.tnp-subscription input[type="email"]:focus,
    .tnp.tnp-subscription input[type="text"]:focus,
    .tnp.tnp-subscription select.tnp-profile:focus {
        outline: none;
        border-color: var(--color-accent-blue);
        box-shadow: 0 0 0 2px var(--color-accent-transparent);
    }

    /* Placeholder */
    .tnp.tnp-subscription input::placeholder {
        color: var(--color-text-soft-gray);
    }

    /* Option dans le select */
    .tnp.tnp-subscription select.tnp-profile option {
        background: var(--color-background-medium-dark);
        /* #303030 */
        color: var(--color-text-light);
        /* #fff */
    }

    /* Bouton d'inscription */
    .tnp.tnp-subscription input[type="submit"] {
        background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent));
        color: var(--color-text-light);
        border: none;
        border-radius: 8px;
        padding: 12px 24px;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
        box-sizing: border-box;
    }

    .tnp.tnp-subscription input[type="submit"]:hover {
        background: linear-gradient(135deg, var(--color-accent-blue-darker), var(--color-accent-blue-darkest));
        transform: translateY(-2px);
        box-shadow: 0 4px 12px var(--color-shadow-carousel-secondary);
    }

    .tnp.tnp-subscription input[type="submit"]:active {
        transform: translateY(0);
    }

    /* Message de confirmation/erreur */
    .tnp.tnp-subscription .tnp-message {
        color: var(--color-text-medium-gray);
        text-align: center;
        margin-top: 16px;
    }

    .tnp.tnp-subscription .tnp-message.tnp-success {
        color: var(--color-success);
    }

    .tnp.tnp-subscription .tnp-message.tnp-error {
        color: var(--color-accent-price);
    }

    /* Checkbox (si présente) */
    .tnp.tnp-subscription .tnp-privacy-field checkbox {
        margin: 16px 0;
    }

    .tnp.tnp-subscription .tnp-privacy-field label {
        color: var(--color-text-medium-gray);
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .tnp.tnp-subscription input[type="checkbox"] {
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid var(--color-border-secondary);
        border-radius: 4px;
        background: var(--color-background-semi-transparent-light);
        position: relative;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .tnp.tnp-subscription input[type="checkbox"]:checked {
        background: var(--color-accent-blue);
        border-color: var(--color-accent-blue);
    }

    .tnp.tnp-subscription input[type="checkbox"]:checked::after {
        content: '';
        position: absolute;
        left: 5px;
        top: 1px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    .tnp.tnp-subscription input[type="checkbox"]:focus {
        outline: none;
        box-shadow: 0 0 0 2px var(--color-accent-transparent);
    }

    .tnp.tnp-subscription input[type="checkbox"] {
        accent-color: var(--color-accent-blue);
    }
}

/* ==================
woocommerce 
box panier prix  
=====================*/
/* pour invisibiler les description des livres */
.schema-book {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    display: none;
}


.wc-block-components-sidebar.wc-block-cart__sidebar,
.wc-block-components-sidebar-layout.wc-block-checkout,
.wc-block-components-sidebar.wc-block-checkout__sidebar,
.wc-block-components-sidebar-layout.wc-block-cart {
    background: var(--color-background-semi-transparent);
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--color-shadow-default);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}

.wc-block-components-sidebar.wc-block-cart__sidebar,
.wc-block-components-sidebar.wc-block-checkout__sidebar {
    background: var(--color-border-dark);
}

a.wc-block-components-button {
    text-decoration: none;
}

.wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
    padding: 12px 12px;
}

:root :where(.wp-element-button, .wp-block-button__link) {
    padding: 3px;
}

.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button,
.single_add_to_cart_button {
    padding: 7px;
    ;
}

li.wc-block-product,
li.wc-block-grid__product,
li.product {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    transition: all 1s ease-in-out;
    overflow: hidden;
}

li.wc-block-product:hover,
li.wc-block-grid__product:hover {
    background: var(--color-border-dark);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px var(--color-shadow-carousel-hover-primary);
    backdrop-filter: blur(10px);
    transform: scale(1.05);
}

li.wc-block-product::before,
li.wc-block-grid__product::before {
    position: absolute;
    top: 0;
    left: -85%;
    z-index: 2;
    opacity: 0;
    display: none;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .3) 100%);
    transform: skewX(-25deg);
}

li.wc-block-product:hover::before,
li.wc-block-grid__product:hover::before {
    display: block;
    animation: shine .75s;
    animation-delay: 0.1s;
}

@keyframes shine {
    100% {
        left: 125%;
        opacity: 1;
    }
}

li.wc-block-product>*,
li.wc-block-grid__product>* {
    flex-shrink: 0;
    /* Empêche les éléments de rétrécir */
}

li.wc-block-product>div.wc-block-components-product-button,
li.wc-block-product>div.wp-block-button {
    margin-top: auto;
    /* Pousse le bouton vers le bas */
}

li.wc-block-grid__product :where(.wp-element-button, .wp-block-button__link) {
    padding: 10px;
}

:where(.admin-bar) :where(.wc-block-product-gallery-dialog__content),
:where(.wc-block-product-gallery-dialog__images) {
    background: var(--color-primary);
}

/* ===== RESET ET STRUCTURE DE BASE ===== */
.woocommerce {
    display: block;
    width: 100%;
}

body main div.woocommerce.wc-block-catalog-sorting {
    display: flex;
    justify-content: flex-end;

}

body main div.woocommerce.wc-block-catalog-sorting .woocommerce-ordering {
    margin: 0;
}

/* ===== MENU DE NAVIGATION HORIZONTAL ===== */
body main div.woocommerce {
    max-width: 2000px !important;
}

body .woocommerce nav.woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin: 0 0 2rem !important;
    padding: 0 !important;
    background-color: var(--color-background-medium-dark) !important;
    border-bottom: 1px solid var(--color-border-dark) !important;
    clear: both;
}

body .woocommerce nav.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
}

body .woocommerce nav.woocommerce-MyAccount-navigation li {
    float: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

body .woocommerce nav.woocommerce-MyAccount-navigation li a {
    display: block !important;
    padding: 12px 20px !important;
    color: var(--color-text-medium-light) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

body .woocommerce nav.woocommerce-MyAccount-navigation li a:hover,
body .woocommerce nav.woocommerce-MyAccount-navigation li.is-active a {
    color: var(--color-accent) !important;
    background-color: var(--color-background-semi-transparent-light) !important;
}

/* ===== CONTENU PRINCIPAL ===== */
.woocommerce-MyAccount-content {
    float: none;
    width: 100% !important;
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: var(--color-background-medium-dark);
    color: var(--color-text-light);
    border-radius: 4px;
    box-shadow: 0 2px 4px var(--color-shadow-card);
    overflow-x: auto;
    box-sizing: border-box;
}

.woocommerce-MyAccount-content h2 {
    color: var(--color-text-light);
    font-size: var(--wp--preset--font-size--medium);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border-medium);
    padding-bottom: 0.5rem;
}

.woocommerce-MyAccount-content p {
    color: var(--color-text-medium-light);
    margin-bottom: 1.5rem;
}

.woocommerce-MyAccount-content mark {
    background-color: var(--color-accent-transparent);
    color: var(--color-text-light);
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
}

.woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}

/* ===== TABLEAUX ===== */
.woocommerce-MyAccount-content table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: var(--color-background-dark);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--color-shadow-card);
}

.woocommerce-MyAccount-content th,
.woocommerce-MyAccount-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border-dark);
    white-space: normal;
    word-break: break-word;
}

.woocommerce-MyAccount-content th {
    background-color: var(--color-background-semi-transparent);
    color: var(--color-text-light);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.woocommerce-MyAccount-content td {
    color: var(--color-text-medium-light);
}

.woocommerce-MyAccount-content tr:hover {
    background-color: var(--color-background-semi-transparent-light);
}

/* Colonnes spécifiques pour les tableaux de commande */
.woocommerce-MyAccount-content table.woocommerce-table--order-details th:last-child,
.woocommerce-MyAccount-content table.woocommerce-table--order-details td:last-child {
    text-align: right;
    width: 15%;
    white-space: nowrap;
}

/* ===== BOUTONS ===== */
.woocommerce-MyAccount-downloads-file.button {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.woocommerce-MyAccount-downloads-file.button:hover {
    background-color: var(--color-accent-blue-darkest);
}

/* ===== SECTIONS D'ADRESSES ===== */
.woocommerce-customer-details {
    margin-top: 2rem;
}

.woocommerce-columns--2 {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.woocommerce-column {
    flex: 1;
    padding: 0 1rem;
}

.woocommerce-column h2 {
    font-size: var(--wp--preset--font-size--medium);
    margin-bottom: 1rem;
}

.woocommerce-column address {
    color: var(--color-text-medium-light);
    line-height: 1.6;
}


/*  commande terminée */
/* ===== STYLE POUR LA PAGE DE CONFIRMATION DE COMMANDE ===== */
/* Conteneur principal */
main#wp--skip-link--target {
    max-width: 2000px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-background-medium-dark);
    color: var(--color-text-light);
    border-radius: 4px;
    box-shadow: 0 2px 4px var(--color-shadow-card);
}

/* Titre principal */
.wc-block-order-confirmation-status h1 {
    color: var(--color-text-light);
    font-size: var(--wp--preset--font-size--medium);
    margin-bottom: 1.5rem;
}

/* Liste des détails de la commande */
.wc-block-order-confirmation-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    background-color: var(--color-background-dark);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px var(--color-shadow-card);
}

.wc-block-order-confirmation-summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-dark);
}

.wc-block-order-confirmation-summary-list li:last-child {
    border-bottom: none;
}

.wc-block-order-confirmation-summary-list-item__key {
    font-weight: 500;
    color: var(--color-text-medium-light);
}

.wc-block-order-confirmation-summary-list-item__value {
    color: var(--color-text-light);
}

/* Tableaux */
.wc-block-order-confirmation-totals__table,
.wc-block-order-confirmation-downloads__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: var(--color-background-dark);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--color-shadow-card);
}

.wc-block-order-confirmation-totals__table th,
.wc-block-order-confirmation-totals__table td,
.wc-block-order-confirmation-downloads__table th,
.wc-block-order-confirmation-downloads__table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border-dark);
    white-space: normal;
    word-break: break-word;
}

.wc-block-order-confirmation-totals__table th,
.wc-block-order-confirmation-downloads__table th {
    background-color: var(--color-background-semi-transparent);
    color: var(--color-text-light);
    font-weight: 600;
}

.wc-block-order-confirmation-totals__table td,
.wc-block-order-confirmation-downloads__table td {
    color: var(--color-text-medium-light);
}

.wc-block-order-confirmation-totals__table tr:hover,
.wc-block-order-confirmation-downloads__table tr:hover {
    background-color: var(--color-background-semi-transparent-light);
}

/* Alignement à droite pour la colonne Total */
.wc-block-order-confirmation-totals__total,
.wc-block-order-confirmation-downloads__table td:last-child {
    text-align: right;
}

/* Bouton "Commander une nouvelle fois" */
.order-again {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.order-again .button {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.order-again .button:hover {
    background-color: var(--color-accent-blue-darkest);
}

/* Adresses */
.wc-block-order-confirmation-billing-address address {
    color: var(--color-text-medium-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.wc-block-order-confirmation-billing-address .woocommerce-customer-details--phone {
    color: var(--color-text-medium-light);
}

/* Conteneur des colonnes d'adresses */
.wc-block-order-confirmation-address-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.wc-block-order-confirmation-address-wrapper .wp-block-column {
    flex: 1;
    padding: 0 1rem;
}

/* prodis simpl categorie */
.wp-block-woocommerce-single-product .taxonomy-product_cat {
    display: none;
}

.wc-block-components-sidebar-layout {
    display: flex;
    flex-direction: row; /* Valeur par défaut */
}

/* Solution de repli avec media query */
@media (max-width: 699px) {
    .wc-block-components-sidebar-layout {
        flex-direction: column;
        margin: 0 auto 16px;
    }
}

@container (max-width: 699px) {
    .wc-block-components-sidebar-layout {
        flex-direction: column;
        -webkit-flex-direction: column; /* Préfixe pour Webkit */
        margin: 0 auto 16px;
    }
}