/* Charte Graphique Mariage Virginie & Cédric */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f0e8;
    font-family: 'Cormorant Garamond', serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    color: #4a3f35;
}

/* Décors eucalyptus en coins */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 320px;
    height: 420px;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

body::before {
    top: -20px;
    left: -30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400'%3E%3Cellipse cx='80' cy='120' rx='45' ry='35' fill='%235c7a5c' opacity='0.7'/%3E%3Cellipse cx='130' cy='80' rx='38' ry='28' fill='%236b8f6b' opacity='0.6'/%3E%3Cellipse cx='50' cy='200' rx='50' ry='38' fill='%234a6b4a' opacity='0.75'/%3E%3Cellipse cx='110' cy='160' rx='32' ry='25' fill='%235c7a5c' opacity='0.65'/%3E%3Cellipse cx='170' cy='110' rx='28' ry='22' fill='%236b8f6b' opacity='0.5'/%3E%3Cline x1='80' y1='120' x2='170' y2='30' stroke='%235c7a5c' stroke-width='3' opacity='0.5'/%3E%3Cline x1='50' y1='200' x2='130' y2='80' stroke='%234a6b4a' stroke-width='2.5' opacity='0.5'/%3E%3Ccircle cx='200' cy='60' r='8' fill='%23d4b896' opacity='0.6'/%3E%3Ccircle cx='185' cy='80' r='6' fill='%23d4b896' opacity='0.5'/%3E%3Ccircle cx='215' cy='75' r='7' fill='%23d4b896' opacity='0.55'/%3E%3Cellipse cx='30' cy='280' rx='42' ry='32' fill='%235c7a5c' opacity='0.7'/%3E%3Cellipse cx='90' cy='250' rx='35' ry='27' fill='%234a6b4a' opacity='0.6'/%3E%3Cline x1='30' y1='280' x2='90' y2='250' stroke='%235c7a5c' stroke-width='2' opacity='0.4'/%3E%3C/svg%3E");
}

body::after {
    bottom: -20px;
    right: -30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400'%3E%3Cellipse cx='220' cy='280' rx='45' ry='35' fill='%235c7a5c' opacity='0.7'/%3E%3Cellipse cx='170' cy='320' rx='38' ry='28' fill='%236b8f6b' opacity='0.6'/%3E%3Cellipse cx='250' cy='200' rx='50' ry='38' fill='%234a6b4a' opacity='0.75'/%3E%3Cellipse cx='190' cy='240' rx='32' ry='25' fill='%235c7a5c' opacity='0.65'/%3E%3Cellipse cx='130' cy='290' rx='28' ry='22' fill='%236b8f6b' opacity='0.5'/%3E%3Cline x1='220' y1='280' x2='130' y2='370' stroke='%235c7a5c' stroke-width='3' opacity='0.5'/%3E%3Cline x1='250' y1='200' x2='170' y2='320' stroke='%234a6b4a' stroke-width='2.5' opacity='0.5'/%3E%3Ccircle cx='100' cy='340' r='8' fill='%23d4b896' opacity='0.6'/%3E%3Ccircle cx='115' cy='360' r='6' fill='%23d4b896' opacity='0.5'/%3E%3Ccircle cx='85' cy='355' r='7' fill='%23d4b896' opacity='0.55'/%3E%3Cellipse cx='270' cy='120' rx='42' ry='32' fill='%235c7a5c' opacity='0.7'/%3E%3Cellipse cx='210' cy='150' rx='35' ry='27' fill='%234a6b4a' opacity='0.6'/%3E%3Cline x1='270' y1='120' x2='210' y2='150' stroke='%235c7a5c' stroke-width='2' opacity='0.4'/%3E%3C/svg%3E");
}

.card {
    position: relative;
    z-index: 1;
    background-color: #faf7f2;
    border: 1.5px solid #c9a96e;
    max-width: 560px;
    width: 100%;
    padding: 50px 45px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card.card-wide {
    max-width: 880px;
}

.card.card-full {
    max-width: 1100px;
}

/* Bordure dorée intérieure */
.card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 0.5px solid #c9a96e;
    pointer-events: none;
}

.ornement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #5c7a5c;
    font-size: 13px;
    letter-spacing: 2px;
    margin: 18px 0;
}

.ornement::before,
.ornement::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: #5c7a5c;
}

.ornement-coeur {
    color: #5c7a5c;
    font-size: 14px;
}

.titre-script {
    font-family: 'Great Vibes', cursive;
    font-size: 52px;
    color: #3d5c3d;
    line-height: 1.2;
    margin: 10px 0;
}

.titre-serif {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #7a6a5a;
    margin-bottom: 8px;
}

.date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    color: #2d3d2d;
    margin: 8px 0;
}

.texte {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 300;
    color: #4a3f35;
    line-height: 1.7;
}

/* Formulaire */
.form-group {
    margin: 16px 0;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: #5a4a3a;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid #c9a96e;
    background: #fdfbf7;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: #3a3030;
    outline: none;
    transition: all 0.2s;
    border-radius: 0;
}

.form-control:focus {
    border-color: #5c7a5c;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(92, 122, 92, 0.15);
}

.form-hint {
    font-size: 14px;
    color: #8c7e70;
    font-style: italic;
    margin-top: 5px;
}

.btn {
    display: inline-block;
    padding: 13px 40px;
    background: transparent;
    border: 1.5px solid #c9a96e;
    color: #5a4a3a;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn:hover {
    background: #5c7a5c;
    border-color: #5c7a5c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(92, 122, 92, 0.25);
}

.btn-secondary {
    border-color: #a89d90;
    color: #6a5e52;
}

.btn-secondary:hover {
    background: #8c7e70;
    border-color: #8c7e70;
    color: #fff;
}

.btn-danger {
    border-color: #c96e6e;
    color: #8a3030;
}

.btn-danger:hover {
    background: #b54747;
    border-color: #b54747;
    color: #fff;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    letter-spacing: 1px;
}

.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Alertes */
.alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    border-left: 3px solid;
    text-align: left;
    line-height: 1.5;
}

.alert-warning {
    background: #fdf8ee;
    border-color: #c9a96e;
    color: #7a5a20;
}

.alert-danger {
    background: #fdf2f2;
    border-color: #c96e6e;
    color: #7a2020;
}

.alert-success {
    background: #f2f7f2;
    border-color: #5c7a5c;
    color: #2e592e;
}

.alert-info {
    background: #f2f6f9;
    border-color: #6e99c9;
    color: #274b73;
}

/* Question Option Cards */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
    text-align: left;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #d9c7a7;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.option-card:hover {
    border-color: #5c7a5c;
    background: #fafcf9;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.option-card.selected {
    border-color: #5c7a5c;
    border-width: 1.5px;
    background: #f2f7f2;
}

.option-card input[type="radio"] {
    accent-color: #5c7a5c;
    width: 20px;
    height: 20px;
    margin-right: 14px;
    cursor: pointer;
}

.option-text {
    font-size: 18px;
    color: #3a3030;
    flex: 1;
}

/* Progress indicator */
.quiz-progress-bar {
    width: 100%;
    height: 5px;
    background: #e8ded1;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: #5c7a5c;
    transition: width 0.3s ease;
}

.quiz-step-indicator {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7a6a5a;
    margin-bottom: 10px;
}

/* Badges & Tables */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

.badge-success {
    background: #e2efe2;
    color: #2b5e2b;
    border: 1px solid #5c7a5c;
}

.badge-warning {
    background: #fdf3df;
    color: #8f6213;
    border: 1px solid #c9a96e;
}

.badge-danger {
    background: #fce8e8;
    color: #8c2a2a;
    border: 1px solid #c96e6e;
}

.badge-muted {
    background: #eeebe6;
    color: #736b63;
    border: 1px solid #d4cec4;
}

/* Tableaux élégants */
.wedding-table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
    background: #ffffff;
    border: 1px solid #d9c7a7;
}

.wedding-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: 'Cormorant Garamond', serif;
}

.wedding-table th {
    background: #f5ede1;
    color: #4a3a2a;
    padding: 12px 16px;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid #c9a96e;
    font-weight: 600;
}

.wedding-table td {
    padding: 12px 16px;
    font-size: 16px;
    border-bottom: 1px solid #eee5d8;
    color: #3d352e;
}

.wedding-table tr:hover td {
    background: #faf6f0;
}

/* Admin Nav & Header */
.admin-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 25px 0;
    border-bottom: 1px solid #e3d3b8;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-nav-link {
    color: #6a5a4a;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    border-color: #c9a96e;
    color: #3d5c3d;
    background: #fbf9f5;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #d9c7a7;
    padding: 20px 15px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #5c7a5c;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #3d5c3d;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7a6a5a;
}

/* Podium Top 3 */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin: 30px 0 20px 0;
    flex-wrap: wrap;
}

.podium-step {
    background: #fff;
    border: 1.5px solid #c9a96e;
    padding: 20px 15px;
    text-align: center;
    width: 140px;
}

.podium-step.step-1 {
    border-color: #d4af37;
    background: #fffdf5;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    order: 2;
    transform: translateY(-10px);
}

.podium-step.step-2 {
    border-color: #b0b0b0;
    background: #fafafa;
    order: 1;
}

.podium-step.step-3 {
    border-color: #cd7f32;
    background: #fdf8f4;
    order: 3;
}

.podium-medal {
    font-size: 32px;
    margin-bottom: 5px;
}

.podium-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3d2d;
}

.podium-score {
    font-size: 14px;
    color: #5c7a5c;
    margin-top: 4px;
}

/* Correction breakdown list */
.correction-item {
    background: #fff;
    border: 1px solid #d9c7a7;
    padding: 18px 20px;
    margin-bottom: 16px;
    text-align: left;
}

.correction-item.correct {
    border-left: 4px solid #5c7a5c;
}

.correction-item.incorrect {
    border-left: 4px solid #c96e6e;
}

.correction-item.unanswered {
    border-left: 4px solid #d4a373;
    background: #fffdf9;
}

.correction-q-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3d2d;
    margin-bottom: 10px;
}

.correction-details {
    font-size: 16px;
    margin-bottom: 6px;
}

.correction-anecdote {
    margin-top: 10px;
    padding: 10px 14px;
    background: #faf6f0;
    border-left: 2px solid #c9a96e;
    font-style: italic;
    font-size: 15px;
    color: #634f3d;
}

/* Mobile */
@media (max-width: 600px) {
    body {
        padding: 20px 10px;
    }

    body::before,
    body::after {
        display: none;
    }

    .card {
        padding: 35px 20px;
    }

    .titre-script {
        font-size: 38px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    .podium-step {
        width: 100%;
        order: unset !important;
        transform: none !important;
    }

    .admin-navbar {
        flex-direction: column;
        align-items: stretch;
    }
}
