/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(160deg, #f7f1d2 0%, #f0e6c8 100%);
    color: #2c1810;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.nav {
    background: linear-gradient(90deg, #4F2D00 0%, #6B4423 50%, #4F2D00 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(62, 31, 0, 0.35);
}

.logo {
    font-size: 1.3em;
    font-weight: 700;
}

.logo a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(135deg, #8b5a2b 0%, #a0622d 100%);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.logo a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.menu-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-nav p {
    margin: 0;
}

.menu-nav a {
    padding: 9px 22px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== CHOCOLATE DRIPS (CSS-only) ===== */
.nav-drips {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    z-index: 999;
    padding: 0 20px;
}

.drip {
    width: 14px;
    background: #4F2D00;
    border-radius: 0 0 40% 40%;
    opacity: 0.85;
    animation: drip-anim 4s ease-in-out infinite;
}

.drip:nth-child(1) {
    height: 18px;
    animation-delay: 0s;
}

.drip:nth-child(2) {
    height: 26px;
    animation-delay: 0.4s;
}

.drip:nth-child(3) {
    height: 14px;
    animation-delay: 0.8s;
}

.drip:nth-child(4) {
    height: 22px;
    animation-delay: 1.2s;
}

.drip:nth-child(5) {
    height: 30px;
    animation-delay: 0.2s;
}

.drip:nth-child(6) {
    height: 17px;
    animation-delay: 1.6s;
}

.drip:nth-child(7) {
    height: 24px;
    animation-delay: 0.6s;
}

.drip:nth-child(8) {
    height: 20px;
    animation-delay: 1.0s;
}

.drip:nth-child(9) {
    height: 28px;
    animation-delay: 1.4s;
}

.drip:nth-child(10) {
    height: 16px;
    animation-delay: 1.8s;
}

@keyframes drip-anim {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.15);
    }
}

/* ===== ANIMATED BACKGROUND ===== */
.choco-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.choco-piece {
    position: absolute;
    font-size: 2em;
    opacity: 0.06;
    animation: float-choco 22s linear infinite;
}

.choco-piece:nth-child(1) {
    top: 8%;
    left: 8%;
    animation-delay: 0s;
    font-size: 2.5em;
}

.choco-piece:nth-child(2) {
    top: 22%;
    left: 78%;
    animation-delay: 4s;
    font-size: 1.8em;
}

.choco-piece:nth-child(3) {
    top: 55%;
    left: 15%;
    animation-delay: 9s;
    font-size: 3em;
}

.choco-piece:nth-child(4) {
    top: 78%;
    left: 65%;
    animation-delay: 14s;
    font-size: 2em;
}

.choco-piece:nth-child(5) {
    top: 42%;
    left: 48%;
    animation-delay: 6s;
    font-size: 1.5em;
}

.choco-piece:nth-child(6) {
    top: 68%;
    left: 32%;
    animation-delay: 11s;
    font-size: 2.8em;
}

@keyframes float-choco {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-25px) rotate(90deg);
    }

    50% {
        transform: translateY(0px) rotate(180deg);
    }

    75% {
        transform: translateY(25px) rotate(270deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

/* ===== MAIN CONTENT WRAPPER ===== */
.Centraliser {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: 100vh;
}

/* ===== HERO / BIENVENUE ===== */
.bienvenue {
    padding: 140px 40px 70px;
    color: #2c1810;
    font-size: clamp(2em, 5vw, 3.5em);
    text-align: center;
    max-width: 95%;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -1px;
    animation: slide-in-down 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);

}

.bienvenue strong {
    background: linear-gradient(135deg, #8b5a2b 0%, #c67c4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bienvenue .chocolat-clair {
    background: linear-gradient(135deg, #d4a373 0%, #8b5a2b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sous-titre {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #5c3d2e;
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
    animation: fade-in-up 0.8s ease-out 0.2s both;
    margin-bottom: 270px;
}

/* ===== CARDS & SECTIONS ===== */
.section-card {
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 248, 232, 0.95);
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow: 0 8px 32px rgba(62, 31, 0, 0.10);
    margin-top: 28px;
    text-align: left;
    border: 1px solid rgba(107, 68, 35, 0.1);
    animation: fade-in-up 0.7s ease-out both;
}

.section-card h1 {
    color: #4F2D00;
    margin-bottom: 14px;
    font-size: 1.6em;
}

.section-card h2 {
    color: #4F2D00;
    margin: 0 0 14px 0;
    font-size: 1.3em;
}

.section-card p {
    color: #5c3d2e;
    line-height: 1.75;
    font-size: 1em;
}

.section-card ul {
    margin: 14px 0 0 22px;
    color: #5c3d2e;
    line-height: 1.8;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.feature-card {
    background: #fff4e1;
    border-radius: 18px;
    padding: 22px;
    border: 1px solid rgba(107, 68, 35, 0.12);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(62, 31, 0, 0.12);
}

.feature-card h3 {
    color: #5a3b1a;
    margin: 0 0 10px 0;
    font-size: 1.05em;
}

.feature-card p {
    line-height: 1.65;
    font-size: 0.93em;
}

/* ===== PHOTO CARDS (Menu) ===== */
.PhotosEtInfos {
    display: flex;
    justify-content: center;
    gap: 200px;
    margin: 40px auto;
    padding: 36px;
    flex-wrap: wrap;
    background: rgba(255, 245, 230, 0.95);
    border-radius: 24px;
    border: 3px solid rgba(107, 68, 35, 0.2);
    max-width: 95%;
    width: 100%;
    box-shadow: 0 8px 32px rgba(62, 31, 0, 0.1);
}

.carte-info {
    text-align: center;
    flex: 0 1 auto;
}

.carte-info h1 {
    color: #3E1F00;
    margin: 14px 0 6px;
    font-size: 1.05em;
}

.carte-info p {
    color: #5c3d2e;
    font-size: 0.88em;
    max-width: 200px;
}

.images {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    border: 5px solid #3E1F00;
    box-shadow: 3px 3px 20px rgba(62, 31, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
}

.images:hover {
    transform: translateY(-10px);
    box-shadow: 8px 8px 30px rgba(62, 31, 0, 0.3);
}

/* ===== INFOS SCIENTIFIQUES ===== */
.InfosScientifiques {
    max-width: 95%;
    width: 100%;
    margin: 36px auto;
    padding: 44px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 241, 230, 0.98) 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(62, 31, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fade-in-up 0.8s ease-out 0.3s both;
}

.InfosScientifiques h1 {
    color: #2c1810;
    text-align: center;
    margin: 0 0 28px 0;
    font-size: 2em;
    font-weight: 700;
}

.InfosScientifiques p {
    color: #5c3d2e;
    line-height: 1.8;
    font-size: 1.05em;
    margin-bottom: 18px;
}

.citation {
    background: linear-gradient(135deg, #8b5a2b 0%, #a0622d 100%);
    color: #fff;
    padding: 28px 32px;
    border-radius: 16px;
    margin-top: 28px;
    text-align: center;
}

.citation h2 {
    color: #fff;
    font-size: 1.35em;
    margin: 0 0 12px 0;
    font-style: italic;
    font-weight: 600;
}

.citation p {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    margin: 0;
}

/* ===== BIENFAITS ===== */
.BienfaitsChocolat {
    max-width: 95%;
    width: 100%;
    margin: 36px auto;
    padding: 0;
    background: transparent;
    text-align: center;
}

.BienfaitsChocolat h1 {
    color: #2c1810;
    margin: 0 0 36px 0;
    font-size: 2em;
    font-weight: 700;
}

.BienfaitsChocolat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.BienfaitsChocolat-card {
    flex: 0 1 300px;
    padding: 32px 26px;
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.08) 0%, rgba(160, 98, 45, 0.04) 100%);
    border-radius: 20px;
    border: 2px solid rgba(139, 90, 43, 0.12);
    transition: all 0.3s ease;
    text-align: center;
}

.BienfaitsChocolat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 90, 43, 0.28);
    box-shadow: 0 12px 28px rgba(139, 90, 43, 0.12);
}

.BienfaitsChocolat-card h2 {
    color: #8b5a2b;
    margin: 0 0 14px 0;
    font-size: 1.25em;
    font-weight: 700;
}

.BienfaitsChocolat-card p {
    color: #5c3d2e;
    line-height: 1.7;
    font-size: 0.95em;
}

/* ===== QUIZ BANNER ===== */
.QuizChocolat {
    max-width: 95%;
    width: 100%;
    margin: 36px auto;
    padding: 52px 40px;
    background: linear-gradient(135deg, #8b5a2b 0%, #a0622d 100%);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(62, 31, 0, 0.2);
    animation: fade-in-up 0.8s ease-out 0.4s both;
}

.QuizChocolat h1 {
    color: #fff;
    margin: 0 0 14px 0;
    font-size: 2em;
    font-weight: 700;
}

.QuizChocolat p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 1.1em;
    margin: 0;
}

.Quiz {
    max-width: 90%;
    margin: 24px auto 60px;
    text-align: center;
}

.Quiz a {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #fff 0%, #f5f1eb 100%);
    color: #8b5a2b;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

.Quiz a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(90deg, #3E1F00 0%, #4F2D00 100%);
    padding: 22px 36px;
    text-align: center;
    margin-top: auto;
}

footer p {
    margin: 0;
    color: wheat;
    font-size: 0.9em;
}

footer a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffe566;
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes slide-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONDITIONS GÉNÉRALES ===== */
.conditions-section {
    width: 100%;
    max-width: 860px;
    background: rgba(255, 248, 232, 0.95);
    border-radius: 20px;
    padding: 30px 36px;
    box-shadow: 0 6px 24px rgba(62, 31, 0, 0.08);
    margin-top: 22px;
    border-left: 5px solid #8b5a2b;
}

.conditions-section h1 {
    color: #4F2D00;
    font-size: 1.5em;
    margin-bottom: 14px;
}

.conditions-section h2 {
    color: #6B4423;
    font-size: 1.15em;
    margin: 20px 0 10px;
}

.conditions-section p {
    color: #5c3d2e;
    line-height: 1.78;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        margin: 0;
    }

    .menu-nav {
        gap: 6px;
        flex-wrap: wrap;
    }

    .menu-nav a {
        padding: 7px 14px;
        font-size: 0.85em;
    }

    .Centraliser {
        padding-top: 130px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .bienvenue {
        padding: 20px 10px;
    }

    .section-card {
        padding: 22px 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .PhotosEtInfos {
        gap: 18px;
        padding: 24px;
    }

    .BienfaitsChocolat-card {
        flex: 0 1 100%;
    }
}