/*
Theme Name: Bravo Sensei
Theme URI: https://www.bravosensei.com
Author: Bravo Sensei
Author URI: https://www.bravosensei.com
Description: Thème WordPress du site Bravo Sensei – Shiatsu et soins énergétiques
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bravosensei
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom right, #002D9E, #0D9E00); /*bleu et vert fort */
    /*background: linear-gradient(to bottom right, #a0d8f1, #c3f0c2);*/ /* bleu et vert pastel */
    /*background-color: #f9f9f9; color: #333;*/ /* original */
    font-size: 16px;
}

a {
    color: #2c3e50;
    text-decoration: none;
}

a:hover {
    color: #e67e22;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

nav ul li {
    position: relative;
    margin-right: 20px;
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    margin: 0;
    padding: 5px 20px;
    white-space: nowrap;
}

nav ul li a.button {
    background-color: #e67e22;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav ul li a.button:hover {
    background-color: #d35400;
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c3e50;
}

h2 {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #34495e;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

ul li {
    margin-bottom: 5px;
}

/* ===== FORMS ===== */
form {
    margin-top: 20px;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form input[type="submit"] {
    background-color: #e67e22;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

form input[type="submit"]:hover {
    background-color: #d35400;
}

/* ===== FOOTER ===== */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    margin-top: 40px;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer ul li a {
    color: #fff;
    font-size: 0.9em;
}

footer ul li a:hover {
    text-decoration: underline;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    nav ul li ul {
        position: static;
        box-shadow: none;
    }
}


/* ===== IMAGES ===== */
.image-illustration-diapason {
    display: block;
    margin: 20px auto;
    max-width: 70%;
    height: auto;
}



/* Style de base pour l'ordinateur */
.navigation-principale ul {
    display: flex;                  /* Aligne les éléments en ligne */
    flex-wrap: nowrap;              /* INTERDIT le retour à la ligne */
    justify-content: space-between; /* Espace les 10 éléments régulièrement */
    list-style: none;               /* Enlève les puces de la liste */
    padding: 0;
    margin: 0;
    overflow-x: auto;               /* Si la fenêtre rétrécit, on peut faire défiler de gauche à droite */
    white-space: nowrap;            /* Empêche le texte des liens de se couper en deux */
}

.navigation-principale li {
    padding: 10px 15px;             /* Donne de l'espace cliquable autour de chaque lien */
}








/* On cache le bouton burger sur ordinateur */
.burger-btn {
    display: none;
}

/* ==========================================================================
   MOBILE : Écrans de moins de 768px
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* On affiche enfin le bouton burger */
    .burger-btn {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    /* Dessin des 3 barres horizontales */
    .burger-btn .barre {
        width: 100%;
        height: 3px;
        background-color: #333; /* Couleur de vos barres */
        transition: all 0.3s ease;
    }

    /* Masquage du menu par défaut sur mobile + transformation en panneau vertical */
    .menu-elements {
        display: none; /* CACHÉ par défaut */
        flex-direction: column;
        position: absolute;
        top: 60px; /* À ajuster selon la hauteur de votre header */
        left: 0;
        width: 100%;
        background-color: #ffffff; /* Fond du menu déroulant */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .menu-elements li {
        text-align: center;
        width: 100%;
        padding: 15px 0;
    }

    /* LA CLÉ : Quand cette classe est ajoutée en JS, le menu s'affiche */
    .menu-elements.menu-ouvert {
        display: flex;
    }
}