/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

/* ==========================================
   DESIGN ZONE DE COMMENTAIRES SUR-MESURE
   ========================================== */

/* Conteneur principal */
#comments {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Titres (Laisser un commentaire / N commentaires) */
#comments .comments-title,
#comments .comment-reply-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
}

/* Texte "Connecté en tant que..." */
#comments .logged-in-as {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}
#comments .logged-in-as a {
    color: #2c3e50;
    text-decoration: underline;
}

/* Champ de texte (Textarea) et champs du formulaire */
#comments textarea,
#comments input[type="text"],
#comments input[type="email"],
#comments input[type="url"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background-color: #f9fafb;
    font-size: 15px;
    color: #333333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Focus sur les champs */
#comments textarea:focus,
#comments input[type="text"]:focus,
#comments input[type="email"]:focus {
    outline: none;
    border-color: #2c3e50;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* Bouton de validation */
#comments .form-submit input[type="submit"],
#comments #submit {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    display: inline-block;
    float: right;
}

/* Effet survol du bouton */
#comments .form-submit input[type="submit"]:hover,
#comments #submit:hover {
    background-color: #1a252f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Nettoyage du float sous le bouton */
#comments .comment-form::after {
    content: "";
    display: table;
    clear: both;
}

/* Style de la liste des commentaires déposés */
#comments .comment-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

#comments .comment-body {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #2c3e50;
}

#comments .comment-meta {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 10px;
}

#comments .comment-author .fn {
    font-weight: bold;
    color: #2c3e50;
    font-style: normal;
}

/* BOUTON RETOUR ARTCLE DE BLOG */
/* Positionnement et comportement Sticky du conteneur */
.container-retour-sticky {
    position: fixed; /* Fixe le bouton par rapport à l'écran */
    top: 150px;       /* Distance depuis le haut de l'écran (ajuster si besoin avec le header) */
    left: 30px;      /* Distance depuis la gauche (pour le détacher du bord) */
    z-index: 9999;   /* S'assure qu'il passe au-dessus de tout le contenu */
}

/* Design du bouton */
.btn-retour-sticky {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background-color: #2c3e50; /* Couleur de fond (ajuster si besoin) */
    color: #ffffff !important;   /* Couleur du texte */
    text-decoration: none !important;
    border-radius: 50px;       /* Bords très arrondis pour un look moderne */
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Ombre portée douce */
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Style de la flèche */
.fleche-retour {
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* Comportement au survol (Hover) */
.btn-retour-sticky:hover {
    background-color: #ffffff;  /* Fond blanc au survol */
    color: #2c3e50 !important;   /* Texte couleur foncée */
    border-color: #2c3e50;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Animation de la flèche au survol */
.btn-retour-sticky:hover .fleche-retour {
    transform: translateX(-5px); /* Décale la flèche vers la gauche */
}

/* Masquer le texte "Retour" sur mobile pour ne garder que la flèche (plus propre) */
@media (max-width: 768px) {
    .container-retour-sticky {
        top: 80px;
        left: 15px;
    }
    
    .texte-retour {
        display: none; /* Masque le texte */
    }
    
    .btn-retour-sticky {
        padding: 8px 14px;  /* Ajuste le padding pour un bouton rond */
        border-radius: 50%;
    }
    
    .fleche-retour {
        margin: 0;
    }
}

/* ==========================================
   FIXER LE HEADER EN STICKY (#site-header)
   ========================================== */

#site-header {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #ffffff; /* S'assure que le fond reste blanc au défilement */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); /* Ombre légère pour détacher du contenu */
    transition: all 0.3s ease;
}

/* Decalage si la barre d'administration WordPress est visible */
body.admin-bar #site-header {
    top: 32px !important;
}

/* Decalage de la barre d'admin en version mobile */
@media (max-width: 782px) {
    body.admin-bar #site-header {
        top: 46px !important;
    }
}

/* ==========================================
   BOUTONS DE FILTRAGE CATÉGORIES (VISUEL ÉPURÉ)
   ========================================== */

.navigation-categories-blog {
    margin: 30px 0 45px 0;
    text-align: center;
}

.liste-categories-blog {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.liste-categories-blog li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Réinitialisation et style des boutons sous forme d'onglets */
.btn-filter-cat {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    padding: 10px 22px;
    background-color: #f4f6f8;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    border: 2px solid #e1e8ed;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

/* Effet au survol */
.btn-filter-cat:hover {
    background-color: #ffffff;
    border-color: #2c3e50;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Bouton actif (catégorie sélectionnée) */
.btn-filter-cat.active {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    border-color: #2c3e50 !important;
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.25);
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .liste-categories-blog {
        gap: 8px;
    }
    .btn-filter-cat {
        padding: 8px 16px;
        font-size: 13px;
    }
}