/*
 Theme Name:   Astra Child
 Description:  Thème enfant pour Scribe et Légendes
 Author:       Mathieu rouault
 Template:     astra
 Version:      1.0.0
*/







/*PAGE ACCUEUIL CSS*/

/*enlever le mauvais scroll*/
html, body {
    scroll-behavior: auto !important;
	
}



.elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}


/* CORRECTION pour le flex du conteneur principal */
#page,
.hfeed.site {
    display: flex !important;
    padding: 0 !important;
    margin: 0 !important;
}

#page {
    min-height: 0 !important;
    padding-top: 0 !important;
}

/* fond tout site sauf certaines pages*/

#page {	
    background-image: url('https://scribe-et-legendes.fr/wp-content/uploads/2025/12/fond_long_compress-scaled.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Cacher fond et header sur page de maintenance */
/* Supprimer le fond global */
.page-id-499 #page {
    background: none !important;
}

/* Masquer header et footer */
.page-id-499 #masthead,
.page-id-499 footer {
    display: none !important;
}

.page-id-499 .xoo-wsc-markup {
	display: none !important;
}


/* Cacher fond et header sur page c'est fait */
/* Supprimer le fond global */
.page-id-450 #page, .page-id-468 #page {
    background: none !important;
}

/* Masquer header et footer */
.page-id-450 #masthead,
.page-id-450 footer,.page-id-468 #masthead,
.page-id-468 footer {
    display: none !important;
}

.page-id-450 .xoo-wsc-markup, .page-id-468 .xoo-wsc-markup {
	display: none !important;
}


.entry-header  {
    display: none !important;
}

/* ===== PERSONNALISATION DE LA SCROLLBAR ===== */

/* 1. Zone de la barre (Fixe pour éviter les sauts) */
::-webkit-scrollbar-button {
    display: none !important;
}

/* 2. On colorise le fond de la zone de scroll pour éviter tout résidu blanc */
::-webkit-scrollbar {
    background-color: #12172E !important; /* Ton bleu nuit */
	width: 12px !important;
	}

/* 3. On nettoie l'angle mort (si une barre horizontale apparaît un jour) */
::-webkit-scrollbar-corner {
    background-color: #12172E !important;
	
}

/* 4. On s'assure que le track occupe tout l'espace sans laisser de vide */
::-webkit-scrollbar-track {
    background: #12172E !important;
    margin: 0 !important; /* On remet à 0 pour boucher les coins */
}

/* 2. Le fond (Track) */
::-webkit-scrollbar-track {
    background: #12172E !important; 
    margin: 2px !important; 
	border-radius: 20px !important;
}

/* 3. Le curseur (Thumb) - Version FINE par défaut */
::-webkit-scrollbar-thumb {
    background: linear-gradient(
        -45deg,
        #6b2812 0%, 
        #ad6e29 20%, 
        #e9ae38 43%, 
        #f0f1b3 50%, 
        #e9ae38 57%,  
        #ad6e29 80%, 
        #6b2812 100%
    ) !important;
    
    /* L'ASTUCE : On crée une bordure transparente épaisse qui réduit la taille visible */
    border: 4px solid transparent !important;
    background-clip: padding-box !important; /* Force le gradient à rester dans le cadre réduit */
    
    border-radius: 20px !important;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5) !important;
	transition: all 0.3s ease !important;
}

/* 4. Effet au survol : Le curseur s'élargit */
::-webkit-scrollbar-thumb:hover {
    border: 1px solid transparent !important;
    background-clip: padding-box !important;
   
}





 

/* VIDEO */ 
/* ===== VIDÉO BANNIÈRE AVEC ANIMATION D'INTRO ===== */

/* 1. SECTION PRINCIPALE */
.elementor-element-5a54ceb {
    position: relative !important;
    width: 100% !important;
    /* On utilise max-height pour l'animation, c'est plus stable que height */
    height: 25vw !important; 
    min-height: 250px !important;
    max-height: 600px !important;
    
    overflow: hidden !important;
    transition: all 1.5s cubic-bezier(0.65, 0, 0.35, 1) !important;
    /* Indispensable pour la fluidité matérielle */
    will-change: max-height, height;
    transform: translateZ(0); 
}

/* 2. ÉTAT PLEIN ÉCRAN (INTRO) */
.elementor-element-5a54ceb.intro-fullscreen {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important; /* On verrouille aussi le max-height ici */
}

/* 3. LA VIDÉO (Pour éviter qu'elle ne tremble) */
#video-hero video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    /* Empêche les micro-sauts de pixels */
    transform: scale(1.02); 
    transition: none !important; /* La vidéo ne doit pas avoir de transition propre, elle suit le parent */
}

/* ===== VIDÉO BANNIÈRE ===== */



/* CONTENEUR PRINCIPAL DE LA SECTION */
.elementor-element-5a54ceb {
    position: relative !important;
    width: 100% !important;
    height: 25vw !important; /* Ratio 1920/600 = hauteur proportionnelle à la largeur */
    min-height: 250px !important; /* Hauteur minimum sur petits écrans */
    max-height: 600px !important; /* Hauteur maximum = hauteur de votre vidéo */
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000000 !important;
}

/* Responsive tablette */
@media (max-width: 1024px) {
    .elementor-element-5a54ceb {
        height: 35vw !important;
        min-height: 200px !important;
    }
}

/* Responsive mobile */
@media (max-width: 768px) {
    .elementor-element-5a54ceb {
        height: 40vw !important;
        min-height: 180px !important;
    }
}

/* WIDGET VIDÉO */
#video-hero {
	
	width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}


/* LA VIDÉO ELLE-MÊME */
#video-hero video,
#video-hero .elementor-video {
    object-fit: cover !important;
    object-position: center 80% !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* CONTENEURS INTERNES ELEMENTOR */
#video-hero .elementor-widget-container,
#video-hero .elementor-wrapper,
#video-hero .e-hosted-video {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}





/* HEADER */ 

/* Compenser l'espace du header */
#content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Forcer la première section Elementor à commencer tout en haut */
.elementor-13 {
    margin: 0 !important;
    padding: 0 !important;
}

/* Header en fixed dès le départ */
#masthead {
    position: fixed !important;
    width: 100%;
    z-index: 999 !important; 
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Header visible après positionnement */
#masthead.header-ready {
    opacity: 1;
}

/* Header fixé en haut lors du scroll avec ombre plus marquée */
#masthead.header-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- CORRECTION POUR LE HOVER (SURVOL) ET LE LIEN ACTIF --- */

/* 1. COULEUR DES LIENS DU MENU PAR DÉFAUT (Jaune Clair / Parchemin) */
/* Cible l'élément lien */
#masthead .main-header-menu .menu-link, 
/* Cible le lien actif (page actuelle) */
#masthead .ast-header-break-point .main-header-bar .main-header-menu > .menu-item > .menu-link {
    color: #f1f1b4 !important; 
}

/* 2. COULEUR AU SURVOL ET POUR LE LIEN ACTIF/CLIQUÉ (Or) */
/* Cible le survol */
#masthead .main-header-menu .menu-item:hover > .menu-link,
/* Cible le lien actif (page actuelle) de manière plus spécifique */
#masthead .main-header-menu .current-menu-item > .menu-link {
    color: #D49B2A !important; 
}

/* 3. Ajustement pour le Logo/Titre du Site (si nécessaire) */
.site-title a, .site-description {
    color: #f1f1b4 !important;
}



/* FORCE BRUTE : Parent ET Enfants en Bleu Nuit */
#masthead,
#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead .ast-above-header-bar,
#masthead .site-header-section {
    background-color: #12172e !important;
    background-image: none !important; /* Pour être sûr qu'aucune image blanche ne traîne */
}

/* On s'assure que le texte reste lisible par-dessus ce bleu */
#masthead .menu-link, 
#masthead .site-title a {
    color: #f1f1b4 !important;
}

/* Texte d'introduction*/
.texte-intro {
	margin-top: 80px;
}
.texte-intro h1 {
    font-size: 2.5rem; /* 1rem = 16px par défaut => 3rem = 48px */
}
.texte-intro h2 {
    font-size: 2rem; /* 1rem = 16px par défaut => 3rem = 48px */
}

.texte-intro p {
    font-size: 1rem; 
	color: #283567;
	font-style: montserrat; 
	
}
/* ===== MENU MOBILE ===== */

/* Fond bleu nuit pour tous les conteneurs du menu mobile */
#ast-mobile-header,
#ast-mobile-header .ast-mobile-header-wrap,
#ast-mobile-header .ast-primary-header-bar,
.ast-mobile-header-wrap,
.ast-mobile-header-wrap .main-header-bar-wrap,
.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-mobile-header-content,
.main-header-bar-navigation,
#ast-mobile-site-navigation,
.toggle-on,
.ast-mobile-header-content.content-align-flex-start,
.ast-header-break-point .main-header-menu,
.ast-header-break-point #ast-hf-mobile-menu {
    background-color: #12172e !important;
    background-image: none !important;
}

/* Ombre portée sous le menu mobile ouvert */
.ast-mobile-header-content {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important;
}

/* CORRECTION : Surcharge des styles Astra avec variables CSS */
@media (max-width: 921px) {
    /* Forcer le fond bleu sur tous les éléments du menu */
    .ast-builder-menu-mobile .main-navigation .main-header-menu,
    .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-link,
    .ast-builder-menu-mobile .main-navigation .main-header-menu .sub-menu {
        background-color: #12172e !important;
        background-image: none !important;
        background: #12172e !important;
    }
    
    /* Forcer la couleur or pour le lien actif */
    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link,
    .ast-builder-menu-mobile .main-navigation .inline-on-mobile .menu-item.current-menu-item > .ast-menu-toggle,
    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor > .menu-link,
    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor > .ast-menu-toggle {
        color: #D49B2A !important;
        background-color: rgba(18, 23, 46, 0.5) !important; /* Bleu foncé au lieu de l'or */
        background: rgba(18, 23, 46, 0.5) !important;
    }
}

/* Couleur des liens du menu mobile (jaune clair par défaut) */
#ast-hf-mobile-menu .menu-link {
    color: #f1f1b4 !important;
    padding: 12px 20px !important;
    display: block !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

/* Hover sur les boutons (fond légèrement plus foncé + texte or) */
#ast-hf-mobile-menu .menu-item:hover > .menu-link {
    background-color: rgba(0, 0, 0, 0.25) !important;
    color: #D49B2A !important;
}

/* Lien actif (page actuelle) - BLEU FONCÉ */
#ast-hf-mobile-menu .current-menu-item > .menu-link {
    color: #D49B2A !important;
    background-color: rgba(9, 13, 26, 0.6) !important; /* Bleu très foncé au lieu de l'or */
}

/* Icône du menu hamburger (jaune clair) */
.ast-mobile-menu-trigger-minimal .mobile-menu-toggle-icon svg,
.menu-toggle svg {
    fill: #f1f1b4 !important;
    transition: fill 0.3s ease !important;
}

/* Icône hamburger au survol (or) */
.ast-mobile-menu-trigger-minimal:hover .mobile-menu-toggle-icon svg,
.menu-toggle:hover svg {
    fill: #D49B2A !important;
}

/* ===== CORRECTION BOUTON PANIER MENU MOBILE ===== */

/* Augmenter la hauteur du conteneur du panier */
.menu-item.xoo-wsc-menu-item {
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
}

/* Donner plus d'espace au conteneur du panier */
.xoo-wsc-sc-cont {
    padding: 12px 20px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
}

/* S'assurer que le trigger du panier ne soit pas coupé */
.xoo-wsc-cart-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 0 !important;
}

/* Conteneur de l'icône panier */
.xoo-wsc-sc-bkcont {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important; /* Empêche l'icône d'être coupée */
    position: relative !important;
}

/* L'icône elle-même */
.xoo-wsc-sc-bki {
    display: block !important;
    font-size: 24px !important; /* Ajustez selon la taille souhaitée */
    line-height: 1 !important;
}

/* Le compteur */
.xoo-wsc-sc-count {
    position: absolute !important;
    top: -5px !important;
    right: -8px !important;
}

/* Le prix */
.xoo-wsc-sc-subt {
    color: #f1f1b4 !important;
}

/* ===== CENTRER UNIQUEMENT LES BOUTONS DU MENU MOBILE ===== */

/* Centrer tous les menu-items */
#ast-hf-mobile-menu > .menu-item {
    text-align: center !important;
}

/* Les liens restent tels quels mais se centrent */
#ast-hf-mobile-menu > .menu-item > .menu-link {
    display: inline-block !important;
}

/* Centrer le conteneur du widget utilisateur sans toucher au bouton */
.menu-item-537 {
    text-align: center !important;
}

/* Supprimer le lien parasite vide */
.menu-item-537 > a.menu-link[href="#"] {
    display: none !important;
}

/* Le widget devient inline pour se centrer */
.tdj-user-widget {
    display: inline-block !important;
}

/* Centrer le conteneur du panier */
.menu-item.xoo-wsc-menu-item {
    text-align: center !important;
}

/* Le conteneur du panier devient inline pour se centrer */
.xoo-wsc-sc-cont {
    display: inline-block !important;
}

/* ===== CENTRER LE WIDGET UTILISATEUR - VERSION SIMPLE ===== */

/* Centrer le menu-item */
.menu-item-537 {
    text-align: center !important;
}

/* Le widget en inline-block pour se centrer */
.tdj-user-widget {
    display: inline-block !important;
}
/* Optionnel : masquer uniquement le texte vide du premier lien */
.menu-item-537 > a.menu-link:first-child {
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Cartes Accueil */

/* supprimer les problèmes elementor*/
.elementor-element-ce0da21,
.elementor-element-f627afe,
.elementor-element-40e20c1 {
    --min-height: auto !important;
    --padding-top: 60px !important;
    --padding-bottom: 60px !important;
}

.elementor-13 .elementor-element.elementor-element-e8da65f, .elementor-13 .elementor-element.elementor-element-bbc19ea   {
	padding: 0 !important;
} 

.elementor-element .elementor-element-8fd3cf3 .titre-carte .elementor-widget .elementor-widget-heading{
	padding: 0 !important;
}

.elementor-13 .elementor-element.elementor-element-ce0da21 {
    --min-height: auto !important;
    min-height: auto !important;
	--content-width: unset !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important; /* Espace sur les côtés */
}
.elementor-13 .elementor-element.elementor-element-e8da65f,
.elementor-13 .elementor-element.elementor-element-bbc19ea {
    --min-height: auto !important;
    min-height: auto !important;
}
.elementor-13 .e-con {
    min-height: auto !important;
}

/* --- 1. RENDRE LE PARENT RELATIF POUR L'ETIREMENT DU PARCHEMIN --- */

.rangée-carte {
    display: flex !important;
    flex-wrap: wrap;           /* permet plusieurs lignes si nécessaire */
    align-items: flex-start !important; /* empêche l'étirement des enfants */
    gap: 20px; /* optionnel : espace entre cartes */
	 
}

.parent-carte-scenario {
    position: relative !important;
    width: 100% !important;
    max-width: 360px !important; /* largeur fixe */
	height: auto !important;
    margin: 0 auto !important;
    overflow: visible !important; /* empêche tout débordement */
	display: block; /* ou block */
	box-sizing: border-box;
	align-self: flex-start !important;
}



.parent-carte-scenario:hover {
    transform: translateY(-8px);
}


.parent-carte-scenario > *:not(.parchemin-shadow) :not(.cachet-shadow) {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important; /* laisse un petit padding sur les côtés */
	max-width: 100% !important;
	box-sizing: border-box !important;
    
}





/* === IMAGE DE FOND (PARCHEMIN) === */
.parchemin-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 🔑 suit la hauteur du parent */
    object-fit: contain; /* ou stretch si nécessaire */
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0px 10px 14px rgba(0,0,0,0.5))
            drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
}

/* Texte et image */
.titre-carte, .descritption-carte, .illustration-scenario {
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    max-width: 100%;
    box-sizing: border-box;
}

/* CACHET */
@keyframes tampon {
    0% {
        transform: translateY(-40px) scale(1.6) rotate(var(--angle));
        filter:  blur(6px) drop-shadow(0 18px 18px rgba(0,0,0,.45));
		opacity: 0;
    }
	80% {
        
        filter: blur(1) drop-shadow(0 10px 10px rgba(0,0,0,.5));
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1) rotate(var(--angle));
        filter: blur(0) drop-shadow(0 6px 8px rgba(0,0,0,.6));
    }
}



@keyframes cire-ecrasement {
    0%   { transform: scale(0.96); opacity: 0.8; }
    80%  { transform: scale(1.02); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}


/* Ombre spécifique pour le Cachet de Cire (plus petite et plus nette) */
.cachet-shadow {
    position: absolute !important; 
	
    width: 90px;
    height: auto;
    z-index: 5 !important; 
    pointer-events: none;
	opacity: 0; /* CLÉ */
    
	transform-origin: center center;
	transform: translateY(-40px) scale(1) rotate(var(--angle));
    filter: blur(8px) drop-shadow(0 3px 3px rgba(0,0,0,.5)),  /* très net */
			drop-shadow(0 5px 4px rgba(0,0,0,.35)); /* équilibré */
	transition: opacity 0.3s ease;
}

.cachet-shadow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    opacity: 0;
    transform: scale(1);
	
}



.cachet-shadow.active {
	 opacity: 1;
    
    animation: tampon 0.9s cubic-bezier(0.25, 0.9, 0.3, 1.1) forwards;
				
				
}

.cachet-shadow.active::after {
	
    animation: cire-ecrasement 0.15s ease-out 0.9s forwards;
}




/*IMAGE */

.illustration-scenario {
    width: 90% !important; /* s'adapte à la largeur du contenu */
    height: auto !important;
    margin: 10px auto !important;
    object-fit: contain !important;
    z-index: 2 !important;
    display: block !important;
	margin-top: 30px !important;
	
	
}

.illustration-scenario img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
   
    filter: sepia(0.3) brightness(0.9) contrast(1.1);
	 mask-image: 
        radial-gradient(ellipse 95% 75% at center,  /* Plus large et moins haute = plus ovale */
                        black 45%,
                        rgba(0,0,0,0.8) 65%,
                        transparent 85%),
        linear-gradient(to right, 
                        transparent 0%, 
                        black 8%, 
                        black 92%, 
                        transparent 100%),
        linear-gradient(to bottom, 
                        transparent 0%, 
                        black 8%, 
                        black 92%, 
                        transparent 100%);
    
    -webkit-mask-image: 
        radial-gradient(ellipse 95% 75% at center, 
                        black 45%,
                        rgba(0,0,0,0.8) 65%,
                        transparent 85%),
        linear-gradient(to right, 
                        transparent 0%, 
                        black 8%, 
                        black 92%, 
                        transparent 100%),
        linear-gradient(to bottom, 
                        transparent 0%, 
                        black 8%, 
                        black 92%, 
                        transparent 100%);
    
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}








/* TEXTE CARTE */

.elementor-widget-heading, .descritption-carte {
    /* Assure que le titre se comporte comme un bloc pour l'étirement */
    
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    padding-bottom: 0 !important;
}

.descritption-carte {
    overflow: hidden !important;
    max-width: 100% !important;
	padding: 0 !important;
    margin: 0 !important;
	padding: 20px !important;
	padding-bottom: 60px !important;
	padding-top: 0 !important;
	opacity: 0.85;
}

.titre-carte {
	overflow: hidden !important;
    max-width: 100% !important;
	padding: 0 !important;
    margin: 0 !important;
	padding: 20px !important;
	opacity: 0.85;
}
.titre-carte h3{
	
    display: block !important;
	text-align: center !important;
	font-size: 1rem !important;
	
}

.descritption-carte h2{
	
    display: block !important;
	text-align: center !important;
	font-size: 1rem !important;
	
}

.elementor-heading-title,
.descritption-carte p,
.descritption-carte ul {
    margin-bottom: 10px;
	margin: 0 0 8px 0 !important; /* seulement un petit espace entre paragraphes */
    padding: 0 !important;
	padding-bottom: 0 !important;
}
.descritption-carte p,
.descritption-carte span {
  font-weight: 600 !important;
	
}






    
/* S'assurer que le contenu principal est bien visible sous le header fixe/décalé */
#content {
    /* Maintenez ces réglages pour l'espace du header, mais assurez-vous qu'ils n'écrasent pas */
    /* de la marge nécessaire pour le contenu sous le Grimoire */
    min-height: 100vh; /* S'assurer que le contenu s'étale sur au moins un écran */
    /* Vous pouvez retirer le padding-top si le JS gère la position du header */
    padding-top: 0 !important; 
    margin-top: 0 !important;
}

/* Le conteneur qui contient tout le contenu de la page sous la vidéo */
.site-content {
    overflow: visible !important; /* TRÈS IMPORTANT : S'assurer que rien n'est coupé */
}

/* Supprimer TOUS les paddings et margins en haut */
body, 
html,
.ast-header-break-point .site-header,
.ast-header-break-point #masthead,
.site-content,
#primary,
.content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ===== FOOTER ===== */

/* Fond bleu nuit pour tout le footer */
#colophon,
.site-footer,
.site-below-footer-wrap,
.ast-builder-grid-row-container-inner,
.site-below-footer-inner-wrap {
    background-color: #12172e !important;
    background-image: none !important;
}

/* Texte en jaune clair */
.ast-footer-copyright,
.ast-footer-copyright p {
    color: #f1f1b4 !important;
}

/* Optionnel : ajuster l'espacement */
.ast-footer-copyright {
    text-align: center !important;
    padding: 20px !important;
}

.ast-footer-copyright p {
    margin: 5px 0 !important;
}







/* PARTIE 5 CSS STYLING*/

/* 
 * CSS Personnalisé pour les Tables de Jeu
 * Thème : Fond #12172E avec image, texte #F1F1B4, accents or #D49B2A
 */
/* fond tout site sauf certaines pages*/
#page, .hfeed.site{
	display: flex;
}
#page {	
    background-image: url('https://scribe-et-legendes.fr/wp-content/uploads/2025/12/fond_long_compress-scaled.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Cacher fond et header sur page de maintenance */
/* Supprimer le fond global */
.page-id-499 #page {
    background: none !important;
}

/* Masquer header et footer */
.page-id-499 #masthead,
.page-id-499 footer {
    display: none !important;
}

.page-id-499 .xoo-wsc-markup {
	display: none !important;
}


/* Cacher fond et header sur page c'est fait */
/* Supprimer le fond global */
.page-id-450 #page, .page-id-468 #page {
    background: none !important;
}

/* Masquer header et footer */
.page-id-450 #masthead,
.page-id-450 footer,.page-id-468 #masthead,
.page-id-468 footer {
    display: none !important;
}

.page-id-450 .xoo-wsc-markup, .page-id-468 .xoo-wsc-markup {
	display: none !important;
}
 /* décaler le contenue de ma page cookie */
body.page-id-982 #content.site-content {
    padding-top: var(--header-height, 120px) !important;
}

/* Container principal */
.tdj-upcoming-tables {
   display: grid;
    grid-template-columns: 1fr; /* une seule colonne */
    gap: 20px; /* espace entre les cartes */
    margin: 30px 0;
	padding: 0 20px; /* uniquement gauche/droite */
}

/* Carte de table */
.tdj-table-card {
	margin: 0 20px; /* 0 en haut/bas, 20px à gauche/droite */
    width: auto; 
    min-width:0; 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: stretch;
    flex-direction: row;
    justify-content: flex-start;
    gap: 30px;
	position: relative;
	overflow: hidden;
   
}



.tdj-table-card > * {
    position: relative;
    z-index: 1;
}

.tdj-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
	 border-radius: 12px;
    background-image: url('https://scribe-et-legendes.fr/wp-content/uploads/2025/12/fond_reserv.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
   
}

/* Image du scénario */
.tdj-table-image {
     flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    z-index: 1;
}

.tdj-table-image img {
	background: repeating-linear-gradient(
            -45deg,
            #6b2812 0%,
            #ad6e29 6.66%,
            #e9ae38 14.33%,
            #f0f1b3 16.66%,
            #e9ae38 19%,
            #ad6e29 26.66%,
            #6b2812 33.33%
        ) border-box;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; 
    border-radius: 8px;
    border: 2px solid transparent;
}

/* Contenu de la carte */
.tdj-table-content {
    flex: 1 1 60%;
	position: relative; 
    flex-direction: column;
    justify-content: flex-start;
    white-space: normal; 
    min-width: 0;
    display: flex;
    z-index: 1;
}

/* Hover */
.tdj-table-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(212, 155, 42, 0.3);
}

.tdj-table-card.tdj-open {
    border-color: #D49B2A;
}

.tdj-table-card.tdj-closed {
    opacity: 0.7;
    border-color: #555;
}

/* En-tête de la carte */
.tdj-table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212,155,42,0.3); 
	
}

/*compte à rebours */
.tdj-countdown {
    margin-top: 10px;
    font-size: 0.9em;
    color: #F1F1B4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tdj-countdown-label {
    color: #D49B2A;
    font-weight: 600;
}

.tdj-countdown-time {
    font-weight: bold;
    color: #F1F1B4;
    letter-spacing: 0.5px;
}

.tdj-countdown-expired .tdj-countdown-time {
    color: #999;
}


/* TITRE */
#titre-scenario {
    /* Assure que le titre se comporte comme un bloc pour l'étirement */
    display: block !important;
    max-width: none !important;

    /* 1. Étirement forcé : 100% de la zone de contenu + 80px (pour compenser les 40px de padding de chaque côté) */
    width: calc(100% + 20px) !important; 
    
    /* 2. Décale le titre vers la gauche de 40px pour annuler le padding gauche */
    margin-left: -10px !important; 
    
    
}


/* CLASSE CSS FINALISÉE : OR DÉGRADÉ + OMBRE PORTÉE PAR LETTRE */
#titre-scenario {
    display: block !important; /* Changé de inline-block à block */
    font-family: 'Cinzel Decorative', serif !important;
    text-transform: uppercase !important;
    text-align: center; /* Ou left/right selon vos besoins */
}

/* Conteneur de chaque mot */
#titre-scenario .mot-titre {
    display: inline-block !important;
    white-space: nowrap !important; /* Les mots ne se coupent jamais */
}


#titre-scenario .lettre {
    display: inline-block !important;
    font-family: 'Cinzel Decorative', serif !important;
    font-size: 18px !important; /* Ajustez la taille selon vos besoins */
    font-weight: 900 !important;
    text-transform: uppercase !important;
    background: linear-gradient(
        -45deg, 
        #6b2812 0%, 
        #ad6e29 20%, 
        #e9ae38 43%, 
        #f0f1b3 50%, 
        #e9ae38 57%,  
        #ad6e29 80%, 
        #6b2812 100%
    ) !important;
    background-size: 100% !important; 
    background-repeat: no-repeat !important; 
    -webkit-background-clip: text !important;
    background-clip: text !important;  
    -webkit-text-fill-color: transparent !important;
    color: transparent !important; 
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.8)) !important;
    
}

.tdj-table-title {
    margin: 0;
    font-size: 1.3em;
    flex: 1;
    line-height: 1.3;
}

/* Phrase d'accroche */
.tdj-table-tagline {
    margin: 10px 0 15px 0;
}

.tdj-table-tagline p {
    margin: 0;
    color: #D49B2A;
    font-style: italic;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Métadonnées */
.tdj-table-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 155, 42, 0.3);
}

.tdj-meta-item {
    font-size: 0.85em;
    color: #F1F1B4;
}

.tdj-meta-item strong {
    color: #D49B2A;
}

/* Status */
.tdj-table-status {
    margin-left: 10px;
}

.tdj-status-open,
.tdj-status-full,
.tdj-status-closed {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.tdj-status-open { background: #D49B2A; color: #12172E; }
.tdj-status-full { background: #d32f2f; color: white; }
.tdj-status-closed { background: #757575; color: white; }

/* Informations de la table */
.tdj-table-info {
    margin-bottom: 20px;
}

.tdj-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 155, 42, 0.2);
}

.tdj-info-item:last-child { border-bottom: none; }

.tdj-info-label { font-weight: 600; color: #F1F1B4; font-size: 0.95em; }
.tdj-info-value { color: #F1F1B4; font-weight: 500; }

/* Actions */
.tdj-table-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tdj-btn-more, .tdj-btn-book {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Responsive intégré */
@media (max-width: 1024px) {
    .tdj-table-card { gap: 20px; padding: 20px;  }
    .tdj-table-image { width: 250px; }
}

/* ===========================
   RESPONSIVE < 768px
   =========================== */
@media (max-width: 768px) {
	
	.tdj-upcoming-tables {
	padding: 0 10px; /* uniquement gauche/droite */
}

    /* Carte principale */
    .tdj-table-card {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; /* pousse les boutons en bas */
        align-items: stretch !important;
        height: auto !important; /* adapte la carte au contenu */
        min-height: 0 !important;
        overflow: visible !important; /* pour que tout soit visible */
        position: relative !important;
        padding: 15px !important;
        gap: 15px !important;
        box-sizing: border-box !important;
		 margin-top: auto !important;
		
    }

    /* Image du scénario */
    .tdj-table-image {
        width: 100% !important;
        height: auto !important;        /* hauteur flexible */
        max-height: 200px !important;
        object-fit: cover !important;
    }

    /* Contenu interne */
    .tdj-table-content {
        flex: 1 1 auto !important;        /* prend tout l’espace restant */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    /* Actions / boutons */
    .tdj-table-actions {
        display: flex !important;
        flex-direction: column !important; /* boutons empilés */
        gap: 10px !important;
        margin-top: auto !important;      /* pousse vers le bas de la carte */
        width: 100% !important;
        flex-shrink: 0 !important;
    }

    /* Tous les boutons prennent 100% */
    .tdj-btn-more,
    .tdj-btn-book,
    .tdj-btn-waiting {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}





/* Bouton "En savoir plus" */
.tdj-btn-more {
    background: transparent;
    color: #F1F1B4;
    border: 2px solid #F1F1B4;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9em;
}

.tdj-btn-more:hover {
    background: #F1F1B4;
    color: #12172E;
    transform: scale(1.02);
}

/* Bouton "Réserver" */
.tdj-btn-book {
    background: transparent;
    color: #D49B2A;
    border: 2px solid #D49B2A;
    font-size: 1em;
}

.tdj-btn-book:hover {
    background: #D49B2A;
    color: #12172E;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(212, 155, 42, 0.4);
}

/* Message aucune table */
.tdj-no-tables {
    text-align: center;
    padding: 40px 20px;
    background: #12172E;
    border-radius: 8px;
    color: #F1F1B4;
    font-size: 1.1em;
    border: 2px solid #D49B2A;
}


 /* MODAL */

.tdj-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    isolation: isolate !important; /* Crée un nouveau contexte */
	overflow: visible !important;
}



/* On s'assure que le fond noir de la modale couvre absolument tout */

/* 1. On s'assure que l'overlay est prêt et très prioritaire */

.tdj-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 999998 !important;
}

/* On s'assure que le contenu est encore un cran au-dessus */
.tdj-modal-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 999999 !important;
	-webkit-overflow-scrolling: touch;
	

    /* 1. On crée une bordure transparente de 2px */
    border: 2px solid transparent;

    /* 2. On superpose deux fonds :
       Le premier : votre image (centrée et couvrante)
       Le deuxième : votre dégradé linéaire complexe */

    background-image: 
        linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0)), /* Calque vide pour l'image */
        url('https://scribe-et-legendes.fr/wp-content/uploads/2025/12/fond_reserv.webp'), 
        repeating-linear-gradient(
            -45deg,
            #6b2812 0%,
            #ad6e29 6.66%,
            #e9ae38 14.33%,
           #f0f1b3 16.66%,
            #e9ae38 19%,
            #ad6e29 26.66%,
            #6b2812 33.33%
        );

    /* 3. L'astuce magique :
       - padding-box : l'image s'arrête au bord intérieur (ne touche pas la bordure)
       - border-box  : le dégradé remplit tout, y compris sous la bordure */
    background-origin: padding-box, padding-box, border-box;
    background-clip: padding-box, padding-box, border-box;

    background-size: cover, cover, auto;
    background-position: center;

}

.tdj-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #D49B2A;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
	transition: all 0.3s ease;
}



/* Effet au survol (brillance magique) */
.tdj-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: #F1F1B4;
    
}

/* On s'assure que le clic ferme bien le popup Elementor */
.tdj-modal-close {
    cursor: pointer;
}



div.nsl-container[data-align="left"] {
    text-align: center !important;
}

/* Reste du modal... */

.tdj-modal h2 {
    margin: 0 0 20px 0;
    color: #F1F1B4;
    font-size: 1.8em;
}

.tdj-modal h3 {
    margin: 0 0 20px 0;
    color: #F1F1B4;
    font-size: 1.8em;
}



.tdj-modal-table-details {
    position: relative; /* Indispensable pour placer la bordure */
    background: #ad6e2a1a;
    padding: 15px 15px 15px 20px; /* On augmente un peu le padding gauche */
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden; /* Pour que le dégradé respecte l'arrondi des angles */
}


/* Création de la bordure en dégradé */

.tdj-modal-table-details::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px; /* L'épaisseur de votre bordure */
    background: repeating-linear-gradient(
        -45deg,
        #6b2812 0%, 
        #ad6e29 20%, 
        #e9ae38 43%, 
        #f0f1b3 50%, 
        #e9ae38 57%,  
        #ad6e29 80%, 
		#6b2812 100%
    ); /* Votre dégradé */

}

.tdj-modal-table-details p {
    margin: 5px 0;
    color: #F1F1B4;
}

/* Prérequis dans le modal */
.tdj-prerequisites-box {
    position: relative; /* Indispensable pour placer la bordure */
    background: #ad6e2a1a;
    padding: 15px 15px 15px 20px; /* On augmente un peu le padding gauche */
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden; /* Pour que le dégradé respecte l'arrondi des angles */
}

.tdj-prerequisites-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px; /* L'épaisseur de votre bordure */
    background: repeating-linear-gradient(
        -45deg,
        #6b2812 0%, 
        #ad6e29 20%, 
        #e9ae38 43%, 
        #f0f1b3 50%, 
        #e9ae38 57%,  
        #ad6e29 80%, 
		#6b2812 100%
    ); /* Votre dégradé */
}

.tdj-prerequisites-box h3 {
    margin: 0 0 10px 0;
	font-family: montserrat;
    color: #F1F1B4;
    font-size: 1.1em;
}

.tdj-prerequisites-box p {
    margin: 0 0 10px 0;
	font-family: montserrat;
    color: #F1F1B4;
    font-size: 1.1em;
}

.tdj-prerequisites-content p {
    color: #F1F1B4;
    margin: 0 0 15px 0;
	white-space: pre-line;
}

.tdj-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #F1F1B4;
    cursor: pointer;
	
}

.tdj-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
	scroll-margin-top: 250px;
}

.tdj-cgv-checkbox {
    background: rgba(212, 155, 42, 0.08);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(212, 155, 42, 0.25);
    margin-bottom: 15px;
}

.tdj-cgv-checkbox .tdj-checkbox-label {
    align-items: flex-start;
    flex-wrap: nowrap;
}

.tdj-cgv-checkbox .tdj-checkbox-label span {
    display: inline;
    line-height: 1.5;
}

.tdj-cgv-checkbox .tdj-checkbox-label a {
    display: inline;
    white-space: nowrap;
}

/* Formulaire */
.tdj-form-row {
    margin-bottom: 20px;
}

.tdj-form-row label {
    display: block;
    margin-bottom: 8px;
    color: #F1F1B4;
    font-weight: 600;
    font-size: 0.95em;
}

.tdj-form-row input,
.tdj-form-row select {
    width: 100%;
    padding: 12px;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    font-size: 1em;
    background: linear-gradient(rgb(18, 23, 46), rgb(18, 23, 46)) padding-box, repeating-linear-gradient(
        -45deg,
        #6b2812 0%, 
        #ad6e29 20%, 
        #e9ae38 43%, 
        #f0f1b3 50%, 
        #e9ae38 57%,  
        #ad6e29 80%, 
		#6b2812 100%
    ) border-box; /* Votre dégradé */
	color: #F1F1B4;
    transition: border-color 0.3s ease;
}



.tdj-form-row input:focus,
.tdj-form-row select:focus {
    outline: none !important;
    border-color: #F1F1B4 !important;
    background: rgba(18, 23, 46, 0.9) !important;
}

.tdj-form-row input::placeholder {
    color: rgba(241, 241, 180, 0.5);
}

.tdj-form-info {
    background: rgba(212, 155, 42, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(212, 155, 42, 0.3);
}

.tdj-form-info p {
    margin: 5px 0;
    color: #F1F1B4;
}

.tdj-form-note {
    font-size: 0.9em;
    color: rgba(241, 241, 180, 0.8);
}

.tdj-btn-submit {
    width: 100%;
    padding: 15px;
    background: transparent;
    color: #D49B2A;
    border: 2px solid #D49B2A;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tdj-btn-submit:hover {
    background: #D49B2A;
    color: #12172E;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(212, 155, 42, 0.4);
}

.tdj-login-notice {
    text-align: center;
    padding: 30px;
    background: rgba(212, 155, 42, 0.15);
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #D49B2A;
}

.tdj-login-notice p {
    color: #F1F1B4;
}

.tdj-btn-login {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: transparent;
    color: #D49B2A;
    border: 2px solid #D49B2A;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tdj-btn-login:hover {
    background: #D49B2A;
    color: #12172E;
    transform: scale(1.05);
}

/* Styles pour la connexion dans le modal */
.tdj-login-notice h3 {
    text-align: center;
    font-family: montserrat;
}

.tdj-social-login {
    text-align: center;
    margin-bottom: 20px;
}

.tdj-login-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.tdj-login-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 155, 42, 0.3);
}

.tdj-login-separator span {
    background: #12172E;
    padding: 0 15px;
    color: #F1F1B4;
    position: relative;
    z-index: 1;
}

.tdj-login-form {
    margin-top: 20px;
}

.tdj-login-notice a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.tdj-login-notice a:hover {
    color: #F1F1B4 !important;
}

/* Joueurs additionnels */
.tdj-additional-player {
    background: rgba(212, 155, 42, 0.1);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(212, 155, 42, 0.2);
}

.tdj-additional-player h4 {
    margin: 0 0 15px 0;
    color: #D49B2A;
}

/* Modal d'erreur de places */
#tdj-error-modal .tdj-error-content {
    text-align: center;
}

#tdj-error-modal h2 {
    color: #d32f2f;
    font-size: 1.5em;
}

#tdj-error-modal .tdj-modal-content {
    padding: 40px 30px;
}

.tdj-seats-warning {
    background: rgba(211, 47, 47, 0.1);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(211, 47, 47, 0.3);
}




/* Empêcher le scroll quand modal ouvert */
body.tdj-modal-open {
    overflow: hidden;
}

/* Corriger le texte coupé dans les selects */
.tdj-form-row select {
    white-space: normal !important;
    height: auto !important;
    min-height: 45px !important;
    line-height: 1.5 !important;
}

.tdj-form-row select option {
    white-space: normal !important;
    padding: 10px !important;
}

/* Forcer l'affichage complet du texte */
#num_seats,
#player_level {
    overflow: visible !important;
    text-overflow: clip !important;
}

/* ============================================
   BOUTON LISTE D'ATTENTE
   ============================================ */

.tdj-btn-waiting {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #F1F1B4;
    border: 2px solid #F1F1B4;
    font-size: 0.95em;
}

.tdj-btn-waiting:hover {
    background: #F1F1B4;
    color: #12172E;
    transform: scale(1.02);
}

/* ============================================
   CHECKBOX NEWSLETTER DANS FORMULAIRE
   ============================================ */

.tdj-newsletter-checkbox {
    background: rgba(212, 155, 42, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(212, 155, 42, 0.3);
    margin-top: 20px;
}

.tdj-newsletter-checkbox .tdj-checkbox-label {
    margin: 0;
    font-size: 0.95em;
}

/* ============================================
   MODAL LISTE D'ATTENTE (même style que modal principal)
   ============================================ */

#tdj-waiting-modal .tdj-modal-content {   
    overflow-y: auto !important;
    max-height: 80vh;
    -webkit-overflow-scrolling: touch;
}

#tdj-waiting-modal .tdj-modal-table-details {
    margin-bottom: 20px;
}

/* ============================================
   NOTICES WOOCOMMERCE - FORCE AFFICHAGE
   ============================================ */

.woocommerce-notices-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999999 !important;
    padding: 10px 20px !important;
    box-sizing: border-box !important;
    pointer-events: none !important; /* ne bloque pas les clics derrière */
}

.woocommerce-notices-wrapper > * {
    pointer-events: all !important; /* les notices elles-mêmes restent cliquables */
}

.woocommerce-info,
.woocommerce-error,
.woocommerce-message {
    background-color: #1A2140 !important;
    color: #F1F1B4 !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    margin: 0 !important;
    padding: 15px 20px !important;
    font-size: 0.95em !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.woocommerce-info {
    border-color: #D49B2A !important;
    border-left: 4px solid #D49B2A !important;
}

.woocommerce-error {
    border-left: 4px solid #d63638 !important;
}

.woocommerce-message {
    border-left: 4px solid #00a32a !important;
}

.woocommerce-info::before {
    color: #D49B2A !important;
}

.woocommerce-info a,
.woocommerce-error a,
.woocommerce-message a {
    color: #D49B2A !important;
    text-decoration: underline !important;
}

.woocommerce-info a:hover,
.woocommerce-error a:hover,
.woocommerce-message a:hover {
    color: #F1F1B4 !important;
}

/* Scroll panier */
/* Empêche le scroll du site derrière */


/*.xoo-wsc-body {
 
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}*/













/* CSS MES RESERVATIONS */

/* 
 * CSS pour la page "Mes Réservations"
 * À ajouter dans votre CSS additionnel
 */



/* Container principal */
.tdj-user-reservations {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tdj-user-reservations h2 {
    color: #283567;
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
}

.tdj-user-reservations h3 {
    color: #D49B2A;
    font-size: 1.8em;
    margin: 30px 0 20px 0;
    border-bottom: 2px solid rgba(212, 155, 42, 0.3);
    padding-bottom: 10px;
}

/* Section réservations */
.tdj-reservations-section {
    margin-bottom: 50px;
}

/* Message aucune réservation */
.tdj-no-reservations {
    text-align: center;
    padding: 60px 20px;
    background: rgba(18, 23, 46, 1);
    border-radius: 12px;
    border: 2px dashed rgba(212, 155, 42, 0.3);
}

.tdj-no-reservations p {
    color: #F1F1B4;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Grille de cartes */
.tdj-reservations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* Carte de réservation */
.tdj-reservation-card {
    background: url('https://scribe-et-legendes.fr/wp-content/uploads/2025/12/fond_reserv.webp');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tdj-reservation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 23, 46, 0.9);
    border-radius: 12px;
    z-index: 0;
}

.tdj-reservation-card > * {
    position: relative;
    z-index: 1;
}

.tdj-reservation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(212, 155, 42, 0.4);
}

.tdj-reservation-card.tdj-upcoming {
    border: 2px solid #D49B2A;
}

/* En-tête carte */
.tdj-reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 155, 42, 0.3);
}

.tdj-reservation-header h4 {
    margin: 0;
    color: #F1F1B4;
    font-size: 1.3em;
    flex: 1;
}

/* Badge statut */
.tdj-reservation-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.tdj-reservation-badge.confirmed {
    background: #4CAF50;
    color: white;
}

.tdj-reservation-badge.cancelled {
    background: #d32f2f;
    color: white;
}

.tdj-reservation-badge.completed {
    background: #757575;
    color: white;
}

/* Infos réservation */
.tdj-reservation-info {
    margin-bottom: 20px;
}

.tdj-reservation-info p {
    margin: 10px 0;
    color: #F1F1B4;
    font-size: 0.95em;
}

.tdj-reservation-info strong {
    color: #D49B2A;
}

/* Actions */
.tdj-reservation-actions {
    margin-top: 20px;
}

.tdj-btn-cancel {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: #d32f2f;
    border: 2px solid #d32f2f;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tdj-btn-cancel:hover {
    background: #d32f2f;
    color: white;
    transform: scale(1.02);
}

.tdj-btn-cancel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tdj-cancel-note {
    margin-top: 10px;
    font-size: 0.85em;
    color: rgba(241, 241, 180, 0.7);
    text-align: center;
}

.tdj-no-cancel {
    text-align: center;
    color: rgba(241, 241, 180, 0.6);
    font-size: 0.9em;
    font-style: italic;
    margin-top: 15px;
}

/* Historique - Liste */
.tdj-reservations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tdj-reservation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 23, 46, 0.5);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.tdj-reservation-item.completed {
    border-left-color: #757575;
}

.tdj-reservation-item.cancelled {
    border-left-color: #d32f2f;
    opacity: 0.7;
}

.tdj-reservation-item:hover {
    background: rgba(18, 23, 46, 0.7);
}

.tdj-reservation-summary h5 {
    margin: 0 0 8px 0;
    color: #F1F1B4;
    font-size: 1.1em;
}

.tdj-reservation-date {
    color: #D49B2A;
    font-size: 0.9em;
}

/* Login requis */
.tdj-login-required {
    text-align: center;
    padding: 60px 20px;
    background: rgba(18, 23, 46, 0.8);
    border-radius: 12px;
    border: 2px solid #D49B2A;
    max-width: 500px;
    margin: 0 auto;
}

.tdj-login-required p {
    color: #F1F1B4;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .tdj-reservations-grid {
        grid-template-columns: 1fr;
    }
    
    .tdj-reservation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tdj-reservation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .tdj-user-reservations {
        padding: 20px 15px;
    }
    
    .tdj-user-reservations h2 {
        font-size: 2em;
    }
    
    .tdj-user-reservations h3 {
        font-size: 1.5em;
    }
}













/* CSS WIDGET + DECONNEXION */
/* ============================================
   WIDGET USER - VERSION OPTIMISÉE
   ============================================ */

/* === STYLE DU MENU MOBILE ASTRA === */
.ast-mobile-popup-drawer,
.ast-mobile-popup-inner,
.ast-mobile-popup-content,
.ast-mobile-header-wrap,
.ast-mobile-header-content,
.main-header-bar-wrap {
    background-color: #12172E !important;
    background-image: none !important;
}

#ast-hf-mobile-menu .menu-item .menu-link {
    color: #F1F1B4 !important;
}

#ast-hf-mobile-menu .menu-item:hover > .menu-link,
#ast-hf-mobile-menu .current-menu-item > .menu-link {
    color: #D49B2A !important;
}

.ast-mobile-menu-buttons .menu-toggle {
    color: #F1F1B4 !important;
}

#ast-hf-mobile-menu .menu-item {
    border-bottom: 1px solid rgba(212, 155, 42, 0.2) !important;
}

/* === FIX MOBILE - CENTRAGE BOUTON DANS LE MENU === */

/* Supprime le lien parasite Astra AVANT le widget */
#ast-hf-mobile-menu li.menu-item-537 > a.menu-link:first-child {
    display: none !important;
}

/* Le li conteneur doit être flex pour centrer */
#ast-hf-mobile-menu li.menu-item-537 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(212, 155, 42, 0.2) !important;
}

/* Le widget prend toute la largeur et centre son contenu */
#ast-hf-mobile-menu li.menu-item-537 .tdj-user-widget {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-right: 0 !important;
}

/* Le bouton centré horizontalement */
#ast-hf-mobile-menu li.menu-item-537 .tdj-user-button {
    margin: 0 auto !important;
}

/* === FIX OVERFLOW === */
.ast-mobile-header-content,
.ast-mobile-header-content *,
.ast-builder-menu-mobile,
.main-header-bar-navigation,
.site-navigation,
.main-navigation,
#ast-mobile-site-navigation,
#ast-hf-mobile-menu,
#masthead,
.ast-mobile-popup-inner,
.ast-mobile-popup-drawer,
.ast-mobile-popup-content {
    overflow: visible !important;
}

#masthead {
    z-index: 99998 !important;
}

.ast-mobile-popup-drawer,
.ast-mobile-popup-content {
    z-index: 99999 !important;
}

/* === WIDGET USER - BOUTONS === */
.tdj-user-widget {
    position: relative !important;
    display: inline-block !important;
    z-index: 100000 !important;
	margin-right: 20px !important;
}

.tdj-login-link {
    margin-right: 10px;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px;
    padding: 2px 10px;
    background: rgba(212, 155, 42, 0.1);
    border: 2px solid #D49B2A;
    border-radius: 25px;
    color: #F1F1B4;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95em;
}

.tdj-login-link:hover {
    background: #D49B2A;
    color: #12172E;
    transform: scale(1.05);
}

.tdj-user-button {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(212, 155, 42, 0.1);
    border: 2px solid #D49B2A;
    border-radius: 25px;
    color: #F1F1B4;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95em;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: unset !important;
}

.tdj-user-button:hover {
    background: rgba(212, 155, 42, 0.2);
    transform: scale(1.02);
}

.tdj-user-icon {
    font-size: 1.2em;
    line-height: 1;
}

.tdj-user-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
    line-height: 1;
}

.tdj-user-widget.active .tdj-user-arrow {
    transform: rotate(180deg);
}

/* === MENU DÉROULANT - BASE DESKTOP === */
.tdj-user-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 250px !important;
    background: #12172E !important;
    background-image: url('https://scribe-et-legendes.fr/wp-content/uploads/2025/12/fond_reserv.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    border: 2px solid #D49B2A !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    z-index: 100001 !important;
    overflow: visible !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
}

/* Affichage du dropdown */
.tdj-user-widget.active .tdj-user-dropdown,
.tdj-user-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Overlay fond sombre */
.tdj-user-dropdown::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(18, 23, 46, 0.95) !important;
    z-index: 0 !important;
    border-radius: 12px !important;
    pointer-events: none !important;
}

.tdj-user-dropdown > * {
    position: relative !important;
    z-index: 1 !important;
}

/* === EN-TÊTE DU DROPDOWN === */
.tdj-dropdown-header {
    display: block !important;
    padding: 15px !important;
    border-bottom: 1px solid rgba(212, 155, 42, 0.3) !important;
    text-align: center !important;
    background: transparent !important;
}

.tdj-header-content {
    display: block !important;
    text-align: center !important;
}

/* Strong et Small - Couleurs et styles */
.tdj-dropdown-header strong,
.tdj-header-content strong,
a strong,
a.menu-link strong,
.menu-item strong,
li strong {
    display: block !important;
    color: #D49B2A !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.tdj-dropdown-header small,
.tdj-header-content small,
a small,
a.menu-link small,
.menu-item small,
li small {
    display: block !important;
    color: rgba(241, 241, 180, 0.7) !important;
    font-size: 0.85em !important;
    font-weight: 400 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* === NAVIGATION === */
.tdj-dropdown-nav {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.tdj-nav-item {
    display: block !important;
    padding: 10px 0 !important;
    color: #F1F1B4 !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent !important;
    background: transparent !important;
    cursor: pointer !important;
}

.tdj-nav-item:hover,
.tdj-user-dropdown a:hover {
    background: rgba(212, 155, 42, 0.1) !important;
    border-left-color: #D49B2A !important;
    color: #D49B2A !important;
}

.tdj-logout-link {
    color: #d32f2f !important;
}

.tdj-logout-link:hover {
    background: rgba(211, 47, 47, 0.1) !important;
    border-left-color: #d32f2f !important;
}

.tdj-nav-divider {
    height: 1px !important;
    background: rgba(212, 155, 42, 0.2) !important;
    margin: 5px 0 !important;
}

/* === SUPPRESSION LIENS PARASITES ASTRA === */
.tdj-user-dropdown a.menu-link,
.tdj-user-dropdown > a.menu-link,
li#menu-item-537 > a.menu-link:first-child {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tdj-user-widget a.menu-link,
.tdj-user-widget > a.menu-link,
li.menu-item a.menu-link:has(.tdj-user-widget),
.menu-item .menu-link:has(.tdj-user-button) {
    all: unset !important;
    display: contents !important;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 922px) {
    .tdj-user-dropdown {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        width: 100vw !important;
        height: 70vh !important;
        max-height: 80vh !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -8px 30px rgba(0,0,0,0.7) !important;
        z-index: 2147483647 !important;
        overflow-y: auto !important;
        transform: translateY(100%) !important;
    }
    
    .tdj-user-widget.active::after {
        content: '' !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        z-index: 999998 !important;
    }
}

@media (max-width: 480px) {
    .tdj-user-dropdown {
        max-height: 80vh !important;
    }
}


















/* CONTACT CSS */

/* 
 * FORMULAIRE DE CONTACT PERSONNALISÉ
 * Thème : Fond #12172E, texte #F1F1B4, accents or #D49B2A
 */

/* ===========================
   CONTAINER PRINCIPAL
   =========================== */
.tdj-contact-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #12172E;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
	margin-top: 120px; 
}

/* Image de fond */
.tdj-contact-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://scribe-et-legendes.fr/wp-content/uploads/2025/12/fond_reserv.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
    border-radius: 12px;
}

/* Contenu au-dessus du fond */
.tdj-contact-container > * {
    position: relative;
    z-index: 1;
}

/* ===========================
   TITRE - Style lettre par lettre
   =========================== */
.tdj-contact-title {
    display: block !important;
    font-family: 'Cinzel Decorative', serif !important;
    text-transform: uppercase !important;
    text-align: center;
    margin-bottom: 40px;
}

.tdj-contact-title .mot-titre {
    display: inline-block !important;
    white-space: nowrap !important;
}

.tdj-contact-title .lettre {
    display: inline-block !important;
    font-family: 'Cinzel Decorative', serif !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    background: linear-gradient(
        -45deg, 
        #6b2812 0%, 
        #ad6e29 20%, 
        #e9ae38 43%, 
        #f0f1b3 50%, 
        #e9ae38 57%,  
        #ad6e29 80%, 
        #6b2812 100%
    ) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.8)) !important;
}

/* ===========================
   FORMULAIRE
   =========================== */
.tdj-contact-form {
    width: 100%;
}

/* Champs du formulaire */
.tdj-form-row {
    margin-bottom: 25px;
}

.tdj-form-row label {
    display: block;
    margin-bottom: 8px;
    color: #F1F1B4;
    font-weight: 600;
    font-size: 0.95em;
}

.tdj-form-row .required {
    color: #D49B2A;
    font-weight: bold;
}

.tdj-form-row .optional {
    color: rgba(241, 241, 180, 0.6);
    font-weight: normal;
    font-size: 0.9em;
}

/* Inputs et Textarea */
.tdj-form-row input[type="text"],
.tdj-form-row input[type="email"],
.tdj-form-row input[type="tel"],
.tdj-form-row select,
.tdj-form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    font-size: 1em;
    background: linear-gradient(rgb(18, 23, 46), rgb(18, 23, 46)) padding-box,
                repeating-linear-gradient(
                    -45deg,
                    #6b2812 0%, 
                    #ad6e29 6.66%, 
                    #e9ae38 14.33%, 
                    #f0f1b3 16.66%, 
                    #e9ae38 19%, 
                    #ad6e29 26.66%, 
                    #6b2812 33.33%
                ) border-box !important;
    color: #F1F1B4 !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

/* Focus */
.tdj-form-row input:focus,
.tdj-form-row select:focus,
.tdj-form-row textarea:focus {
    outline: none !important;
    border-color: #D49B2A !important;
    background: rgba(18, 23, 46, 0.9) !important;
    box-shadow: 0 0 10px rgba(212, 155, 42, 0.3);
}

/* Placeholder */
.tdj-form-row input::placeholder,
.tdj-form-row textarea::placeholder {
    color: rgba(241, 241, 180, 0.5);
}

/* Textarea */
.tdj-form-row textarea {
    min-height: 150px;
    resize: vertical;
}

/* Select */
.tdj-form-row select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F1F1B4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.tdj-form-row select option {
    background: #12172E;
    color: #F1F1B4;
    padding: 10px;
}

/* Compteur de caractères */
.tdj-char-counter {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: rgba(241, 241, 180, 0.7);
}

/* ===========================
   CHECKBOX RGPD
   =========================== */
.tdj-gdpr-row {
    background: rgba(212, 155, 42, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(212, 155, 42, 0.3);
    margin-top: 30px;
}

.tdj-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.tdj-checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.tdj-checkbox-label span {
    color: #F1F1B4;
    font-size: 0.9em;
    line-height: 1.5;
}

.tdj-checkbox-label a {
    color: #D49B2A;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.tdj-checkbox-label a:hover {
    color: #F1F1B4;
}

/* ===========================
   BOUTON SUBMIT
   =========================== */
.tdj-form-actions {
    text-align: center;
    margin-top: 30px;
}

.tdj-btn-submit {
    background: transparent !important;
    color: #D49B2A !important;
    border: 2px solid #D49B2A !important;
    padding: 15px 40px !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    font-family: inherit;
}

.tdj-btn-submit:hover {
    background: #D49B2A !important;
    color: #12172E !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 155, 42, 0.5) !important;
}

.tdj-btn-submit:active {
    transform: scale(0.98);
}

/* ===========================
   MESSAGES DE SUCCÈS / ERREUR
   =========================== */
.tdj-contact-success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
    color: #F1F1B4;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease;
}

.tdj-contact-success h3 {
    color: #4CAF50;
    margin: 0 0 15px 0;
    font-size: 1.5em;
}

.tdj-contact-success p {
    margin: 0;
    font-size: 1.1em;
}

.tdj-contact-errors {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    color: #F1F1B4;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    animation: shake 0.5s ease;
}

.tdj-contact-errors h4 {
    color: #f44336;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.tdj-contact-errors ul {
    margin: 0;
    padding-left: 20px;
}

.tdj-contact-errors li {
    margin-bottom: 8px;
    color: #F1F1B4;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .tdj-contact-container {
        padding: 25px 20px;
        margin: 20px 15px;
		margin-top: 110px;
    }
    
    .tdj-contact-title .lettre {
        font-size: 22px !important;
    }
    
    .tdj-form-row input,
    .tdj-form-row textarea,
    .tdj-form-row select {
        font-size: 16px !important; /* Évite le zoom sur iOS */
    }
    
    .tdj-btn-submit {
        width: 100%;
        padding: 15px 20px !important;
    }
}

@media (max-width: 480px) {
    .tdj-contact-title .lettre {
        font-size: 18px !important;
    }
    
    .tdj-contact-container {
        padding: 20px 15px;
    }
}
















/* CSS PAGE WOOCOMMERCE*/
.entry-header  {
    display: none !important;
}

.page-id-358 #page {	
    background-image: url('https://scribe-et-legendes.fr/wp-content/uploads/2026/02/fond_logo_long-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.woocommerce{
	margin-top: 130px !important;
}


.custom-thankyou-title {
  text-align: center;
  margin-bottom: 30px;
	margin-top: 30px;
}

/* 1. Conteneur parent relatif */
.woocommerce-order-details,.woocommerce-customer-details {
    position: relative !important;
    padding: 20px !important;
    overflow: visible !important;
    box-sizing: border-box;
}

/* 2. Image de fond absolue (ombre incluse) */
.woocommerce-customer-details::before, .woocommerce-order-details::before {
    content: "";
    position: absolute;
    top: 0; 
	left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://scribe-et-legendes.fr/wp-content/uploads/2026/01/carte-horizontale-1.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: ;
    z-index: 1;
    filter: drop-shadow(0px 10px 14px rgba(0,0,0,0.5))
            drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
}

/* 3. Contenu au-dessus de l’image */
.woocommerce-order-details > *,.woocommerce-customer-details > * {
    position: relative;
    z-index: 2;
}



.table, td, th {
	border-color: #2835673D !important;
	overflow-y: hidden !important;
}

.woocommerce-order h2{
	background: none !important;
	border-style: none !important;
}

.woocommerce-js table.shop_table{
	border-style: none !important;
}

.woocommerce-customer-details address{
	border-style: none !important;
}

/* Page tableau de bord */ 


.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before {
    font-family: WooCommerce;
    content: '\e028';
    display: inline-block !important;
    position: static !important;
    top: 1em;
    left: 1.5em;
}













/*C FAIT CSS*/

.cfait h2 {
    font-family: 'Roboto', sans-serif !important;
    color: #7A7A7A !important;
    font-size: 2rem !important; /* Environ 32px */
    line-height: 1.3;           /* Pour éviter que les lignes se touchent */
    margin-bottom: 20px;        /* Pour aérer avec le contenu suivant */
    font-weight: 700;           /* Roboto est plus élégant en gras pour les titres */
}

/* Ajustement pour les petits écrans */
@media (max-width: 768px) {
    .cfait h2 {
        font-size: 1.5rem !important; /* Environ 24px */
    }
}

.cfait h3 {
    font-family: 'Roboto', sans-serif !important;
    color: #7A7A7A !important;
    font-size: 1.5rem !important; /* Environ 24px */
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 600; /* Un peu moins gras que le H2 pour marquer la différence */
}

/* Ajustement mobile */
@media (max-width: 768px) {
    .cfait h3 {
        font-size: 1.25rem !important; /* Environ 20px */
    }
}
