/* --- CONFIGURATION GÉNÉRALE & VARIABLES --- */
:root {
    --proverci-green: #1b4332;       /* Vert forêt profond */
    --proverci-light-green: #40916c; /* Vert feuillage */
    --proverci-gold: #d4af37;        /* Or pour le côté Premium Bio */
    --bg-light: #f4f7f4;             /* Gris-vert très clair pour le fond */
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --white: #ffffff;
    --error: #d63031;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

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

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.main-header {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-corp { height: 55px; object-fit: contain; }
.logo-c10 { 
    height: 45px; 
    border-left: 2px solid #eee; 
    padding-left: 15px; 
    object-fit: contain;
}

.btn-small {
    background: var(--proverci-green);
    color: white;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-small:hover {
    background: var(--white);
    color: var(--proverci-green);
    border-color: var(--proverci-green);
}

/* --- INTRO SECTION --- */
.intro-section {
    text-align: center;
    padding: 60px 0 40px;
}

.label {
    display: inline-block;
    text-transform: uppercase;
    color: var(--proverci-gold);
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.intro-section h1 {
    font-size: 2.8rem;
    color: var(--proverci-green);
    margin: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

.subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin: 20px auto 0;
    font-style: italic;
    font-size: 1.05rem;
}

/* --- FORMULAIRE STYLE ÉDITORIAL --- */
.editorial-form {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.form-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease backwards;
}

/* Effet d'apparition pour les sections */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.line {
    width: 60px;
    height: 4px;
    background: var(--proverci-gold);
    margin-bottom: 20px;
    border-radius: 2px;
}

.form-section h3 {
    font-size: 1.3rem;
    color: var(--proverci-green);
    letter-spacing: 1px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.field {
    margin-bottom: 30px;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--proverci-green);
}

.required-star { color: var(--error); margin-left: 4px; }

/* Inputs Text & Textarea */
input[type="text"], 
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d8e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fdfdfd;
}

input[type="text"]:focus, 
textarea:focus {
    border-color: var(--proverci-light-green);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.15);
}

/* Radio & Checkbox */
.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    background: #f8faf8;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #d1d8e0;
}

.choices label {
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    margin-bottom: 0; /* Override label margin */
}

input[type="radio"] {
    accent-color: var(--proverci-green);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* --- BOUTON SUBMIT --- */
.btn-black {
    width: 100%;
    background: var(--proverci-green);
    color: var(--white);
    border: none;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(27, 67, 50, 0.3);
}

.btn-black:hover {
    background: #081c15;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.4);
}

.btn-black:active {
    transform: translateY(-1px);
}

/* --- FOOTER --- */
.login-footer {
    text-align: center;
    padding: 50px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.login-footer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .intro-section h1 { font-size: 2rem; }
    
    .editorial-form {
        padding: 30px 20px;
    }

    .choices {
        flex-direction: column;
        gap: 15px;
    }

    .logo-c10 { display: none; }
}

@media (max-width: 480px) {
    .intro-section { padding: 40px 0 20px; }
    .btn-black { font-size: 1rem; padding: 16px; }
}

.ranking-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.rank-item {
    background: #fff;
    border: 2px solid var(--proverci-green);
    color: var(--proverci-green);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.rank-item.selected {
    background: var(--proverci-green);
    color: white;
}

.rank-item.selected::before {
    content: attr(data-rank) ". "; /* Affiche le numéro devant */
    color: var(--proverci-gold);
    margin-right: 5px;
}

.btn-reset {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 5px;
}
.already-submitted {
    display: none; /* Caché par défaut */
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.already-submitted i {
    font-size: 4rem;
    color: var(--proverci-gold);
    margin-bottom: 20px;
}

.custom-select-wrapper select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d8e0;
    background-color: white;
    font-size: 1rem;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.badge-paiement {
    background: var(--proverci-green);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-paiement i {
    cursor: pointer;
    color: var(--proverci-gold);
}

.badge-paiement i:hover {
    color: #e74c3c;
}

/* Par défaut (mobile) : on cache la nav desktop */
.nav-desktop {
    display: none;
    opacity: 0;
}


/* --- Ajustement Mobile (Smartphone) --- */
@media screen and (max-width: 767px) {
    .main-header {
        padding: 10px 0; /* Réduit un peu le padding du header sur mobile */
    }

    .header-grid {
        padding: 0 15px; /* Ajoute de l'espace sur les côtés */
    }

    .logo-area {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* CORRECTIF : Cible directement l'image avec la classe .logo-corp (C10) */
    img.logo-corp {
        height: 30px !important; /* Force la hauteur */
        width: auto !important;  /* Laisse la largeur s'adapter */
        order: 1;                /* Place à gauche */
    }

    /* CORRECTIF : Cible directement l'image avec la classe .logo-proverci (PROVERCI) */
    img.logo-proverci {
        height: 35px !important; /* Force la hauteur (un peu plus grand que C10) */
        width: auto !important;  /* Laisse la largeur s'adapter */
        order: 2;                /* Place à droite */
        border: none !important; /* Retire toute bordure héritée */
        padding: 0 !important;   /* Retire tout padding hérité */
        margin: 0 !important;    /* Retire tout margin hérité */
    }
    
    /* Cache le menu desktop sur mobile */
    .nav-desktop {
        display: none;
    }
}