/**
 * Feuille de styles pour l'application Fête de la Science
 * Style moderne, clair et accessible
 */

/* === VARIABLES CSS === */
:root {
    --primary-color: #0051a5;
    --secondary-color: #e63312;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* === RÉINITIALISATION === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === STYLES GÉNÉRAUX === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* === Barre de navigation === */

.site-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;

    /* Pop animation */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-title:hover {
    color: #003d7a;
    transform: scale(1.08);
    text-decoration: none;
    cursor: pointer;
}


.user-bar {
    background-color: white;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end; /* Pushes content to the right */
    align-items: center;
}

.user-info, .auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.9em;
}
.logo-container {
    display: inline-block;
    /* 1. Default State: Zoom 120% */
    transform: scale(1.2);
    /* Make sure it has space */
    margin-left: 15px;

    /* Smooth Animation */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 2. Hover State: Zoom 140% + "Pop" */
.logo-container:hover {
    transform: scale(1.4);
    z-index: 10;
    cursor: pointer;
}





/* === HEADER === */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

header h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--medium-gray);
    font-size: 1.1em;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px; /* ✅ this is the key */
}


/* === FORMULAIRE === */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1em;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 81, 165, 0.1);
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: var(--medium-gray);
}




/* === BOUTONS === */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 81, 165, 0.3);
}

.btn-secondary {
    background-color: var(--medium-gray);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.btn-sm {
    font-size: 0.9em;
    padding: 5px 12px;

}

.btn-sm:hover {
    background-color: #f0f4f8;
}

.btn-navbar {
    background: none;
    border: none;
    font: inherit;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-navbar:hover {
    background-color: #f0f4f8;
    color: #003d7a;
}


.btn-highlight {
    background-color: var(--primary-color);
    color: white !important;
    border: none;
    text-decoration: none;
    /* Smooth Animation */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.btn-highlight:hover {
    background-color: #003d7a; /* Darker blue */
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 81, 165, 0.3); /* Big shadow */
    z-index: 10; /* Ensure it pops over everything else */
    cursor: pointer;
}
.btn-highlightwhite {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-highlightwhite:hover {
    background-color: #f0f4f8;
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 81, 165, 0.3); /* Big shadow */
    z-index: 10; /* Ensure it pops over everything else */
    cursor: pointer;
}

.btn-outline {
    border: 1px solid #dc3545;
    color: #dc3545;
}

.btn-outline:hover {
    background-color: #dc3545;
    color: white !important;
}

.btn-edit{
    color: var(--primary-color);
    border-color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    justify-content: center;
}

.btn-match {
    width: 100%;
}


/* === SECTION INFO === */
.info-section {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
}

.info-section h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.info-section ul {
    list-style-position: inside;
    padding-left: 0;
}

.info-section li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* === FOOTER === */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.9em;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}


/* === NOUVEAUX STYLES POUR L'INSCRIPTION (ICONES & DETAILS) === */

/* Champ en lecture seule */
.readonly-input {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Conteneur Flex pour Select + Icone */
.input-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-icon select {
    flex-grow: 1; /* Prend l'espace restant */
}

.view-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s;
}

.view-icon:hover {
    transform: scale(1.1);
}

/* Boîte de détails (Info Box) */
.info-box {
    margin-top: 15px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: slideDown 0.3s ease-out;
}

.info-box h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.1em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.info-box p {
    margin-bottom: 5px;
    font-size: 0.95em;
}

/* Animation d'apparition */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}