/*
Theme Name: Black Orion Theme - Personnalisé
Theme URI: https://preprod.black-orion.fr/
Description: Thème enfant personnalisé pour Black Orion basé sur Madara
Author: Assistant Manus
Version: 1.0
Template: madara
*/

/* Personnalisation des pages d'articles */
.page .c-blog-post .entry-content,
.single .c-blog-post .entry-content {
    background-color: rgba(20, 25, 45, 0.8); /* Fond bleu foncé semi-transparent */
    color: #ffffff; /* Texte blanc */
    font-family: 'Poppins', sans-serif;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
    line-height: 1.6;
}

.container {
    margin-top: 100px !important;
}

/* l’image à l’intérieur s’adapte au conteneur */
.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* --- toutes les images insérées dans le contenu --- */
.black-orion-entry-content_wrap img {
    max-width: 700px;      /* largeur max 700px */
    width: 100%;           /* sinon 100% de leur conteneur */
    height: auto;
    margin: 25px auto;     /* centré avec un peu d’espace */
    display: block;
}

/* Style des titres dans les articles */
.page .c-blog-post .entry-content h1,
.page .c-blog-post .entry-content h2,
.page .c-blog-post .entry-content h3,
.page .c-blog-post .entry-content h4,
.single .c-blog-post .entry-content h1,
.single .c-blog-post .entry-content h2,
.single .c-blog-post .entry-content h3,
.single .c-blog-post .entry-content h4 {
    color: #ff6b6b; /* Rouge clair pour les titres */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Style des listes à puces */
.page .c-blog-post .entry-content ul,
.single .c-blog-post .entry-content ul {
    list-style-type: none;
    padding-left: 20px;
}

.page .c-blog-post .entry-content ul li,
.single .c-blog-post .entry-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.page .c-blog-post .entry-content ul li:before,
.single .c-blog-post .entry-content ul li:before {
    content: "•";
    color: #ff6b6b; /* Rouge clair pour les puces */
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Style des liens */
.page .c-blog-post .entry-content a,
.single .c-blog-post .entry-content a {
    color: #7dc4ff; /* Bleu clair pour les liens */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page .c-blog-post .entry-content a:hover,
.single .c-blog-post .entry-content a:hover {
    color: #ff6b6b; /* Rouge clair au survol */
    text-decoration: underline;
}

/* Style du texte en gras */
.page .c-blog-post .entry-content strong,
.single .c-blog-post .entry-content strong {
    color: #ffcc5c; /* Jaune pour le texte en gras */
    font-weight: 600;
}

/* Style de la date de mise à jour */
.page .c-blog-post .entry-content p:first-of-type,
.single .c-blog-post .entry-content p:first-of-type {
    font-style: italic;
    color: #aaaaaa;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Amélioration de l'espacement et de la lisibilité */
.page .c-blog-post .entry-content p,
.single .c-blog-post .entry-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Style du titre de la page */
.page .c-blog-post .entry-header .entry-title,
.single .c-blog-post .entry-header .entry-title {
    color: #ffffff;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

/* Style de la date de publication */
.page .c-blog-post .entry-meta,
.single .c-blog-post .entry-meta {
    text-align: center;
    margin-bottom: 20px;
    color: #aaaaaa;
}

/* Styles pour l'image à la une et les effets spatiaux */

/* Style de l'image à la une */
.featured-image-wrapper {
    margin: 0 auto 30px;
    max-width: 450px;  
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

/* --- conteneur de l'image à la une --- */
.featured-image-container {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.featured-image-container:hover .featured-image {
    transform: scale(1.05);
}

/* Amélioration de l'effet de survol sur l'image à la une */
.featured-image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(125, 196, 255, 0.2), rgba(255, 107, 107, 0.2));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.featured-image-wrapper:hover::after {
    opacity: 1;
}

/* Effet de bordure lumineuse sur l'image à la une */
.featured-image-container {
    border: 1px solid rgba(251, 255, 125, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(251, 255, 125, 0.2);
    transition: box-shadow 0.5s ease;
}

.featured-image-container:hover {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5), 0 0 40px rgba(125, 196, 255, 0.4);
}

/* Effet de superposition spatiale */
.space-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 50, 0.3), rgba(128, 0, 128, 0.3));
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.featured-image-container:hover .space-overlay {
    opacity: 0.4;
}

/* Effet de particules spatiales */
.space-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 
        100px 100px,
        150px 150px,
        200px 200px;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

/* Styles supplémentaires pour les étoiles */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Étoiles */
.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

/* Conteneur de l'animation de la fusée */
.rocket-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* S'adapte à la hauteur de .black-orion-entry-content */
    pointer-events: none;
    z-index: 3;
}

/* Style de la fusée */
.rocket {
    position: absolute;
    width: 60px;    /* votre taille */
    height: 120px;  /* idem */
    left: -60px;    /* -1× sa largeur pour qu’elle parte juste à l’extérieur */
    bottom: 0;      /* alignée sur le bas */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M12 2.5s-4 2.5-4 7.5c0 3.5 2 5 2 5l-2 2h8l-2-2s2-1.5 2-5c0-5-4-7.5-4-7.5zm-1 14.5h2v5h-2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: rocketFlight 6s infinite linear;
    opacity: 0;
    transform: rotate(45deg);  /* ← ici on oriente la fusée */
}

/* Animation simple : traverse toute la hauteur de .black-orion-entry-content */
@keyframes rocketFlight {
    0% {
      left: -60px;     /* hors à gauche */
      bottom: 0;       /* en bas */
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      left: calc(100% + 60px);    /* complètement à droite */
      bottom: calc(100% + 120px); /* complètement en haut */
      opacity: 0;
    }
  }
  

/* Amélioration de l'effet de planète */
.planet {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #7dc4ff, #1a237e);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 50px rgba(125, 196, 255, 0.5);
}

/* Effet de halo autour du titre */
.entry-title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(125, 196, 255, 0.2) 0%, rgba(125, 196, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Amélioration de l'effet de traînée de comète */
.comet {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8), rgba(125, 196, 255, 0.5), rgba(255, 255, 255, 0));
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transform: rotate(-45deg);
    animation: cometFly 8s infinite linear;
}

@keyframes cometFly {
    0% {
        transform: translate(-100px, -100px) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(100% + 100px), calc(100% + 100px)) rotate(-45deg);
        opacity: 0;
    }
}

/* Styles supplémentaires pour les articles */
.black-orion-entry-content {
    background-color: rgba(26, 25, 20, 0.8) !important;
    color: #ffffff !important; /* Texte blanc */
    font-family: 'Poppins', sans-serif !important;
    padding: 30px !important;
    border-radius: 10px !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3) !important;
    margin: 20px 0 !important;
    line-height: 1.6 !important;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 247, 125, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3), 0 0 30px rgba(125, 196, 255, 0.1) inset;
    min-height: 600px; /* Hauteur minimale pour que la fusée ait assez de place */
    position: relative;
    overflow: hidden;
}

/* Ajout d'un effet de transition sur le conteneur */
.black-orion-custom-post {
    transition: transform 0.3s ease;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.black-orion-custom-post:hover {
    transform: translateY(-5px);
}

/* Amélioration du style des titres de section */
.black-orion-entry-content h4 {
    font-size: 1.4em !important;
    margin-top: 30px !important;
    position: relative !important;
    padding-left: 15px !important;
}

.black-orion-entry-content h4:before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 5px !important;
    background: linear-gradient(to bottom, #ff6b6b, #7dc4ff) !important;
    border-radius: 3px !important;
}

/* Style pour les paragraphes */
.black-orion-entry-content p {
    text-align: justify !important;
    margin-bottom: 20px !important;
}

/* Style pour les images dans les articles */
.black-orion-entry-content img {
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 25px auto !important;
    transition: transform 0.3s ease !important;
}

.black-orion-entry-content img:hover {
    transform: scale(1.02) !important;
}

/* Style pour les tableaux */
.black-orion-entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 25px 0 !important;
    background-color: rgba(30, 35, 55, 0.5) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.black-orion-entry-content table th {
    background-color: rgba(255, 107, 107, 0.7) !important;
    color: #ffffff !important;
    padding: 12px !important;
    text-align: left !important;
}

.black-orion-entry-content table td {
    padding: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.black-orion-entry-content table tr:last-child td {
    border-bottom: none !important;
}

/* Style pour les blockquotes */
.black-orion-entry-content blockquote {
    background-color: rgba(125, 196, 255, 0.1) !important;
    border-left: 5px solid #7dc4ff !important;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    font-style: italic !important;
    position: relative !important;
}

.black-orion-entry-content blockquote:before {
    content: '"' !important;
    font-size: 3em !important;
    color: rgba(125, 196, 255, 0.2) !important;
    position: absolute !important;
    top: -10px !important;
    left: 10px !important;
}

/* Style pour les listes numérotées */
.black-orion-entry-content ol {
    counter-reset: item !important;
    padding-left: 20px !important;
}

.black-orion-entry-content ol li {
    position: relative !important;
    padding-left: 30px !important;
    margin-bottom: 15px !important;
    counter-increment: item !important;
}

.black-orion-entry-content ol li:before {
    content: counter(item) !important;
    background-color: #ff6b6b !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
    border-radius: 50% !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 22px !important;
    height: 22px !important;
    text-align: center !important;
    line-height: 22px !important;
}


/* Responsive design pour les mobiles */
@media (max-width: 768px) {
    .page .c-blog-post .entry-content,
    .single .c-blog-post .entry-content {
        padding: 20px;
    }
    
    .featured-image-wrapper { 
        max-width: 100%; 
        margin-bottom: 20px;
    }
    .black-orion-entry-content_wrap img { 
        max-width: 100%; 
    }

    .page .c-blog-post .entry-header .entry-title,
    .single .c-blog-post .entry-header .entry-title {
        font-size: 1.8em;
    }

    .black-orion-entry-content::after {
        opacity: 0.05; /* Réduire l'opacité de la planète sur mobile */
    }

    .black-orion-entry-content {
        min-height: 500px; /* Hauteur minimale pour mobile */
    }

    .rocket {
        left: 0; /* Commence à l'intérieur du conteneur */
        bottom: 0;
        width: 40px;
        height: 80px;
    }
}