/*
Theme Name: Comète Énergie Kinésiologie
Theme URI: https://www.comete-energie.fr/ (ou votre URL de site)
Author: Sabrina ROBERT
Author URI: https://www.comete-energie.fr/ (ou votre URL de site)
Description: Thème personnalisé pour Comète Énergie Kinésiologie.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comete-energie
*/

/* Le reste de votre CSS existant suit ici */


/* -------------------- */
/* STYLE GLOBAL */
/* -------------------- */

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
    background-image: url("img/background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.6;
    font-size: 18px; /* équivalent zoom 125% */
}

/* Voile de lisibilité */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(1px);
    z-index: -1;
}

/* -------------------- */
/* HEADER */
/* -------------------- */

header {
    background-color: rgba(94, 164, 162, 0.85);
    padding: 6px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(4px);
}

header h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul.main-navigation li a { /* Cible le menu généré par wp_nav_menu */
    color: white;
    text-decoration: none;
    margin-left: 35px;
    font-size: 20px;
    font-weight: 500;
}

header nav ul.main-navigation li a:hover { /* Cible le menu généré par wp_nav_menu */
    text-decoration: underline;
}

/* -------------------- */
/* LAYOUT GLOBAL */
/* -------------------- */

.container {
    width: 92%;            /* largeur parfaite */
    max-width: 1400px;
    margin: auto;
    padding: 40px 0;
}

/* -------------------- */
/* SECTION ACCUEIL */
/* -------------------- */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 2vw;
    padding-right: 2vw;
}

.hero-text {
    flex: 1;
    max-width: 60%;   /* assez large pour le titre */
    margin-top: 10px;
}

.hero-text h1 {
    color: #2d4d4c;
    max-width: none;          /* enlève la limite */
    white-space: nowrap;      /* empêche les retours à la ligne */
    font-size: 2.4rem;        /* taille parfaite */
}

.hero-text p {
    max-width: 650px;
    line-height: 1.55;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img img {
    width: 100%;
    max-width: 380px;       /* taille parfaite */
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

/* -------------------- */
/* BOUTONS */
/* -------------------- */

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #5ea4a2;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
}

.btn:hover {
    background-color: #4d8d89;
}

/* -------------------- */
/* FOOTER */
/* -------------------- */

footer {
    text-align: center;
    padding: 20px;
    background-color: #5ea4a2;
    color: white;
    margin-top: 40px;
}
