/**
 * Styles principaux pour le formulaire d'inscription MSPLA
 * Version nettoyée et organisée
 */

/* ============================================
   RESET ET BASE
   ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #17458f 0%, #1a5cb8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
}

.page-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.spacer {
    height: 20px;
}

.text-center {
    text-align: center;
}

/* ============================================
   CONTAINERS
   ============================================ */

.container,
.container-large {
    backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.container {
    max-width: 600px;
}

.container-large {
    max-width: 1000px;
}

/* ============================================
   FORMULAIRES GLASSMORPHISM
   ============================================ */

.glass-form {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    color: #fff;
}

.glass-form h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8em;
    text-align: center;
}

.glass-form input,
.glass-form textarea,
.glass-form select {
    width: 100%;
    padding: 0.75em 1em;
    margin-bottom: 1rem;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.glass-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 40px;
}

.glass-form select option {
    background: #17458f;
    color: #fff;
    padding: 10px;
}

.glass-form input::placeholder,
.glass-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.glass-form input:focus,
.glass-form textarea:focus,
.glass-form select:focus {
    background: rgba(255, 255, 255, 0.35);
    outline: none;
}

.glass-form textarea {
    resize: vertical;
    min-height: 100px;
}

.glass-form fieldset {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
}

.glass-form legend {
    padding: 0 10px;
    font-weight: 600;
}

.note {
    font-size: 0.85em;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* ============================================
   SECTION SANG'BASSADEUR
   ============================================ */

.sangbassadeur-section {
    text-align: center;
    padding: 1.5rem;
}

.sangbassadeur-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.question {
    font-size: 1.2em;
    font-weight: 600;
    color: #ffeb3b;
    margin-bottom: 1rem;
}

/* ============================================
   RADIO BUTTONS
   ============================================ */

.radio-group-minimal {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.radio-group-minimal input[type="radio"] {
    display: none;
}

.radio-group-minimal label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.radio-group-minimal label:hover {
    transform: scale(1.05);
}

.radio-dot {
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.radio-group-minimal input[type="radio"]:checked + label .radio-dot {
    background: #4caf50;
    border-color: #4caf50;
}

.radio-group-minimal input[type="radio"]:checked + label .radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

/* ============================================
   SECTION PLAGES HORAIRES
   ============================================ */

.plages-section {
    padding: 1.5rem;
}

.plages-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8em;
}

.jour-section {
    margin-bottom: 2rem;
}

.jour-section h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5em;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.separator {
    border: none;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 2rem 0;
}

/* ============================================
   TABLES PLAGES
   ============================================ */

.plages-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.plages-table th,
.plages-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.plages-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.95em;
}

.plages-table td {
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   CHECKBOXES PERSONNALISÉES
   ============================================ */

.checkbox-container {
    display: inline-block;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: inline-block;
    height: 25px;
    width: 25px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.5);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #2196F3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* ============================================
   LIENS PLAGES
   ============================================ */

.plage-link {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.plage-link:hover {
    color: #ffeb3b;
    text-decoration: underline;
}

.plage-link.complet {
    color: #ff5252;
    font-weight: 600;
}

.plage-annulee {
    color: #ff5252;
    font-weight: 600;
}

/* ============================================
   BOUTONS
   ============================================ */

.actions-container {
    text-align: center;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-danger {
    color: #fff;
    background-color: #d9534f;
    border: 2px solid #d43f3a;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: #c9302c;
    border-color: #761c19;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 83, 79, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border: 2px solid #5a6268;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #5a6268;
    border-color: #4e555b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    text-align: center;
    padding: 2rem;
    color: #fff;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #ffeb3b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ============================================
   ALERTES
   ============================================ */

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-danger {
    background: rgba(217, 83, 79, 0.9);
    border: 1px solid #d43f3a;
    color: #fff;
}

.alert-success {
    background: rgba(92, 184, 92, 0.9);
    border: 1px solid #4cae4c;
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container,
    .container-large {
        padding: 15px;
    }
    
    .glass-form {
        padding: 1.5rem;
    }
    
    .radio-group-minimal {
        flex-direction: column;
        gap: 15px;
    }
    
    .plages-table th,
    .plages-table td {
        padding: 10px 5px;
        font-size: 0.9em;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .plages-table {
        font-size: 0.8em;
    }
    
    .jour-section h3 {
        font-size: 1.2em;
    }
}
