/* --- 1. Polices et Variables --- */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-VariableFont_wght.ttf');
}
@font-face {
    font-family: 'AbrilFatface';
    src: url('fonts/AbrilFatface-Regular.ttf');
}

:root {
    /* Couleurs */
    --miel-printemps: #F4C430;
    --miel-ete:       #F39C12;
    --ambre-0:        #f1b01f;
    --beige-0:        #FCF7F1;
    --beige-1:        #fff7e1;
    --gris-0:         #5F5A55;
    --gris-1:         #2C2A28;
    --bleu:           #113C8D;
    --blanc:          #F0F1F6;
    --rouge:          #C71F2B;

    --max: 1120px;
}

/* --- 2. Styles Généraux --- */
body {
    margin: 0;
    padding: 0;
    background-color: var(--beige-0);
    color: var(--gris-0);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    line-height: 1.6;
}

p {
    font-weight: 500;
}



/* Un conteneur pour centrer le contenu et limiter sa largeur sur grand écran */
.container {
    max-width: var(--max);
    margin: 0 auto;
}

/* --- 3. Titres et Textes --- */
h1 {
    font-family: 'AbrilFatface', serif;
    font-weight: normal;
    color: var(--gris-1);
    font-size: clamp(2rem, 6vw, 4rem);
    margin-top: 0;
    margin-bottom: 0.2em;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--ambre-0);
    margin-top: 0;
}

h2.section-title{
    font-family: 'AbrilFatface', serif;
    color: var(--gris-1);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 500;

}

.button {
    display: inline-block;
    padding: 10px 20px;
    color: var(--ambre-0);
    text-decoration: none;
    border: 2px solid var(--ambre-0);
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition-duration: .2s;
}
.button:hover {
    background-color: var(--ambre-0);
    color: #fff;
}

/* --- 4. Structure des Sections (Alternance) --- */
section {
    padding: 80px 20px;
}

/* Les sections impaires auront ce fond */
section:nth-of-type(even) {
    background-color: var(--beige-0);
}

/* Les sections paires auront ce fond */
section:nth-of-type(odd) {
    background-color: var(--beige-1);
}

/* Ajoute une ligne uniquement entre les sections */
section + section {
    border-top: 1px solid rgb(131 61 0 / 0.15);
}

/* --- 5. Section Présentation (Hero) --- */
.hero-section h2.naturel {
    color: var(--gris-0);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin: 5px 0;
}

#text_over_top_img {
    border : 1px solid red;
    text-align: left;
    margin: 10%;

    display: none;
}

#text_over_top_img #miel {
    font-weight: 900;
    font-size: clamp(2rem, 3vw, 2.5rem);;
}

/* --- 6. Cartes et Grille (Mobile First) --- */
.criteres-section {
    position: relative;
}
.criteres-section .container,
.produits-section .container {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr; /* Sur téléphone : 1 seule colonne */
}

/* Style des "cartes" */
.item {
    /*background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
     */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.item img {
    width: clamp(50px, 30vw, 100px);
    margin: 10px;
}

.item .pot-de-miel {
    width: clamp(220px, 30vw, 350px);
    display: inline-block;
}

.item .prix {
    font-weight: bold;
    font-size: 1.2rem;
}

.abeille-decoration {
    position: absolute;
    top: 15%;
    right: 0;
    width: clamp(150px, 20vw, 300px);
}

.item h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.2rem;
    color: var(--gris-1);
    text-align: center; /* On garde le titre de la carte centré */
}

h2.spring {
    color: var(--miel-printemps);
    font-size: 1.6rem;
}

h2.summer {
    color : var(--miel-ete);
    font-size: 1.6rem;
}

/* --- 7. Pied de page (Footer) --- */

footer {
    height: auto;
    background-color: var(--gris-1);
    color: var(--beige-0);
    padding: 10px;
}

/* Conteneur vert */
.footer-big-container {
    display: flex;
    flex-direction: column; /* Sur mobile : on empile à la verticale */
    align-items: flex-start; /* Aligne les éléments à gauche */
    gap: 10px;
    width: fit-content;
    margin: 0 auto;
}

/* Conteneurs rouges */
.footer-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
}


/* --- 8. Responsive Ordinateur (Desktop) --- */
/* À partir de 900px de large, on active les colonnes multiples */
@media (min-width: 900px) {
    /* 3 colonnes pour la section des critères */
    .criteres-section .container {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-big-container {
        flex-direction: row; /* Aligne les éléments côte à côte */
        justify-content: center; /* Centre parfaitement l'ensemble */
        gap: 40px; /* Crée un bel espace entre le téléphone et le mail */
    }

    /* 2 colonnes pour la section des miels */
    .produits-section .container {
        grid-template-columns: repeat(2, 1fr);
    }
}





/* --- 9. Section Contact / Commande --- */
.choix-demande {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-align: left;
}
.choix-titre {
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    color: var(--ambre-0);
    margin-bottom: 15px;
    display: block;
}
.choix-options {
    display: flex;
    gap: 30px;
    font-weight: bold;
}
.choix-options input {
    margin-right: 8px;
    transform: scale(1.2);
}
.order-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 26px;
}
@media (min-width: 768px) {
    .order-grid { grid-template-columns: 1fr 1fr; }
}
.order-card {
    border: 2px solid rgba(95, 90, 85, 0.15);
    border-radius: 18px;
    padding: 22px 22px 24px;
    background: white;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.order-card.selected {
    border-color: var(--ambre-0);
    box-shadow: 0 10px 26px -18px rgba(44,42,40,.35);
}
.order-jar {
    display: block; width: 100%; border: none; background: none; padding: 0; margin: 0 0 14px;
    cursor: pointer; position: relative; border-radius: 12px;
}
.order-jar img, .order-jar svg { width: 100%; height: auto; display: block; }
.order-jar-frame {
    position: relative; border-radius: 12px; overflow: hidden; display: block;
    background: linear-gradient(160deg, #FBE9BF, #FDF6E6);
    padding: 14px 10px 6px;
}
.order-card.selected .order-jar-frame { background: linear-gradient(160deg, #FDE4A8, #FBEFD2); }
.order-jar-check {
    position: absolute; top: 10px; right: 10px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--ambre-0); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: bold;
    opacity: 0; transform: scale(.6);
    transition: opacity .18s ease, transform .18s ease;
}
.order-card.selected .order-jar-check { opacity: 1; transform: scale(1); }
.order-hint { text-align: center; font-size: 14px; margin: 0 0 15px; }
.order-name { font-size: 1.2rem; margin: 0 0 4px; color: var(--gris-1); }

.order-sizes { border-top: 1px solid rgba(95, 90, 85, 0.15); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.stepper { display: flex; align-items: center; border: 1.5px solid rgba(95, 90, 85, 0.15); border-radius: 100px; overflow: hidden; }
.stepper button {
    width: 30px; height: 30px; border: none; background: white; cursor: pointer;
    font-size: 16px; font-weight: 700; color: var(--gris-1);
    display: flex; align-items: center; justify-content: center;
}
.stepper button:hover { background: var(--ambre-0); color: white; }
.stepper input {
    width: 34px; text-align: center; border: none; background: white;
    font-size: 14px; font-weight: 700; color: var(--gris-1);
}

.order-recap {
    background: white; border: 1.5px dashed var(--ambre-0); border-radius: 12px;
    padding: 14px 18px; margin-bottom: 30px; text-align: left;
}
.order-recap ul { padding-left: 18px; }
.order-total { display: flex; justify-content: space-between; border-top: 1px solid rgba(95, 90, 85, 0.15); margin-top: 12px; padding-top: 10px; font-weight: bold; }

/* Styles du formulaire */
.contact-grid { text-align: left; max-width: 600px; margin: 0 auto; }
.form-fields { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: bold; margin-bottom: 6px; color: var(--gris-1); }
.field input, .field textarea {
    width: 100%; font-family: 'Montserrat', sans-serif; font-size: 15px;
    padding: 12px 14px; border: 1.5px solid rgba(95, 90, 85, 0.15); border-radius: 8px;
    background: white; color: var(--gris-1); box-sizing: border-box;
}
.field textarea { resize: vertical; min-height: 110px; }
.btn-primary {
    background: var(--gris-1); color: white; border: none; border-radius: 50px;
    padding: 15px 30px; font-size: 16px; font-weight: bold; cursor: pointer;
    margin-top: 10px; font-family: 'Montserrat', sans-serif; transition: background 0.3s;
}
.btn-primary:hover { background: var(--ambre-0); }


















/* =========================
   AVIS CLIENTS
========================= */


.avis-carousel {
    display: flex;
    gap: 20px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.avis-card {
    flex: 0 0 100%;
    padding: 30px 25px;
    text-align: left;
}

.avis-stars {
    font-family: serif;
    font-weight: bold;
    color: var(--miel-ete);
    font-size: 6rem;
    width: fit-content;
    line-height: 0;
}

.avis-card p {
    margin-bottom: 15px;
    font-style: italic;
}

.avis-card strong {
    color: var(--gris-1);
}

.avis-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.avis-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ccc;
}

.avis-dot.active {
    background: var(--miel-ete);
}


/* DESKTOP : les 3 avis sont visibles */

@media (min-width: 900px) {

    .avis-carousel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        overflow: visible;
    }

    .avis-card {
        flex: none;
    }

    .avis-dots {
        display: none;
    }
}