/* ==========================================
   FORMULES / MENUS LE FUNAMBULE - CSS
   ========================================== */

/* ==========================================
   CONTAINER PRINCIPAL
========================================== */
/* .corps {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2em;
} */

/* ==========================================
   TITRE PRINCIPAL
========================================== */
/* .corps .h1,
.corps h1 {
    font-family: var(--font_family_1);
    font-size: 3em;
    font-weight: 400;
    color: var(--color1);
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 1.5em;
    position: relative;
    display: block;
    width: 100%;
} */

/* .corps .h1::after,
.corps h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color2), transparent);
} */

/* ==========================================
   ROW FORMULES
========================================== */
.row.formules {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}

/* ==========================================
   CARTE FORMULE
========================================== */
.formule {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--color0);
    border-radius: var(--border-radius);
    border: 1px solid rgba(var(--color4_rgb), 0.06);
    transition: all 0.4s ease;
    overflow: hidden;
}

.formule:hover {
    box-shadow: 0 12px 50px rgba(var(--color4_rgb), 0.1);
    border-color: rgba(var(--color1_rgb), 0.15);
    transform: translateY(-5px);
}

/* Barre supérieure décorative */
.formule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color1), var(--color2), var(--color1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.formule:hover::before {
    opacity: 1;
}

/* Décoration SVG en arrière-plan */
.formule::after {
    content: '';
    position: absolute;
    bottom: 2em;
    right: 2em;
    width: 150px;
    height: 150px;
    opacity: 0.03;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: opacity 0.4s ease;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 80 Q50 20 90 80' stroke='%23A63A3A' stroke-width='2' fill='none'/%3E%3Ccircle cx='50' cy='50' r='8' fill='%23A63A3A'/%3E%3Cline x1='50' y1='42' x2='50' y2='25' stroke='%23A63A3A' stroke-width='2'/%3E%3Cline x1='50' y1='58' x2='50' y2='75' stroke='%23A63A3A' stroke-width='2'/%3E%3Cline x1='42' y1='50' x2='25' y2='45' stroke='%23A63A3A' stroke-width='2'/%3E%3Cline x1='58' y1='50' x2='75' y2='45' stroke='%23A63A3A' stroke-width='2'/%3E%3C/svg%3E");
}

.formule:hover::after {
    opacity: 0.06;
}

/* Rotation des SVG selon les formules */
.formule:nth-child(4n+2)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,5 61,40 98,40 68,62 79,97 50,75 21,97 32,62 2,40 39,40' fill='none' stroke='%23D6A635' stroke-width='2'/%3E%3C/svg%3E");
}

.formule:nth-child(4n+3)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L85 70 L15 70 Z' fill='none' stroke='%23A63A3A' stroke-width='2'/%3E%3Cline x1='50' y1='10' x2='50' y2='0' stroke='%23D6A635' stroke-width='2'/%3E%3Cpath d='M15 70 Q50 85 85 70' fill='none' stroke='%23A63A3A' stroke-width='2'/%3E%3C/svg%3E");
}

.formule:nth-child(4n)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cline x1='10' y1='50' x2='90' y2='50' stroke='%23D6A635' stroke-width='3'/%3E%3Ccircle cx='10' cy='50' r='6' fill='none' stroke='%23A63A3A' stroke-width='2'/%3E%3Ccircle cx='90' cy='50' r='6' fill='none' stroke='%23A63A3A' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='3' fill='%23A63A3A'/%3E%3C/svg%3E");
}

/* ==========================================
   STRUCTURE TABB-FORMULE
========================================== */
.tabb-formule {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
}

.tabb-formule .cell.celld {
    display: block;
}

.tabb-formule .cell.celld .contt {
    padding: 2.5em;
    position: relative;
}

.tabb-formule.sansimage .cell.celld .contt {
    padding: 2.5em;
}

/* ==========================================
   EN-TÊTE DU MENU (HAUT)
========================================== */
.formule .haut {
    text-align: center;
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid rgba(var(--color4_rgb), 0.08);
    position: relative;
}

.formule .haut::after {
    content: '✦';
    position: absolute;
    bottom: -0.6em;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color0);
    padding: 0 0.8em;
    color: var(--color2);
    font-size: 1em;
}

.formule .haut h2 {
    font-family: var(--font_family_1);
    font-size: calc(var(--taille_font) * 3.2);
    font-weight: 400;
    color: var(--color1);
    /* letter-spacing: 0.05em; */
    margin: 0;
    line-height: 1.3;
}

/* ==========================================
   LISTE DES ÉLÉMENTS DU MENU
========================================== */
.formule ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Item du menu */
.formule ul li.item {
    padding: 1.2em 0;
    text-align: center;
    transition: all 0.3s ease;
}

.formule ul li.item:hover {
    background: linear-gradient(90deg, transparent, rgba(var(--color2_rgb), 0.03), transparent);
}

/* Titre de la section (Entrées, Plats, etc.) */
.formule ul li.item .titre {
    display: block;
    font-family: var(--font_family_2);
    font-size: calc(var(--taille_font) * 1.5);
    font-weight: 400;
    color: var(--color1);
    text-transform: uppercase;
}

/* ==========================================
   DESCRIPTION - CONTAINER
========================================== */
.formule ul li.item .description {
    font-family: var(--font_family_2);
    font-size: 1.05em;
    font-weight: 400;
    color: rgba(var(--color4_rgb), 0.75);
    line-height: 1.6;
    font-style: italic;
    display: block;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   OPTIONS GÉNÉRÉES PAR JAVASCRIPT
   (classe .option ajoutée dynamiquement)
========================================== */
.formule ul li.item .description .option {
    display: block;
    position: relative;
    padding-left: 1em;
    margin-bottom: 0.6em;
    transition: all 0.3s ease;
}

.formule ul li.item .description .option:last-child {
    margin-bottom: 0;
}

/* Décoration devant chaque option - Étoile dorée */
.formule ul li.item .description .option::before {
    content: '✦';
    position: absolute;
    top: 0.35em;
    left: 0;
    color: var(--color2);
    font-size: 0.7em;
    font-style: normal;
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Effet hover sur les options */
.formule ul li.item .description .option:hover {
    color: var(--color4);
    padding-left: 2.2em;
}

.formule ul li.item .description .option:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

/* ==========================================
   SÉPARATEURS
========================================== */
.formule ul li.separateur {
    padding: 0.8em 0;
}

.formule ul li.separateur hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color2_rgb), 0.3), transparent);
    margin: 0 auto;
    width: 60%;
}

/* ==========================================
   PRIX
========================================== */
.formule .prix {
    font-family: var(--font_family_2);
    font-size: calc(var(--taille_font) * 2);
    font-weight: 600;
    color: var(--color1);
    text-align: center;
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(var(--color4_rgb), 0.08);
    position: relative;
}

.formule .prix::before {
    content: '✦';
    position: absolute;
    top: -0.6em;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color0);
    padding: 0 0.8em;
    color: var(--color2);
    font-size: 0.5em;
}

/* Effet hover sur le prix */
.formule:hover .prix {
    color: var(--color2);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 768px) {
    .corps {
        padding: 1em;
    }

    .row.formules {
        gap: 1.5em;
    }

    .formule {
        margin-bottom: 1.5em;
    }

    .formule::after {
        display: none;
    }

    .tabb-formule .cell.celld .contt,
    .tabb-formule.sansimage .cell.celld .contt {
        padding: 1.5em;
    }

    .formule .haut h2 {
        font-size: calc(var(--taille_font) * 2.5);
    }

    .formule ul li.item .titre {
        font-size: 1.1em;
    }

    .formule ul li.item .description {
        font-size: 1em;
        max-width: 100%;
    }
    
    
    .formule ul li.item .description .option {
        padding-left: 1em;
    }
    
    .formule ul li.item .description .option:hover {
        padding-left: 1em;
    }
    .formule .prix {
        font-size: 1.8em;
    }

    .formule ul li.separateur hr {
        width: 80%;
    }
}

/* ==========================================
   ANIMATIONS
========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.formule {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.formule:nth-child(1) { animation-delay: 0.1s; }
.formule:nth-child(2) { animation-delay: 0.2s; }
.formule:nth-child(3) { animation-delay: 0.3s; }
.formule:nth-child(4) { animation-delay: 0.4s; }
.formule:nth-child(5) { animation-delay: 0.5s; }
.formule:nth-child(6) { animation-delay: 0.6s; }