/* ===== Typo (base) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root{
  --text: 18px;
  --lh: 1.75;
}

html{ font-size: var(--text); }

body{
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: var(--lh);
  color: #222;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Titres */
h1,h2,h3,h4,h5,h6{
  font-family: "Source Serif 4", serif;
  font-weight: 700;
  letter-spacing: 0.01em; /* 0.5px -> trop espacé */
}


/* ===== Cyclorum Blog Pack (minimal) ===== */



/* Ajout de la classe 'product-card' à la Row (Ligne) */
/* Dans Divi → Row → Advanced → CSS Class : product-card */

/* Cartes produits (Divi row) */
.et_pb_row.product-card{
  max-width: var(--post-max);
  margin: 18px auto;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  overflow: hidden;
}

.et_pb_row.product-card:hover{
  transform: translateY(-2px);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
}

.et_pb_row.product-card ul{ margin: 10px 0 0; padding-left: 1.1em; }
.et_pb_row.product-card li{ margin: 4px 0; }

.product-card .price{
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: green;
  color: #fff;
  font-weight: 600;
}

.product-card .old{
  color: #666;
  text-decoration: line-through;
  margin-left: 8px;
}

/* Image de tête : éviter les espacements énormes */
.et_pb_post_content .wp-block-image,
.et_pb_post_content .et_pb_image{
  margin-bottom: 1px !important;
}


/* Texte (si Divi écrase, on peut remettre !important ici seulement) */
p, li, blockquote, .quote-content, .intro-text, article, .hover-text{
  font-family: inherit;
}

/* Blockquote */
blockquote{
  font-style: italic;
  font-size: 1.05em; /* 1.2em était souvent trop gros */
  color: #333;
  background: #f9f9f9;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
}

blockquote h3{
  color: #0056B3;
}

/* Fix selector : c'était probablement une classe */
.interview-image{
  display: block;
  max-width: 80%;
  margin: 20px auto;
  border-radius: 8px;
}


/* 📌 Effet clignotant sur la page spécifique */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.page-id-30521 #blinking-text {
    animation: blink 2s infinite;
}

/* 📌 Mise en forme spécifique à .page-id-30521 */
.page-id-30521 p {
    text-align: left;
    color: red;
}
.page-id-30521 span {
    color: red;
}
.page-id-30521 del {
    text-decoration: line-through;
    background-color: #fbb;
    color: #555;
}
.page-id-30521 ins {
    text-decoration: none;
    background-color: #d4fcbc;
}

/* 📌 Interview de Tom */
/* Style global */
article {
    margin: auto;
    font-family: inherit;
    color: #333;
}


/* 📌 Conteneur des réponses */
.quote-content {
    font-size: 20px;
    font-family: inherit;
    line-height: 1.7;
    font-style: italic;
    color: #222;
    position: relative;
    padding: 0;
    display: block;
}

/* 📌 Style de l'introduction de l'interview */
.intro-text {
    font-size: 18px; /* Taille réduite pour plus de lisibilité */
    font-family: inherit;
    font-weight: 400; /* Supprime le gras */
    color: #333;
    line-height: 1.6;
    text-align: justify; /* Pour une lecture plus fluide */
    margin-bottom: 20px;
}

/* Vérification et correction des conteneurs parents */
.interview-image-container {
    text-align: center; /* Centre tout ce qu’il contient */
    width: 100%; /* Prend toute la largeur */
}

/* Corrige les images à l’intérieur des blocs WordPress */
.wp-block-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* pour les articles, remplace une image par du texte */

/* ✅ Conteneur principal */
.hover-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 15px auto;
}

/* ✅ Image responsive */
.hover-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out;
}

/* ✅ Boîte de texte responsive */
.hover-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 

/* ✅ Prend toute la hauteur disponible */
	
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    font-size: 15px;
    font-family: inherit;
    border-radius: 8px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto; /* ✅ Active le scroll uniquement si nécessaire */
    max-height: 100%; /* ✅ Permet au contenu de ne pas être coupé */
}

.prix-reduit {
    font-size: 10pt;
}


/* Style pour les titres des produits */
.hover-text h4 {
    font-size: 16px; /* Réduit la taille de la police */
    font-weight: normal; /* Utilise un poids de police normal */
    margin-bottom: 8px; /* Ajuste la marge inférieure */
    color: #00ff1a; /* Utilise une couleur qui contraste bien avec le fond */
}

/* Style pour les titres des produits sur mobile */
@media screen and (max-width: 768px) {
    .hover-text h4 {
        font-size: 14px; /* Encore plus petit sur mobile */
    }
}





/* ✅ Correction du titre */
.hover-text h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: lime; /* ✅ Jaune pour éviter le blanc sur blanc */
    text-align: center;
}

/* ✅ Effet hover sur ordinateur uniquement */
@media (hover: hover) and (pointer: fine) {
    .hover-container:hover .hover-image {
        opacity: 0;
    }
    .hover-container:hover .hover-text {
        opacity: 1;
    }
}

/* ✅ Adaptation spécifique pour smartphone et tablette */
@media screen and (max-width: 768px) {
    .hover-container {
        max-width: 100%;
    }

    /* 📱 Afficher directement le texte sur mobile avec un bon contraste */
    .hover-text {
        position: relative;
        opacity: 1; /* Texte toujours visible sur mobile */
        background: rgba(0, 0, 0, 0.85);
        padding: 15px;
        font-size: 14px;
        height: auto;
        max-height: 400px; /* ✅ Permet au texte d'avoir une hauteur correcte */
        overflow-y: auto; /* ✅ Active le scroll sur mobile si nécessaire */
    }

    /* ✅ Assurer que le titre est bien visible */
    .hover-text h3 {
        color: #fbc02d; /* ✅ Jaune pour un bon contraste */
    }

    .hover-image {
        display: none; /* 📱 Cache l’image pour éviter les soucis de hover */
    }
}
