/* VARIABLES & CONFIGURATION GÉNÉRALE*/
:root {
    --color-dark-teal: #0c4353;      
    --color-medium-teal: #1a6275;    
    --color-accent-teal: #1cb5d2;    
    --color-accent-green: #12d992;   
    --color-white: #ffffff;
    --color-off-white: #f7fafc;      
    --color-text-dark: #2d3748;
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0; 
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-dark-teal);
    text-align: center;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-medium-teal);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}


.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent-green);
    color: var(--color-dark-teal);
    box-shadow: 0 6px 18px rgba(18, 217, 146, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(18, 217, 146, 0.35);
}

.btn-small {
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
}


.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(12, 67, 83, 0.06);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

#site-logo {
    height: 38px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-area:hover #site-logo {
    transform: rotate(-4deg) scale(1.05);
}

.brand-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--color-dark-teal);
    letter-spacing: 0.5px;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.main-navigation a:not(.nav-cta) {
    text-decoration: none;
    color: var(--color-medium-teal);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.main-navigation a:not(.nav-cta):hover {
    color: var(--color-dark-teal);
}

.main-navigation a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-teal);
    transition: width 0.3s ease;
}

.main-navigation a:not(.nav-cta):hover::after {
    width: 100%;
}

.main-navigation .nav-cta {
    background-color: var(--color-dark-teal);
    color: var(--color-white) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-navigation .nav-cta:hover {
    background-color: var(--color-accent-green);
    color: var(--color-dark-teal) !important;
    box-shadow: 0 6px 20px rgba(18, 217, 146, 0.25);
}


#hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
   
    background: linear-gradient(rgba(252, 254, 255, 0.8), rgba(244, 245, 246, 0.6)), url('images/votre-image-boulangerie.jpg') no-repeat center center/cover;
    overflow: hidden;
    padding-top: 100px;
}
.btn-hero {
    display: inline-block;
    background-color: var(--color-accent-green);
    color: var(--color-dark-teal);
    padding: 18px 38px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(18, 217, 146, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    transform: translateY(-4px) scale(1.02);
    background-color: var(--color-white);
    color: var(--color-dark-teal);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.25);
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-dark-teal);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-medium-teal);
    margin-bottom: 40px;
    max-width: 580px;
}


/* SAVIEZ-VOUS */
.le-saviez-vous-section {
    background-color: var(--color-white) !important;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}


.did-you-know-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 80px;
    border-radius: 80px 30px 100px 40px; 
    background: linear-gradient(135deg, rgba(18, 217, 146, 0.08) 0%, rgba(28, 181, 210, 0.05) 100%);
    
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    box-shadow: none; /* On vire l'ombre qui durcit les bords */
    border: none;    /* On vire la bordure */
}

/* L'icône change de style pour s'harmoniser */
.did-you-know-icon {
    font-size: 3.8rem;
    background: var(--color-white);
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Un rond imparfait pour aller avec le reste */
    border-radius: 50% 40% 45% 48%;
    color: var(--color-dark-teal);
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(12, 67, 83, 0.04);
}

.did-you-know-content h3 {
    font-size: 1.9rem;
    color: var(--color-dark-teal);
    font-weight: 800;
    margin-bottom: 10px;
}

.did-you-know-content p {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Ajustement Mobile */
@media (max-width: 768px) {
    .did-you-know-box {
        flex-direction: column;
        text-align: center;
        padding: 45px 25px;
        border-radius: 40px 20px 50px 20px; /* Un peu plus sage sur mobile */
    }
}
/* ==========================================================================
   4. LES SERVICES (Cartes blanches interactives)
   ========================================================================== */
.services-detailed {
    background-color: var(--color-off-white);
}

.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
    background-color: var(--color-white);
    padding: 50px;
    border-radius: 32px;
    border: 1px solid rgba(12, 67, 83, 0.04);
    box-shadow: 0 10px 30px rgba(12, 67, 83, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-row:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-teal);
    box-shadow: 0 20px 50px rgba(12, 67, 83, 0.08);
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-image-col {
    flex: 0 0 40%;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
}

.service-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-row:hover .service-photo {
    transform: scale(1.06);
}

.service-text-col {
    flex: 1;
}

.service-text-col h3 {
    font-size: 2rem;
    color: var(--color-dark-teal);
    margin-bottom: 12px;
}

.service-price-soft {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-medium-teal);
    background-color: rgba(28, 181, 210, 0.08);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(28, 181, 210, 0.15);
}

.service-benefits {
    list-style: none;
    margin-bottom: 30px;
}

.service-benefits li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.service-benefits li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent-green);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.service-row:hover .service-benefits li::before {
    transform: translateX(4px);
}

/* ==========================================================================
   5. SECTION À PROPOS (Humaine et authentique)
   ========================================================================== */
.about-me-section {
    background: linear-gradient(to bottom, var(--color-white), var(--color-off-white));
    padding: 120px 0;
    position: relative;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px; /* Plus d'espace entre la photo et le texte */
}

/* Le texte structuré */
.about-text {
    flex: 1.2;
}

/* Un petit badge d'intro sympa au-dessus du titre */
.about-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent-teal);
    background-color: rgba(28, 181, 210, 0.06);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--color-dark-teal);
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 20px;
    max-width: 600px;
}

/* L'élément clé : Le portrait adouci et mis en valeur */
.about-profile {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Structure arrondie et organique pour ton portrait */
img.responsive-avatar {
    width: 100%;
    max-width: 340px;
    height: 420px;
    object-fit: cover;
    /* Des angles asymétriques et très arrondis pour un effet ultra-moderne */
    border-radius: 60px 24px 60px 24px; 
    box-shadow: 0 20px 40px rgba(12, 67, 83, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/* Un petit arrière-plan graphique arrondi en bonus qui flotte derrière la photo */
.about-profile::before {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 20px;
    width: 100%;
    max-width: 340px;
    height: 420px;
    border: 2px dashed var(--color-accent-green);
    border-radius: 60px 24px 60px 24px;
    z-index: 1;
    transition: all 0.5s ease;
}

/* Petite animation au survol pour donner de la vie */
.about-profile:hover img.responsive-avatar {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(12, 67, 83, 0.12);
}

.about-profile:hover::before {
    transform: translate(8px, 8px) rotate(1deg);
    border-color: var(--color-accent-teal);
}

/* Adaptation Mobile */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column-reverse; /* Met la photo en haut sur mobile pour un meilleur flux */
        text-align: center;
        gap: 50px;
    }
    .about-text p {
        margin-left: auto;
        margin-right: auto;
    }
    img.responsive-avatar, .about-profile::before {
        height: 360px;
    }
}
/* 6. SECTION FAQ  */
faq-section {
    padding: 80px 0;
    background-color: var(--color-white) !important;
}

/* On force la FAQ à rester bien centrée et pas trop large */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Espace entre chaque bloc */
}

/* On stylise la boîte globale de chaque question */
details.faq-item {
    background-color: var(--color-off-white) !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    border: 1px solid rgba(12, 67, 83, 0.08) !important;
    transition: all 0.3s ease;
    display: block; /* Force le comportement en bloc */
}

/* Effet sympa quand on passe la souris */
details.faq-item:hover {
    border-color: var(--color-accent-green) !important;
    background-color: var(--color-white) !important;
    box-shadow: 0 10px 25px rgba(12, 67, 83, 0.04);
}

/* Le titre (La question sur laquelle on clique) */
summary.faq-question {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    list-style: none !important; /* Cache la flèche noire moche de base */
    outline: none;
}

/* Cache la flèche noire sur les navigateurs Safari/Chrome */
summary.faq-question::-webkit-details-marker {
    display: none !important;
}

/* Le texte de ta question */
summary.faq-question h4 {
    margin: 0 !important;
    font-size: 1.15rem !important;
    color: var(--color-dark-teal) !important;
    font-weight: 700 !important;
    border: none !important; /* Supprime la bordure bizarre autour du texte */
    padding: 0 !important;
}

/* Notre jolie petite flèche verte */
.faq-arrow {
    font-size: 0.8rem;
    color: var(--color-accent-green);
    transition: transform 0.3s ease;
}

/* La réponse qui apparaît en dessous */
.faq-answer {
    padding-top: 15px !important;
    border-top: 1px solid rgba(12, 67, 83, 0.05);
    margin-top: 15px;
}

.faq-answer p {
    margin: 0 !important;
    color: #4a5568 !important;
    line-height: 1.6 !important;
    font-size: 1.05rem !important;
}

/* --- LOGIQUE D'OUVERTURE --- */
/* Quand le bloc est ouvert [open], on fait tourner la flèche */
details.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
}
details.faq-item[open] {
    background-color: var(--color-white) !important;
    border-color: rgba(28, 181, 210, 0.3) !important;
    box-shadow: 0 12px 30px rgba(12, 67, 83, 0.05);
}
/* ==========================================================================
   7. FORMULAIRE DE CONTACT & FOOTER
   ========================================================================== */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(12, 67, 83, 0.03);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(12, 67, 83, 0.08);
    border-radius: 12px;
    background-color: var(--color-off-white);
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-dark-teal);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(12, 67, 83, 0.06);
}

.site-footer {
    background-color: var(--color-dark-teal);
    color: var(--color-white);
    padding: 40px 0;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   ANIMATION ALTERNÉE (GAUCHE / DROITE)
   ========================================================================== */
/* ==========================================================================
   ANIMATION ALTERNÉE COMPLÈTE (CORRIGÉE & SÉCURISÉE)
   ========================================================================== */

/* --- 1. QUI SUIS-JE --- */
/* Le texte arrive de la gauche */
.about-text {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* Le portrait arrive de la droite */
.about-profile {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* --- 2. LES SERVICES / PRESTATIONS --- */
/* Le premier service à gauche, le deuxième à droite, le troisième à gauche */
.service-row:nth-of-type(1) { transform: translateX(-50px); opacity: 0; }
.service-row:nth-of-type(2) { transform: translateX(50px); opacity: 0; }
.service-row:nth-of-type(3) { transform: translateX(-50px); opacity: 0; }

.service-row {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* --- 3. LE SAVIEZ-VOUS --- */
/* Le galet arrive doucement de la droite */
.did-you-know-box {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* --- 4. LA FAQ --- */
/* Les lignes de la FAQ alternent gauche / droite */
.faq-item {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.faq-item:nth-child(odd) { transform: translateX(-40px); }
.faq-item:nth-child(even) { transform: translateX(40px); }


/* ==========================================================================
   DÉCLENCHEUR DE VISIBILITÉ (Quand le JS s'active)
   ========================================================================== */
.about-text.visible,
.about-profile.visible,
.service-row.visible,
.did-you-know-box.visible,
.faq-item.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
    
/* Code de secours pour forcer l'affichage sur GitHub si le JS buggue */
.about-text, .about-profile, .service-row, .did-you-know-box, .faq-item {
    opacity: 1 !important;
    transform: none !important;
}
}
