/* ----------------------------------
    VARIABLES & THEME
---------------------------------- */
:root {
    --primary-color: #F89F5B;
    --primary-dark: #E58438;
    --secondary-color: #757575;
    --accent-color: #8EBAA0;
    --text-color: #4A4A4A;
    --text-color-light: #FFFFFF;
    --bg-color: #FFFFFF;
    --bg-light: #FFFBF5;
    --gradient-start: #F89F5B;
    --gradient-end: #FFDDA9;

    --header-height: 80px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    /* Empêche physiquement le scroll horizontal de la page */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Typographie */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 15px;
}

h1 {
    font-size: 3em;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

h3 {
    font-size: 1.8em;
}

h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: var(--bg-color);
    padding: 20px 0;
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color-light);
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 10;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    color: var(--text-color-light);
    font-size: 3.8em;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.3em;
    margin-bottom: 30px;
    /* Texte sur fond sombre, on le force en blanc */
    color: var(--text-color-light);
}

.hero-image .profile-photo {
    width: 100%;
    max-width: 350px;
    border-radius: 50%;
    border: 8px solid var(--accent-color);
    box-shadow: 0 0 0 12px rgba(142, 186, 160, 0.3);
    transition: transform 0.5s ease;
}

.hero-image .profile-photo:hover {
    transform: scale(1.03);
}

#hero-animation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Bouton avec animation de fondu */

.btn.fade-in.delay-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    background-color: var(--primary-color);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    /* Forme arrondie parfaite */
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Effet ressort */
    box-shadow: 0 10px 20px rgba(248, 159, 91, 0.2);
    /* Ombre légère orange */
    border: 2px solid transparent;
}

.btn.fade-in.delay-2:hover {
    transform: translateY(-5px);
    /* Le bouton monte */
    box-shadow: 0 15px 30px rgba(248, 159, 91, 0.4);
    /* L'ombre s'accentue */
    background-color: white;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    /* Devient un bouton contour au survol */
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    margin-bottom: 60px;
    font-size: 3em;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    /* Un peu plus étroit pour une meilleure lecture */
    margin: -30px auto 50px;
    /* On le remonte un peu vers le titre principal */
    color: var(--secondary-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    /* Plus fin pour plus d'élégance */
    line-height: 1.6;
    font-style: italic;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 20px;
}

/* Optionnel : Une petite décoration discrète sous le texte */
.section-subtitle::after {
    content: '•';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    /* Ton vert Ju'Diet */
    font-size: 1.2rem;
    opacity: 0.6;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Style pour les icônes Font Awesome */
.logo-grid .fa-solid,
.logo-grid .fa-brands {
    font-size: 3.5em;
    /* Taille plus grande pour les icônes */
    color: var(--secondary-color);
    opacity: 0.7;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logo-grid .fa-solid:hover,
.logo-grid .fa-brands:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    line-height: 1.8;
}

.about-logos h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Expertise Section (Mon Approche) */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.expertise-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.expertise-card .icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.expertise-card h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--primary-color);
    /* Cartes oranges */
    color: var(--text-color-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    background-color: var(--primary-dark);
    /* Orange soutenu au survol */
}

.value-card .icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    /* Icône blanche sur fond orange */
}

.value-card h3 {
    color: var(--text-color-light);
    font-size: 1.6em;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 1em;
    line-height: 1.7;
    opacity: 0.9;
}

/* --- Recipes Carousel (Corrigé) --- */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.carousel-viewport {
    overflow: hidden;
    /* Coupe tout ce qui dépasse horizontalement */
    width: 100%;
    border-radius: 15px;
    padding: 10px 0;
    /* Évite de couper l'ombre des cartes */
}

.recipes-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.recipe-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    /* Sécurité pour que la carte garde une forme décente */
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.recipe-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-tag {
    position: absolute;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 18px;
    /* Un peu plus d'air */
    border-radius: 50px;
    /* Forme pilule parfaite */
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    /* Pour le côté moderne */
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Pour qu'il soit lisible sur l'image */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipe-tag-in {
    position: relative;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 18px;
    /* Un peu plus d'air */
    border-radius: 50px;
    /* Forme pilule parfaite */
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    /* Pour le côté moderne */
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Pour qu'il soit lisible sur l'image */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipe-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    gap: 12px;
    /* Crée un espace régulier entre titre, texte et lien */
}

/* Titre de la recette */
.recipe-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
    /* Limite à 2 lignes pour garder l'alignement des cartes */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Petit texte de description (si tu en as un) */
.recipe-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0;
}

/* Lien "Voir la recette" */
.recipe-link {
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    /* Pousse le lien en bas de la carte */
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.recipe-link:hover {
    color: var(--primary-dark);
    gap: 10px;
    /* Petit effet d'animation sur la flèche au survol */
}

/* --- Mise en page globale du détail --- */
.recipe-detail-section {
    padding: 120px 0 80px;
    background: var(--bg-light);
    /* Fond très léger */
}

/* --- Image principale --- */
.recipe-main-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    object-fit: cover;
    max-height: 500px;
}

.ing-name {
    font-weight: 500;
    color: var(--text-color);
}

.ing-qty {
    color: var(--secondary-color);
    font-style: italic;
}

/* --- Bulle d'avis diététique --- */
.diet-advice {
    background: #eef7f2;
    /* Vert très pâle */
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    margin-bottom: 20px;
}

.diet-advice h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.diet-advice p {
    font-style: italic;
    margin-bottom: 0;
}

/* --- Analyse Nutritionnelle --- */
/* --- Conteneur global de l'analyse --- */
.nutrition-analysis {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nutrition-analysis h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

/* --- Grille des Macros --- */
.macros-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* 2 colonnes comme sur tes captures */
    gap: 10px;
}

.macro-bar-item {
    background: #fdfdfd;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.macro-bar-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.macro-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.macro-info span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

.macro-info strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
}

/* --- Barres de progression (Visualisation) --- */
.progress-bg {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    /* Par défaut orange */
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Centre verticalement */
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 100;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

.nav-btn.prev {
    left: 0;
}

.nav-btn.next {
    right: 0;
}

.nav-btn i {
    font-size: 1.2rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 10px;
}

/* Grids */
.expertise-grid,
.passions-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/*.card-common {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: 0.3s;
}

.card-common:hover {
    transform: translateY(-10px);
}

/* Modale & Contact */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

/* On s'assure que la colonne de gauche (Image + Ingrédients) est bien rangée */
.modal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* On s'assure que la colonne de droite (Avis + Étapes) est bien rangée */
.modal-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Conteneur de la Modale --- */
.recipe-modal-container {
    background: #fff;
    border-radius: 25px;
    max-width: 1000px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* --- Header & Titre (Fixe le problème d'overlap) --- */
.recipe-modal-header {
    padding: 60px 40px 30px;
    text-align: center;
    background: linear-gradient(to bottom, #FFFBF5, #ffffff);
}

.recipe-modal-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin: 15px 0;
    line-height: 1.2;
}

/* Container de la barre d'infos pour bien l'aligner sous le titre */
.recipe-meta-bar {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    color: var(--secondary-color);
    font-weight: 600;
    /* Un peu moins que 1500 qui n'existe pas */
}

.recipe-meta-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Grille de la modale --- */
.recipe-modal-body {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr 1.2fr;
    /* Équilibre mieux les deux colonnes */
    gap: 30px;
    padding: 20px 40px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Image */
.image-wrapper {
    position: relative;
    /* CRUCIAL : le tag se basera sur ce bloc maintenant */
    width: 100%;
    height: 400px;
    /* Ajuste selon tes besoins */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

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

/* --- Liste des Ingrédients --- */
.ingredients-box ul {
    list-style: none;
    /* Supprime les puces par défaut */
    padding: 0;
    margin: 0;
}

.ingredients-box li {
    display: flex;
    /* Active l'alignement horizontal */
    justify-content: space-between;
    /* Pousse le nom à gauche et la quantité à droite */
    align-items: center;
    /* Aligne verticalement au centre */
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    /* Ligne de séparation subtile */
    width: 100%;
}

.ingredients-box li:last-child {
    border-bottom: none;
    /* Retire la ligne pour le dernier élément */
}

.ing-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text-color);
}

.ing-qty {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    /* Met la quantité en orange pour la lisibilité */
    text-align: right;
    margin-left: 15px;
    /* Sécurité pour ne pas coller le texte */
}

/* Conseils (Vert Ju'Diet) */
.diet-advice-card {
    background-color: #EEF7F2 !important;
    padding: 25px !important;
    border-radius: 15px;
    border-left: 6px solid #8EBAA0 !important;
    margin-bottom: 40px;
}

.diet-advice-card p {
    font-family: 'Montserrat', sans-serif;
    /* Plus lisible */
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Style du titre H3 à l'intérieur du bloc vert */
.diet-advice-card h3 {
    color: #5ab08d !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    font-family: 'Playfair Display', serif !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Étapes de Préparation --- */
/* --- Section Préparation --- */
.preparation_steps {
    width: 100%;
    margin-top: 30px;
}

.steps-container {
    display: flex;
    flex-direction: column;
    /* Force l'empilement vertical */
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    /* Aligne le numéro en haut du texte */
    gap: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    border-bottom: 1px solid #f0f0f0;
    /* Séparateur discret */
}

.step-num {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    min-width: 32px;
    /* Garde le cercle parfait */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
    /* Empêche le cercle de s'écraser */
}

.step-content p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Responsive Mobile --- */
@media (max-width: 900px) {
    .recipe-modal-body {
        grid-template-columns: 1fr;
        /* On empile sur mobile */
    }
}

.empty-message {
    text-align: center;
    color: var(--secondary-color);
    font-style: italic;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Carousel Fix --- */
@media (max-width: 1280px) {
    .nav-btn.prev {
        left: 0;
    }

    .nav-btn.next {
        right: 0;
    }

    .carousel-wrapper {
        padding: 0 60px;
    }

    .recipe-card {
        flex: 0 0 100%;
    }

    .nav-btn {
        display: none;
    }

    /* On utilise le swipe sur mobile */
    .about-grid {
        grid-template-columns: 1fr;
    }

    header .container {
        padding: 0 15px;
    }

    .hamburger-menu {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex;
    }
}

.full-width-section {
    width: 100%;
    box-sizing: border-box;
}

.recipe-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Contact Section */
.contact-section p {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 40px;
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

.social-links {
    text-align: center;
    margin-top: 30px;
}

.social-links a {
    margin: 0 15px;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}


/* Footer */
footer {
    background-color: #333;
    color: var(--text-color-light);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

.skill-item {
            position: relative; 
            text-align: center;
            padding: 10px 5px;
            border-radius: var(--border-radius);
            transition: transform 0.3s;
            cursor: pointer;
            display: flex; 
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

/* Détail au survol (Tooltips) */
.skill-detail {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%) scale(0.8);
    width: auto;
    min-width: 150px;
    background-color: var(--accent-color);
    color: var(--text-color);
    /* Texte sombre sur Jaune Vif */
    padding: 8px 12px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 20;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    text-align: center;
}

.skill-detail::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    z-index: -1;
}

.skill-item:hover .skill-detail {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-100%) scale(1);
}