/*
Theme Name: charlottejamboumenager
Theme URI:
Author: MACOM DIGITALE
Author URI: https://macom-digitale.com/
Description: Thème WordPress développé sur mesure pour Charlotte Jambou Ménager
Version: 1.0
Text Domain: charlottejamboumenager
*/

/* ========================= */
/* SCROLL DOUX GLOBAL        */
/* ========================= */
html {
    scroll-behavior: smooth; /* défilement fluide vers les ancres */
}

/* Optionnel : petit décalage global si tu as souvent des sections cachées par le haut */
/* Tu peux ajuster ou supprimer si tu préfères gérer au cas par cas */
/*
html {
    scroll-padding-top: 120px;
}
*/

/* ========================= */
/* RESET WORDPRESS MARGES    */
/* ========================= */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

/* Si certaines sections sont ciblées par des ancres,
   tu peux affiner le décalage comme ceci : */
.presentation-section,
.pourquoi-section,
.consultation-section {
    scroll-margin-top: 120px; /* ajuste en fonction de la hauteur de ton hero/header */
}

/* ========================= */
/* HERO HEADER               */
/* ========================= */
.hero-header {
    width: 100vw;
    height: 341px;
    background-color: #40745B;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

/* Ellipse */
.hero-header::after {
    content: "";
    position: absolute;
    bottom: -175px;
    left: 50%;
    transform: translateX(-50%);
    width: 1627px;
    height: 600px;
    background: #40745B;
    border-radius: 50%;
    z-index: 1;
}

/* Conteneur interne */
.hero-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

/* LOGO */
.header-logo img {
    max-height: 250px;
    width: auto;
    padding: 50px;
}

/* MENU */
.header-nav {
    margin-top: 20px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 100px;
}

.menu-list li a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 500;
    z-index: 10;
}

/* HERO IMAGE */
.hero-image img {
    width: 100vw;
    height: 650px;
    object-fit: cover;
    display: block;
}

/* ========================================= */
/* ===============   RESPONSIVE   ===========*/
/* ========================================= */

/* TABLETTES (entre 768 et 1024px) */
@media (max-width: 1024px) {

    .hero-header {
        height: 280px;
    }

    .hero-header::after {
        width: 1200px;
        height: 450px;
        bottom: -140px;
    }

    .header-logo img {
        max-height: 180px;
        padding: 30px;
    }

    .menu-list {
        gap: 50px;
    }

    .menu-list li a {
        font-size: 20px;
    }

    .hero-image img {
        height: 450px;
    }
}

/* MOBILES (moins de 768px) */
@media (max-width: 768px) {

    .hero-header {
        height: 220px;
    }

    .hero-header::after {
        width: 900px;
        height: 350px;
        bottom: -120px;
    }

    .header-logo img {
        max-height: 200px;
        padding: 20px 0;
    }

    /* Menu en colonne et centré */
    .menu-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .menu-list li a {
        font-size: 18px;
    }

    .hero-image img {
        height: 300px;
    }
}

/* PETITS MOBILES (moins de 480px) */
@media (max-width: 480px) {

    /* Augmenter la hauteur du header */
    .hero-header {
        height: 370px; /* espace suffisant pour afficher le logo */
        z-index: 10;
    }

    /* Remonter l’ellipse et la mettre derrière */
    .hero-header::after {
        width: 650px;
        height: 230px;
        bottom: -60px;
        z-index: 1; /* ellipse derrière */
    }

    /* S’assurer que le logo passe devant l’ellipse */
    .header-logo img {
        max-height: 150px;
        padding: 15px 0;
        position: relative;
        z-index: 20; /* logo au-dessus de tout */
    }
}

/* ============================= */
/* SECTION PRÉSENTATION */
/* ============================= */

.presentation-section {
    width: 100vw;
    padding-top: 0px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    margin: 120px auto 180px auto;
}

/* Titre */
.presentation-title {
    font-family: "Great Vibes", cursive; /* cursive + regular */
    font-size: 90px;                      /* taille de la maquette */
    font-weight: 400;                     /* Regular */
    color: #40745B;                       /* vert maquette */
    margin: 0 0 100px 0;                  /* marge dessous */
    line-height: 0.9;                     /* hauteur de ligne */
    letter-spacing: 0.5px;                /* espacement lettres */
    text-align: center;                   /* centré */
}

/* Contenu principal */
.presentation-content {
    width: 100%;
    max-width: 1440px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin: 0 auto; /* ← ajout */
}

/* CERCLE IMAGE */
.presentation-image {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid #40745B;
    display: flex;
    justify-content: center;
    align-items: center;
}

.presentation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RECTANGLE */
.presentation-rectangle {
    width: 436px;
    height: 699.85px;
    background: #40745B;
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
    border-radius: 20px;
}

.presentation-rectangle p {
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
}

/* TRAIT */
.presentation-line {
    width: 1381px;
    height: 8px;
    background: #40745B;
    margin: 100px auto 0 auto;
    border-radius: 10px;
}

/* ========================================= */
/* ===============   RESPONSIVE   ===========*/
/* ========================================= */

/* TABLETTES */
@media (max-width: 1024px) {

    .presentation-title {
        font-size: 70px;
        margin-bottom: 60px;
    }

    .presentation-content {
        gap: 40px;
    }

    .presentation-image {
        width: 350px;
        height: 350px;
    }

    .presentation-rectangle {
        width: 350px;
        height: auto;
        padding: 30px;
    }

    .presentation-line {
        width: 80%;
    }
}

/* MOBILES */
@media (max-width: 768px) {

    /* Empile cercle + rectangle */
    .presentation-content {
        flex-direction: column;
        gap: 50px;
    }

    .presentation-section {
        padding-top: 80px;
        padding-bottom: 50px;
        margin: 50px auto 120px auto;
    }

    .presentation-title {
        font-size: 55px;
        margin-bottom: 40px;
    }

    .presentation-image {
        width: 280px;
        height: 280px;
        border-width: 8px;
    }

    .presentation-rectangle {
        width: 85%;
        height: auto;
        padding: 25px;
    }

    .presentation-rectangle p {
        font-size: 18px;
    }

    .presentation-line {
        width: 70%;
        margin-top: 60px;
    }
}

/* PETITS MOBILES */
@media (max-width: 480px) {

    /* Rectangle réduit */
    .presentation-rectangle {
        width: 85%;           /* réduit la largeur */
        padding: 15px 18px;   /* padding beaucoup plus compact */
        border-radius: 16px;  /* arrondi plus doux */
    }

    .presentation-rectangle p {
        font-size: 14px;      /* texte plus petit */
        line-height: 1.4;     /* ressert le texte */
    }
}

/* ========================= */
/* POURQUOI CONSULTER (CPT)  */
/* ========================= */

/* SECTION */
.pourquoi-section {
    width: 100%;
    padding: 120px 0 200px 0;
    text-align: center;
    margin-top: -250px;
}

/* TITRE */
.pourquoi-title {
    font-family: "Great Vibes", cursive;
    font-size: 90px;
    font-weight: 400;
    color: #40745B;
    margin: 0 0 100px 0;
    line-height: 0.9;
    letter-spacing: 0.5px;
}

/* CONTENEUR DES CARTES */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap; /* s’adapte aux petites résolutions */
}

/* CARTE */
.card {
    width: 350px;
    height: 500px;
    background: #40745B;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* IMAGE */
.card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 15px;
}

/* BOUTON/LINK */
.card-btn {
    background: white;
    color: #40745B;
    width: 185.77px;
    height: 61.82px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    margin: 0 auto;
}

/* TRAIT séparateur */
.section-divider {
    width: 1381px;
    height: 8px;
    background: #40745B;
    margin: 120px auto 0 auto;
    border-radius: 4px;
}

/* ========================= */
/* RESPONSIVE POUR LES CARTES */
/* ========================= */

/* TABLETTES (≤1024px) */
@media (max-width: 1024px) {
    .pourquoi-title {
        font-size: 70px;
        margin-bottom: 70px;
    }
    .cards-container {
        gap: 40px;
    }
    .card {
        width: 280px;
        height: auto;
    }
    .card img {
        height: 260px;
    }
    .section-divider {
        width: 80%;
    }
}

/* MOBILES (≤768px) */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .pourquoi-section {
        padding: 80px 0 150px 0;
    }
    .pourquoi-title {
        font-size: 55px;
        margin-bottom: 50px;
    }
    .card {
        width: 80%;
        height: auto;
        padding: 20px;
    }
    .card img {
        height: 220px;
        border-radius: 12px;
    }
    .card-btn {
        width: 150px;
        height: 50px;
        font-size: 16px;
        border-radius: 10px;
    }
    .section-divider {
        width: 70%;
        margin-top: 80px;
    }
}

/* PETITS MOBILES (≤480px) */
@media (max-width: 480px) {
    .card img {
        height: 180px;
    }
    .card-btn {
        width: 130px;
        height: 45px;
        font-size: 14px;
    }
}

/* ========================= */
/* Horaires et consultation  */
/* ========================= */
.consultation-section {
    width: 100%;
    text-align: center;
    padding: 120px 0 200px 0;
    margin-top: -170px;
}

/* Titre */
.consultation-title {
    font-family: "Great Vibes", cursive;
    font-size: 90px;
    font-weight: 400;
    color: #40745B;
    margin: 0 0 100px 0;
    line-height: 0.9;
    letter-spacing: 0.5px;
}

/* Rectangle texte */
.consultation-rectangle {
    width: 1221px;
    height: 581px;
    background-color: #40745B;
    margin: 0 auto;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    color: white;
    font-size: 40px;
    text-align: center;
    padding: 20px;
}

.consultation-rectangle p {
    color: white;
    font-size: 22px;
    line-height: 1.5;
    padding: 20px 40px;
}

/* ========================= */
/* MEDIA QUERIES             */
/* ========================= */
@media (max-width: 1024px) {
    .consultation-rectangle {
        width: 80%;
        height: auto;
        font-size: 32px;
    }
    .consultation-rectangle p {
        font-size: 20px;
        padding: 15px 30px;
    }

    .consultation-title {
        font-size: 70px;
    }
}

@media (max-width: 768px) {
    .consultation-rectangle {
        width: 90%;
        font-size: 28px;
        padding: 15px;
    }
    .consultation-rectangle p {
        font-size: 18px;
        padding: 10px 20px;
    }

    .consultation-title {
        font-size: 55px;
    }
}

@media (max-width: 480px) {
    .consultation-rectangle {
        width: 85%;
        font-size: 24px;
        padding: 10px;
    }

    .consultation-rectangle p {
        font-size: 16px;
        padding: 8px 15px;
    }

    .consultation-title {
        font-size: 40px;
    }
}

