/*
Theme Name: Oracleira
Theme URI: https://www.oracleira.ovh
Author: Iris / LMB
Description: Thème sur mesure de l'oracle Oracleira — 73 cartes, tirages, galerie. Portage WordPress du site oracleira.ovh.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: oracleira
*/

/* Les styles du site sont chargés depuis assets/css/ (app.css, perso.css, galerie.css). */

/* Fond de page (repris de l'include menu.html du site d'origine) */
body {
	background-color: #3C2E43;
	font-family: 'Josefin Sans', sans-serif; /* police de base du site */
}

/* Les titres décoratifs restent en Snowflake (prioritaire sur la règle Josefin) */
.titrecarte,
p.titrecarte,
.documentation p.titrecarte,
.titre,
.soustitre,
.section-title {
	font-family: "Snowflake", Times, serif;
}

/* Anti-flash du menu au chargement : le tiroir (effet reveal) est situé
   DERRIÈRE la page ; sans couleur de fond opaque, il est visible le temps
   que l'image purple.jpg se charge. */
.pure-pusher,
.pure-pusher-container {
	background-color: #2b1c31;
}

/* Ces éléments fixaient Times New Roman dans app.css : on aligne sur Josefin */
.bold_associations {
	font-family: 'Josefin Sans', sans-serif;
	font-weight: 600;
}
footer.footer,
footer.footer a,
.nav-links ul li a,
.copyright {
	font-family: 'Josefin Sans', sans-serif;
}

/* Footer (styles repris de footer.html) */
footer.footer {
	background-color: #121212;
	color: gray;
	text-align: center;
	position: relative;
	margin-bottom: -50px;
}
footer.footer .content { margin-bottom: 10px; }
footer.footer .social-links a {
	text-decoration: none; color: gray; font-size: 1.5em;
	margin: 0 10px; transition: 0.5s;
}
footer.footer .social-links a:hover { color: white; }
footer.footer .nav-links ul { padding: 0; margin: 20px 0; list-style-type: none; }
footer.footer .nav-links ul li { display: inline-block; margin: 0 15px; }
footer.footer .nav-links ul li a { text-decoration: none; color: gray; transition: 0.3s; }
footer.footer .nav-links ul li a:hover { color: white; }
footer.footer .copyright { font-size: 0.9em; margin-top: 15px; }
footer.footer .footer-image { width: 100%; height: auto; display: block; margin: 0; padding: 0; }
footer.footer .footer-ornement {
	width: 100%;
	max-width: 1100px;
	height: auto;
	display: block;
	margin: 25px auto 15px;
	padding: 0 20px;
}

/* Bannière d'en-tête (styles repris de banner.html) */
.banner-header .image-container { width: 100%; }
.banner-header .image-container img {
	position: absolute; top: 0; left: 0; width: 100%; height: auto;
	animation: oracleira-fadein 8s ease-out;
}
.banner-header .image-container .top-image { opacity: 0; }
.banner-header .image-container:hover .top-image { opacity: 1; transition: opacity 5s; }
@keyframes oracleira-fadein { from { opacity: 0; } to { opacity: 1; } }

/* Police du texte courant : Josefin Sans (auto-hébergée, voir assets/css/josefin.css) */
.intro,
p.intro,
.documentation p,
.documentation li,
.oracleira-contact-form,
.acd {
	font-family: 'Josefin Sans', sans-serif;
	font-weight: 300;
	line-height: 1.6;
}
.intro strong,
.bold_associations {
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Responsive mobile                                                   */
/* ------------------------------------------------------------------ */
img { max-width: 100%; height: auto; }

@media only screen and (max-width: 40em) {
	html, body { overflow-x: hidden; }

	/* Les tableaux (pages tirages) passent en blocs empilés */
	.pure-pusher table,
	.pure-pusher tbody,
	.pure-pusher tr,
	.pure-pusher td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
		text-align: center;
	}
	.pure-pusher td img { margin: 0 auto; }

	/* Image de la carte : pleine largeur sans déborder */
	.card img { width: 100%; height: auto; }

	/* Titres de sections : icône centrée au-dessus du texte */
	.titrecarte { text-align: center; }
	.titrecarte img {
		display: block;
		margin: 0 auto 10px;
		max-width: 100px;
		height: auto;
	}

	/* Respiration latérale du contenu */
	.documentation { padding-left: 10px; padding-right: 10px; }
	.section { padding-left: 10px; padding-right: 10px; box-sizing: border-box; }

	/* Grille des cartes : vignettes adaptées (2 par ligne) */
	.cards-grid img, .galerie-img { width: 150px; }

	/* Boutons de l'accueil empilés proprement */
	.button { margin-bottom: 12px; }
}

/* ------------------------------------------------------------------ */
/* Confort de navigation et finitions                                  */
/* ------------------------------------------------------------------ */

/* Halo doré au survol des vignettes de cartes */
.cards-grid a img,
.galerie-img {
	border-radius: 6px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cards-grid a:hover img,
a:hover > .galerie-img {
	transform: translateY(-5px) scale(1.04);
	box-shadow: 0 6px 22px rgba(226, 190, 120, 0.55), 0 0 10px rgba(218, 186, 226, 0.4);
}

/* Navigation carte précédente / suivante */
.carte-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	max-width: 760px;
	margin: 30px auto;
}
.carte-nav a {
	font-family: 'Josefin Sans', sans-serif;
	color: #DABAE2;
	text-decoration: none;
	font-size: 1.15em;
	letter-spacing: 1px;
	padding: 12px 18px;
	border: 1px solid rgba(218, 186, 226, 0.35);
	border-radius: 8px;
	background: rgba(21, 0, 21, 0.55);
	transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.carte-nav a:hover {
	color: #F2DCA9;
	border-color: #C79A55;
	box-shadow: 0 0 14px rgba(226, 190, 120, 0.35);
}
.carte-nav-fleche { font-size: 1.3em; color: #C79A55; }

/* Bouton étoilé « retour en haut » */
.retour-haut {
	position: fixed;
	bottom: 26px;
	right: 26px;
	z-index: 1500;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid #C79A55;
	background: rgba(35, 0, 47, 0.9);
	color: #F2DCA9;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 0.35s, transform 0.35s, box-shadow 0.35s;
}
.retour-haut.visible {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}
.retour-haut:hover { box-shadow: 0 0 16px rgba(226, 190, 120, 0.5); }

/* Apparition en fondu des sections au défilement */
.reveal-init {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-init.reveal-in {
	opacity: 1;
	transform: none;
}

/* Page 404 */
.page-404 { text-align: center; padding: 40px 15px 60px; }
.page-404 .titre { font-size: 4vw; }
.page-404 .intro { text-align: center; }
.page-404 .carte-mystere img {
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Page « Le Grand Livre » (téléchargement PDF) */
.livre-telechargement { max-width: 620px; margin: 0 auto; }
.livre-couverture { display: inline-block; margin: 10px auto 24px; }
.livre-couverture img {
	width: 300px; max-width: 80%; height: auto; border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 18px rgba(226,190,120,.25);
	transition: transform .25s ease, box-shadow .25s ease;
}
.livre-couverture:hover img {
	transform: translateY(-5px);
	box-shadow: 0 16px 48px rgba(0,0,0,.65), 0 0 24px rgba(226,190,120,.45);
}
.livre-intro { text-align: center; }
.livre-poids { color: #b79ec4; font-size: .95em; margin-top: 8px; font-family: 'Josefin Sans', sans-serif; }

/* Petit bloc « livre » dans le footer */
footer.footer .footer-livre { margin: 6px 0 4px; }
footer.footer .footer-livre a { color: #DABAE2; text-decoration: none; }
footer.footer .footer-livre a:hover { color: #F2DCA9; }

/* Ajustements propres au portage WordPress */
.cards-grid { text-align: center; }
.cards-grid a { display: inline-block; margin: 4px; }
.oracleira-contact-form { max-width: 620px; margin: 0 auto; text-align: left; }
.oracleira-contact-form label { color: #DABAE2; display: block; margin-top: 12px; }
.oracleira-contact-form input[type="text"],
.oracleira-contact-form input[type="email"],
.oracleira-contact-form textarea {
    width: 100%; padding: 8px; border-radius: 4px; border: 1px solid #6d5a76;
    background: #2b2130; color: #eee;
}
.oracleira-contact-form .form-ok { color: #9be29b; }
.oracleira-contact-form .form-err { color: #e29b9b; }


/* Logo de la barre .top : taille responsive (80px mobile comme avant, plus grand sur ecran large) */
.top .top-logo { width: 80px; height: auto; }
@media (min-width: 768px) {
    .top .top-logo { width: 150px; }
}

/* Galerie : vignettes cliquables (lightbox) */
.galerie-img { cursor: pointer; }

/* Menu horizontal du haut : visible uniquement sur grand ecran (>=1024px).
   En dessous, il est cache et c'est le menu hamburger (tiroir) qui sert. */
.top-menu { display: none; }
@media (min-width: 1024px) {
    .pure-toggle-label { display: none !important; }
    .top { display: none; }
    .top-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2.4rem;
        width: 100%;
        padding: 0.45rem 1.5rem;
        background-image: url(assets/img/topbg.fw.png);
        background-size: cover;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    .top-menu-logo img { width: 110px; height: auto; display: block; }
    .top-menu ul { list-style: none; display: flex; align-items: center; gap: 2.4rem; margin: 0; padding: 0; }
    .top-menu li { margin: 0; }
    .top-menu a {
        font-family: 'Josefin Sans', sans-serif;
        font-weight: 300;
        text-transform: uppercase;
        letter-spacing: 2.5px;
        font-size: 0.95rem;
        color: #DABAE2;
        text-decoration: none;
        border-bottom: 1px solid transparent;
        padding-bottom: 3px;
        transition: color .25s ease, border-color .25s ease;
    }
    .top-menu a:hover { color: #F2DCA9; }
    .top-menu li.active a { color: #F2DCA9; border-bottom-color: #F2DCA9; }
}

/* Sous-menu deroulant "Les tirages" (desktop uniquement, le menu top n'existe qu'a >=1024px) */
@media (min-width: 1024px) {
    .top-menu li { position: relative; }
    .top-menu a .caret { font-size: 0.7em; vertical-align: middle; }
    .top-menu .sous-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 0.5rem 0;
        min-width: 200px;
        background: rgba(25, 3, 32, 0.97);
        border: 1px solid rgba(242, 220, 169, 0.3);
        border-radius: 6px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
        z-index: 20;
    }
    .top-menu li.has-sub:hover .sous-menu,
    .top-menu li.has-sub:focus-within .sous-menu { display: block; }
    .top-menu .sous-menu li { display: block; margin: 0; }
    .top-menu .sous-menu a {
        display: block;
        padding: 0.55rem 1.3rem;
        font-size: 0.85rem;
        letter-spacing: 2px;
        border-bottom: none;
        white-space: nowrap;
    }
    .top-menu .sous-menu a:hover { background: rgba(242, 220, 169, 0.1); color: #F2DCA9; }
    .top-menu li.active .sous-menu a { color: #DABAE2; border-bottom: none; }
    .top-menu li.active .sous-menu a:hover { color: #F2DCA9; }

    /* Le menu flottant "TIRAGES" (pages tirage-*) est remplace par ce sous-menu sur grand ecran */
    .floating-menu-right { display: none !important; }
}

/* Accueil : banniere (fondu 2 images) PLEIN ECRAN a l'arrivee.
   blankoverlay.fw.png (image vide de 800px), les min-height 900px des
   .color-overlay et le padding du div.logo vide sont neutralises. */
html { scroll-behavior: smooth; }
.banner-header img[alt="blank"] { display: none; }
.banner-header .color-overlay { min-height: 0; }
.banner-header .logo { padding: 0; }
.banner-header .color-overlay > .row:first-child { max-width: none; margin: 0; width: 100%; }
.banner-header .image-container {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}
.banner-header .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

/* Fleche d'invitation a defiler, en bas de la banniere plein ecran */
.banner-header .scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 3;
    color: #F2DCA9;
    font-size: 2.2rem;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 0 14px rgba(0, 0, 0, 0.85);
    animation: oracleira-scroll-hint 2.2s ease-in-out infinite;
}
@keyframes oracleira-scroll-hint {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 12px); }
}

/* Accueil : le top menu est masque a l'arrivee et glisse depuis le haut
   des qu'on defile (classe .menu-visible posee par oracleira.js) */
.home .top-menu {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateY(-105%);
    transition: transform 0.4s ease;
}
.home .top-menu.menu-visible { transform: translateY(0); }

/* Accueil : blocs chiffres cles / tirages / grand livre */
.accueil-chiffres { padding: 42px 0; }
.chiffres-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 4.5rem;
    text-align: center;
}
.chiffres-liste li { margin: 0; }
.chiffres-liste .chiffre {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 3.2rem;
    line-height: 1;
    color: #F2DCA9;
}
.chiffres-liste .chiffre-label {
    display: block;
    margin-top: 0.55rem;
    font-family: 'Josefin Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.85rem;
    color: #DABAE2;
}
.accueil-tirages .section-title,
.accueil-livre .section-title { text-align: center; }
.tirages-icones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.6rem;
    margin: 2.4rem 0;
}
.tirages-icones a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.tirages-icones a:hover { transform: translateY(-6px); }
.tirages-icones img { width: 110px; height: 110px; padding: 0; }
.tirages-icones span {
    font-family: 'Josefin Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: #DABAE2;
}
.tirages-icones a:hover span { color: #F2DCA9; }
.livre-accueil {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.6rem;
    margin-top: 2rem;
}
.livre-accueil > a img {
    width: 230px;
    height: auto;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s ease;
}
.livre-accueil > a:hover img { transform: scale(1.04); }
.livre-accueil-texte { max-width: 520px; }

/* WooCommerce : habillage aux couleurs du site */
.oracleira-woocommerce { padding-bottom: 40px; }
.oracleira-woocommerce h1,
.oracleira-woocommerce h2,
.oracleira-woocommerce .woocommerce-products-header__title,
.oracleira-woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #DABAE2;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 1.5px;
}
.oracleira-woocommerce .price,
.oracleira-woocommerce .woocommerce-Price-amount { color: #F2DCA9; }
.oracleira-woocommerce a.button,
.oracleira-woocommerce button.button,
.oracleira-woocommerce .woocommerce #respond input#submit {
    background: #23002F;
    color: #F2DCA9;
    border: 1px solid rgba(242, 220, 169, 0.4);
    border-radius: 4px;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 1.5px;
}
.oracleira-woocommerce a.button:hover,
.oracleira-woocommerce button.button:hover { background: #3a1049; color: #F2DCA9; }

/* Les boutons « icon-book » gardent le design des boutons de l'accueil,
   même dans l'espace Mon compte (sinon le style boutique ci-dessus les écrase). */
.oracleira-woocommerce a.button.icon-book,
.woocommerce-MyAccount-content a.button.icon-book {
	background-color: #482837;
	border: 2px solid #C9B9D7;
	border-radius: 4px;
	color: #C2ACCC;
	font-size: 1.125rem;
	letter-spacing: normal;
	padding: 14px 23px;
}
.oracleira-woocommerce a.button.icon-book:hover,
.woocommerce-MyAccount-content a.button.icon-book:hover {
	background-color: #5E334A;
	border: 2px solid #fff;
	color: #B49CC7;
}
.oracleira-woocommerce ul.products li.product img { padding: 0; border-radius: 6px; }
.oracleira-woocommerce .onsale { background: #F2DCA9; color: #23002F; }

/* Espace Mon compte (WooCommerce) : navigation et contenu lisibles */
.woocommerce-MyAccount-navigation {
    background: rgba(21, 0, 21, 0.72);
    border: 1px solid rgba(218, 186, 226, 0.25);
    border-radius: 10px;
    padding: 8px 0;
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 13px 22px;
    color: #DABAE2;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.88rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    color: #F2DCA9;
    border-left-color: #C79A55;
    background: rgba(242, 220, 169, 0.07);
}
.woocommerce-MyAccount-content {
    background: rgba(21, 0, 21, 0.72);
    border: 1px solid rgba(218, 186, 226, 0.18);
    border-radius: 10px;
    padding: 26px 30px;
    color: #E2B8DF;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}
.woocommerce-MyAccount-content a { color: #F2DCA9; }
.woocommerce-MyAccount-content a:hover { color: #DABAE2; }

/* Menu du haut : jamais de retour a la ligne, et resserrement sur ecrans moyens */
.top-menu a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1320px) {
    .top-menu { gap: 1.1rem; }
    .top-menu ul { gap: 1.1rem; }
    .top-menu a { font-size: 0.78rem; letter-spacing: 1.5px; }
    .top-menu-logo img { width: 84px; }
}

/* ------------------------------------------------------------------ */
/* Correctifs portrait mobile/tablette (19/07/2026)                    */
/* ------------------------------------------------------------------ */

/* Bannière d'accueil en portrait : une image DÉDIÉE au format portrait
   (logo-portrait.fw.png, 1080x1920, recomposée depuis l'originale) est
   servie via <picture> dans banner.php — elle remplit l'écran en cover
   sans jamais rogner l'emblème ni le nom. Le <picture> est transparent
   pour le CSS : l'img .top-image garde les styles existants. */
.banner-header .image-container picture { position: static; }

/* Téléphone : hamburger et croix plus fins (le rond de 70px avec des
   traits de 35x4 px écrasait l'écran — passage à 46px / traits 22x2px) */
@media (max-width: 700px) {
	.pure-toggle-label {
		width: 46px;
		height: 46px;
		top: 12px;
	}
	.pure-toggle-label[data-toggle-label='right'] { right: 14px; }
	.pure-toggle-label .pure-toggle-icon,
	.pure-toggle-label .pure-toggle-icon:before,
	.pure-toggle-label .pure-toggle-icon:after {
		width: 22px;
		height: 2px;
	}
	.pure-toggle-label .pure-toggle-icon { transform: translate3d(-50%, -2px, 0); }
	.pure-toggle-label .pure-toggle-icon:before { transform: translate3d(-50%, -9px, 0); }
	.pure-toggle-label .pure-toggle-icon:after { transform: translate3d(-50%, 7px, 0); }
}
