@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Tienne:wght@400;700;900&display=swap');

/* Lounes Belmadi */

:root {
    --glass: rgba(194, 194, 194, 0.39);
    /* Ton #c2c2c263 */
    --hover: #ffffff;
    --blanc: #ffffff;
    --active: #d6d6d6;
    --bleu: #1b3946;
    --turquoise: #176a67;
    --turquoise2: #0c3e3d;
    --noir: #191717;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* BASE & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url(../img/Cocoflor_background1.png);
    background-color: var(--blanc);
    font-family: "Poppins", sans-serif;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* HEADER (Sticky & Nav Centrée) */
header {
    padding: 20px 10px;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.inner {
    max-width: 1440px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    box-shadow: var(--shadow);
}

header img {
    width: 200px;
    transition: 0.6s;
}

header img:hover {
    transform: translateX(2px);
}

/* NAV MENU */
ul#menu {
    display: flex;
    align-items: center;
    list-style: none;
}

ul#menu li {
    display: flex;
    align-items: center;
}

ul#menu a {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 15px;
    color: var(--noir);
    text-decoration: none;
    transition: 0.6s;
    border-radius: 5px;
}

ul#menu a:hover {
    color: var(--blanc);
    background-color: var(--noir);
}

ul#menu a.active {
    color: var(--blanc);
    background-color: var(--noir);
}

/* Points de séparation (Bullets) */
ul#menu li:not(:last-child)::after {
    content: "•";
    color: var(--turquoise);
    font-size: 1.5rem;
    margin: 0 10px;
    opacity: 0.6;
}

/* Bouton Langue */
.lang-switch {
    border: 2px solid var(--turquoise);
    color: var(--turquoise) !important;
    font-weight: 800 !important;
    margin-left: 10px;
}

.lang-switch:hover {
    background-color: var(--turquoise) !important;
    color: var(--blanc) !important;
}

#burger-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* MAIN & SECTIONS */
main {
    background: var(--glass);
    backdrop-filter: blur(2px);
    max-width: 1440px;
    padding: 20px;
    margin: 20px auto 40px;
    border-radius: 20px;
}

section {
    background-color: var(--blanc);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

h1 {
    font-family: "Tienne", serif;
    font-size: 60px;
    line-height: 80px;
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-family: "Tienne", serif;
    font-size: 50px;
    line-height: 90px;
    font-weight: 600;
    color: var(--turquoise);
    margin-bottom: 30px;
    text-transform: uppercase;
}

p,
section ul {
    font-size: 30px;
    line-height: 40px;
    font-weight: 400;
    margin-bottom: 30px;
}

.psectionaccueil,
.servicesp {
    font-weight: 300;
    width: 100%;
}

.servicesp1 {
    font-weight: 300;
    width: 100%;
    margin-bottom: 5px;
}

section ul {
    list-style-position: inside;
    font-weight: 300;
    margin-left: 10px;
}

/* --- OPTIMISATION DE LA SECTION OBJECTIFS (.obj) UNIQUEMENT VIA LE CSS --- */
section.obj {
    background-color: var(--blanc);
}

section.obj h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

/* Ajout d'une fine ligne décorative sous le titre "NOS OBJECTIFS" */
section.obj h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--turquoise);
    margin-top: 5px;
    border-radius: 2px;
}

/* Transformation de la liste en une grille de cartes flexibles */
section.obj ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

/* Style de chaque élément (carte objectif) */
section.obj ul li {
    background-color: #fafbfb;
    border-left: 5px solid var(--turquoise);
    border-radius: 4px 15px 15px 4px;
    padding: 25px 20px;
    font-size: 1.35rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--noir);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Utilisation d'un indicateur visuel en forme de fleur à la place de la puce classique */
section.obj ul li::before {
    content: "🌸";
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Effets de survol (hover) interactifs */
section.obj ul li:hover {
    transform: translateY(-5px);
    background-color: var(--blanc);
    border-left-color: var(--turquoise2);
    box-shadow: 0 8px 20px rgba(23, 106, 103, 0.12);
}

section.obj ul li:hover::before {
    transform: rotate(15deg) scale(1.15);
}

/* Ajustement responsive spécifique pour les cartes d'objectifs */
@media (max-width: 768px) {
    section.obj ul {
        grid-template-columns: 1fr;
    }
    
    section.obj ul li {
        font-size: 1.2rem;
        padding: 20px 15px;
    }
}
/* ------------------------------------------------------------------------- */

section.chaque {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chaque p {
    margin: 0;
}

.contactus {
    margin-top: 20px;
    margin-bottom: 50px;
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 600;
    padding: 18px 40px;
    background-color: var(--blanc);
    color: var(--noir);
    border: 1px solid #eee;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.6s;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.contactus:hover {
    background-color: var(--turquoise);
    color: var(--blanc);
    transform: scale(1.05);
}

/* BOUTONS (ACCUEIL & INSCRIPTION) */
.btnaccueil,
.inscription {
    display: block;
    width: fit-content;
    margin: 0 auto 40px;
    font-size: 2.5rem;
    font-weight: 600;
    text-decoration: none;
    padding: 20px 40px;
    background-color: var(--blanc);
    color: var(--noir);
    border-radius: 20px;
    transition: 0.6s;
    border: 1px solid #eee;
    text-align: center;
}

.btnaccueil:hover {
    background-color: var(--noir);
    color: var(--hover);
    transform: scale(1.03);
}

.inscription:hover {
    background-color: var(--noir);
    color: var(--hover);
    transform: scale(1.2);
}

/* PAGE SERVICES (BOITES) */
.boites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    justify-content: center;
}

.boxeservice {
    background-color: var(--blanc);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.boxeservice:hover {
    transform: translatey(-6px);
    transition: 0.3s;
    background-color: var(--blanc);
    padding: 50px;
    box-shadow: var(--shadow);
}

.boxeservice h3 {
    font-family: "Tienne", serif;
    font-size: 2.5rem;
    line-height: 40px;
    margin-bottom: 5px;
    color: var(--noir);
}

.boxeservice ul {
    font-size: 1.2rem;
    line-height: 1.6rem;
}

.boxeservice h3 span {
    display: block;
    font-size: 1.5rem;
    color: var(--turquoise);
    margin-top: 5px;
    font-weight: 400;
}

.taxes {
    font-size: 1rem;
    color: var(--turquoise);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FORMULAIRES (INSCRIPTION / CONTACT) */
.form-container {
    max-width: 900px;
    margin: 0 auto 50px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
    color: var(--turquoise);
    font-size: 1.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    background-color: var(--active);
}

.btn-submit {
    display: block;
    width: 100%;
    font-size: 2.2rem;
    font-weight: 600;
    padding: 20px;
    background-color: var(--blanc);
    color: var(--noir);
    border: 1px solid #eee;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.6s;
    margin-top: 20px;
}

.btn-submit:hover {
    background-color: var(--noir);
    color: var(--blanc);
    transform: scale(1.02);
}

/* FOOTER */
footer {
    background-color: var(--blanc);
    max-width: 1440px;
    background: var(--glass);
    backdrop-filter: blur(2px);
    padding: 40px;
    margin: 0 auto;
    color: var(--noir);
    border-radius: 20px;
    text-align: center;
}

footer img {
    width: 200px;
    display: block;
    margin: 0 auto 50px;
    transition: 0.6s;
}

footer img:hover {
    transform: translateX(5px);
}

footer p {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

footer address {
    font-style: normal;
    font-size: 1.85rem;
    line-height: 40px;
    margin-bottom: 20px;
}

footer address a {
    text-decoration: none;
    color: var(--noir);
    display: inline-block;
    transition: 0.3s ease;
}

footer address a:hover {
    transform: translateX(2px);
    color: var(--turquoise);
}

.rs {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.rs i {
    font-size: 45px;
    color: var(--noir);
    transition: 0.6s;
}

.rs i:hover {
    color: var(--turquoise);
    transform: translateX(3px);
}

/* --- STYLES GALERIE --- */
.galerie-container {
    padding: 20px;
    background: transparent;
    box-shadow: none;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.photo-item {
    overflow: hidden;
    border-radius: 15px;
    background-color: var(--blanc);
    box-shadow: var(--shadow);
    height: 300px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
    display: block;
}

/* ======= RESPONSIVE ========= */
@media (max-width: 1024px) {
    h1 {
        font-size: 50px;
        line-height: 65px;
    }

    h2 {
        font-size: 40px;
        line-height: 70px;
    }

    .inner {
        padding: 10px 20px;
    }

    ul#menu li:not(:last-child)::after {
        display: none;
    }

    ul#menu a {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    #burger-icon {
        display: block;
    }

    ul#menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 20px;
        width: 250px;
        background: var(--blanc);
        padding: 20px;
        border-radius: 15px;
        box-shadow: var(--shadow);
    }

    ul#menu.show {
        display: flex;
    }

    h1 {
        font-size: 35px;
        line-height: 45px;
    }

    h2 {
        font-size: 30px;
        line-height: 50px;
    }

    p,
    section ul,
    .psectionaccueil {
        font-size: 1.2rem;
        line-height: 1.5;
        width: 100%;
    }

    .btnaccueil,
    .inscription,
    .btn-submit {
        font-size: 1.5rem;
    }
}

/* Fleur normale (Services) */
.sectionservices.hero-flower .hero-flower-img {
    width: 22px;
    height: auto;
    margin-left: 6px;
    vertical-align: baseline;
    animation: heroFlowerFloat 3s ease-in-out infinite;
}

.sectionservices.hero-flower:hover .hero-flower-img {
    animation: heroFlowerPop 0.6s ease forwards;
}

/* Flottement normal */
@keyframes heroFlowerFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* Effet "spécial" au hover */
@keyframes heroFlowerPop {
    0%   { transform: translateY(0) scale(1); }
    30%  { transform: translateY(-6px) scale(1.4); }
    60%  { transform: translateY(2px) scale(1.2); }
    100% { transform: translateY(0) scale(1); }
}

/* ==========================================================================
   AJOUT POUR LA PETITE FLEUR ACCUEIL (Style robuste spécial Hostinger)
   ========================================================================== */
.petitefleurcocoflor {
    width: 50px !important;
    height: auto !important;
    display: inline-block !important;
    animation: floatCocoflor 3s ease-in-out infinite !important;
}

@keyframes floatCocoflor {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}