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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --akwaba-color: #ff6b35;
    --akwaba-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
    --bg-color: #f5f7fa;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Animations d'entrée */
.fade-in {
    /* Animation désactivée */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background-image: url('../../akwaba.jpeg');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 0;
    position: relative;
    overflow: visible;
    width: 100%;
    aspect-ratio: auto;
}

.logo {
    position: relative;
    z-index: 2;
}

.logo-text {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 
        3px 3px 12px rgba(0, 0, 0, 1),
        0 0 30px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo p {
    font-size: 1em;
    opacity: 1;
    margin-bottom: 30px;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 1),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.6),
        0 0 8px rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}

.welcome-message {
    margin: 30px 0;
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 500;
    opacity: 1;
    color: #ffffff;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 1),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.6),
        0 0 8px rgba(255, 255, 255, 0.4);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
    position: relative;
    z-index: 2;
}

.akwaba-title {
    font-size: 3.5em;
    font-weight: 800;
    margin: 15px 0;
    color: #ffd700;
    text-shadow: 
        3px 3px 12px rgba(0, 0, 0, 1),
        0 0 30px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(255, 215, 0, 1),
        0 0 50px rgba(255, 215, 0, 0.8),
        0 0 75px rgba(255, 215, 0, 0.6);
    animation: glow 2s ease-in-out infinite alternate;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 1));
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 12px;
    display: inline-block;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

@keyframes glow {
    from {
        text-shadow: 
            3px 3px 12px rgba(0, 0, 0, 1),
            0 0 30px rgba(0, 0, 0, 0.9),
            0 0 50px rgba(0, 0, 0, 0.7),
            0 0 25px rgba(255, 215, 0, 1),
            0 0 50px rgba(255, 215, 0, 0.8),
            0 0 75px rgba(255, 215, 0, 0.6);
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.8),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
    to {
        text-shadow: 
            3px 3px 12px rgba(0, 0, 0, 1),
            0 0 30px rgba(0, 0, 0, 0.9),
            0 0 50px rgba(0, 0, 0, 0.7),
            0 0 35px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 215, 0, 0.9),
            0 0 90px rgba(255, 215, 0, 0.7);
        box-shadow: 
            0 4px 8px rgba(0, 0, 0, 0.8),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            0 0 20px rgba(255, 215, 0, 0.4);
    }
}

.year-badge {
    display: inline-block;
    background: var(--akwaba-gradient);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 10px;
    box-shadow: 
        0 4px 15px rgba(255, 107, 53, 0.8),
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 50px rgba(255, 215, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: bounce 2s ease-in-out infinite;
    text-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.subtitle {
    font-size: 1.1em;
    opacity: 1;
    font-weight: 400;
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 1),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.6),
        0 0 8px rgba(255, 255, 255, 0.4);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
}




@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


.form-container {
    padding: 50px 30px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inscription-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideInLeft 0.6s ease-out both;
}

#classe-group {
    transition: all 0.3s ease;
}

#classe-group.show {
    display: flex !important;
    animation: slideDown 0.3s ease;
}

.form-group:nth-child(1) { animation-delay: 0.5s; }
.form-group:nth-child(2) { animation-delay: 0.6s; }
.form-group:nth-child(3) { animation-delay: 0.7s; }
.form-group:nth-child(4) { animation-delay: 0.8s; }
.form-group:nth-child(5) { animation-delay: 0.9s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.required {
    color: var(--error-color);
    font-size: 1.2em;
}

.form-group input,
.form-group select {
    padding: 15px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #999;
}

/* Sélecteur d'indicatif téléphonique */
.phone-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.indicatif-select {
    flex: 0 0 140px;
    padding: 15px 12px !important;
    border-radius: 10px 0 0 10px !important;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px !important;
}

.phone-input {
    flex: 1;
    border-radius: 0 10px 10px 0 !important;
    border-left: none !important;
}

.phone-input-wrapper:focus-within .indicatif-select {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.btn-submit {
    background: var(--akwaba-gradient);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    animation: fadeInUp 0.8s ease-out 1s both;
    width: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

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

.btn-submit span {
    position: relative;
    z-index: 1;
}

.alert {
    padding: 18px 25px;
    margin: 20px 30px;
    border-radius: 12px;
    font-weight: 500;
    animation: slideDown 0.4s ease, shake 0.5s ease 0.4s;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: currentColor;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.alert-error {
    background-color: #fee;
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-warning {
    background-color: #fff3cd;
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-success {
    background-color: #d4edda;
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.footer {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8e8e8 100%);
    padding: 25px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
    animation: fadeIn 0.8s ease-out 1.2s both;
}

/* Success Page Styles */
.success-container {
    padding: 80px 30px;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.success-icon {
    margin-bottom: 40px;
    animation: scaleIn 0.6s ease, pulse 2s ease-in-out 0.6s infinite;
}

.success-icon svg {
    animation: checkmark 0.8s ease;
    filter: drop-shadow(0 4px 10px rgba(39, 174, 96, 0.3));
}

.animate-bounce {
    animation: bounceSuccess 1s ease 0.3s;
}

@keyframes bounceSuccess {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.success-title {
    color: var(--success-color);
    font-size: 2.5em;
    margin-bottom: 25px;
    font-weight: 700;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

.success-message strong {
    color: var(--akwaba-color);
    font-size: 1.1em;
}

.success-info {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.success-badge {
    background: var(--akwaba-gradient);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    margin: 30px 0;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    animation: bounce 2s ease-in-out infinite;
}

.btn-back {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Animations */
@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes checkmark {
    0% {
        stroke-dasharray: 0 50;
    }
    100% {
        stroke-dasharray: 50 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 15px;
        margin: 0 auto;
    }

    .logo-text {
        font-size: 2.2em;
    }

    .akwaba-title {
        font-size: 2.5em;
    }

    .welcome-title {
        font-size: 1.4em;
    }

    .header {
        min-height: 300px;
        background-size: contain;
        background-position: center top;
    }

    .form-container {
        padding: 30px 20px;
    }

    .alert {
        margin: 15px 20px;
        padding: 15px 20px;
        font-size: 0.95em;
    }

    .phone-input-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .indicatif-select {
        border-radius: 10px 10px 0 0 !important;
        flex: 1;
        width: 100%;
        padding: 15px 35px 15px 15px !important;
    }

    .phone-input {
        border-radius: 0 0 10px 10px !important;
        border-left: 2px solid var(--border-color) !important;
        border-top: none !important;
        width: 100%;
    }

    .form-group input,
    .form-group select {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }

    .btn-submit {
        padding: 16px 30px;
        font-size: 1.1em;
    }

    .footer {
        padding: 20px 15px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .container {
        border-radius: 10px;
    }

    .logo-text {
        font-size: 1.8em;
    }

    .akwaba-title {
        font-size: 2em;
        letter-spacing: 1px;
    }

    .welcome-title {
        font-size: 1.2em;
    }

    .header {
        min-height: 250px;
        background-size: contain;
        background-position: center top;
    }

    .form-container {
        padding: 25px 15px;
    }

    .form-group {
        gap: 8px;
    }

    .form-group label {
        font-size: 0.9em;
    }

    .form-group input,
    .form-group select {
        padding: 14px 15px;
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }

    .btn-submit {
        padding: 15px 25px;
        font-size: 1em;
        margin-top: 15px;
    }

    .alert {
        margin: 10px 15px;
        padding: 12px 18px;
        font-size: 0.9em;
    }

    .footer {
        padding: 15px 10px;
        font-size: 0.8em;
    }

    .inscription-form {
        gap: 20px;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .header {
        min-height: 200px;
        background-size: contain;
        background-position: center top;
    }

    .form-container {
        padding: 20px 12px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 12px;
    }

    .btn-submit {
        padding: 14px 20px;
        font-size: 0.95em;
    }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        min-height: 200px;
        background-size: contain;
        background-position: center top;
    }

    .form-container {
        padding: 25px 20px;
    }
}
