/* ========================================
   CHARTE GRAPHIQUE IUT LITTORAL 2025
   Palette: Rouge #9B0D24, Bleu #005795
   Typographies: Montserrat, Roboto
======================================== */

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

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #222222;
    background-color: #FFFFFF;
    line-height: 1.6;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */

header {
    background-color: #333333;
    color: #FFFFFF;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: rotate(360deg) scale(1.1);
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
    position: relative;
}

nav a:hover {
    color: #9B0D24;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #9B0D24;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Lien actif du menu (position sur la page) */
nav a.active {
    font-weight: 700;
    color: #9B0D24;
}

nav a.active::after {
    width: 100%;
}


/* ========================================
   HERO SECTION
======================================== */

.hero {
    background: linear-gradient(135deg, rgba(155, 13, 36, 0.9) 0%, rgba(0, 87, 149, 0.9) 100%),
                url('../img/iut.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #FFFFFF;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInScale 1s ease-out;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.hero-date {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 30px !important;
}


/* ========================================
   CONTAINER & SECTIONS
======================================== */



section {
    position: relative;
    z-index: 1;
}

section:not(.hero) {
    padding-top: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   TYPOGRAPHY
======================================== */

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #9B0D24;
    margin-bottom: 30px;
    text-align: center;
    animation: slideInUp 0.8s ease-out backwards;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 15px;
}

p {
    color: #333;
    margin-bottom: 15px;
}

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

.cta-button,
button[type="submit"] {
    display: inline-block;
    background-color: #9B0D24;
    color: #FFFFFF;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #9B0D24;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

.cta-button:hover,
button[type="submit"]:hover {
    background-color: #7A0A1C;
    border-color: #7A0A1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 13, 36, 0.3);
}

.cta-button::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;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   PRESENTATION
======================================== */

.presentation-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.presentation-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
/* ========================================
   inscription compteur 
======================================== */
/* ========================================
   STATISTIQUES D'INSCRIPTION
======================================== */

.countdown-stats-section {
    padding: 40px 20px;
}

.countdown-stats-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #9B0D24;
    text-align: center;
    margin-bottom: 30px;
    animation: slideInUp 0.8s ease-out backwards;
}

/* Styles des statistiques */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInUp 0.6s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(155, 13, 36, 0.25);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 15px;
    font-weight: 700;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9B0D24 0%, #005795 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    line-height: 1;
}

.stat-value.loading {
    color: #999;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stat-description {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .countdown-stats-section h2 {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }
}

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



/* ========================================
   PROGRAMME GRID
======================================== */

.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.programme-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: slideInUp 0.6s ease-out backwards;
}

.programme-card:nth-child(1) { animation-delay: 0.1s; }
.programme-card:nth-child(2) { animation-delay: 0.2s; }
.programme-card:nth-child(3) { animation-delay: 0.3s; }
.programme-card:nth-child(4) { animation-delay: 0.4s; }
.programme-card:nth-child(5) { animation-delay: 0.5s; }
.programme-card:nth-child(6) { animation-delay: 0.6s; }

.programme-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 20px rgba(155, 13, 36, 0.2);
}

.time {
    background-color: #9B0D24;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.time::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.programme-card:hover .time::after {
    left: 100%;
}

/* ========================================
   INFO GRID
======================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    background-color: #F5F6F8;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInScale 0.6s ease-out backwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }

.info-card:hover {
    transform: translateY(-6px) rotate(1deg);
    background-color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(0, 87, 149, 0.15);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.info-card:hover .info-icon {
    animation: bounceStrong 0.6s ease;
}

/* ========================================
   TEAM GRID
======================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInRotate 0.6s ease-out backwards;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }

.team-member:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(155, 13, 36, 0.25);
}

.team-avatar {
    font-size: 4rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.team-member:hover .team-avatar {
    transform: scale(1.2) rotate(360deg);
}

.team-role {
    color: #9B0D24;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ========================================
   PARTNERS GRID
======================================== */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-logo {
    background-color: #F5F6F8;
    border-radius: 8px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    transition: all 0.4s ease;
    animation: zoomIn 0.6s ease-out backwards;
}

.partner-logo:nth-child(1) { animation-delay: 0.1s; }
.partner-logo:nth-child(2) { animation-delay: 0.2s; }
.partner-logo:nth-child(3) { animation-delay: 0.3s; }
.partner-logo:nth-child(4) { animation-delay: 0.4s; }

.partner-logo:hover {
    transform: scale(1.1) rotate(-2deg);
    background: linear-gradient(135deg, #9B0D24 0%, #005795 100%);
}

.partner-logo:hover .partner-placeholder {
    color: #FFFFFF;
}

.partner-placeholder {
    color: #333333;
    font-weight: 600;
    text-align: center;
    transition: color 0.3s ease;
}

/* ========================================
   FORMS
======================================== */

.map-container {
    max-width: 1200px;        /* même largeur que les sections .container */
    margin: 40px auto;        /* centrer + espace au-dessus */
    padding: 0 20px;          /* marges latérales pour les petits écrans */
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}


.map-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.map-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.map-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #9B0D24;
    margin-top: 50px;
    margin-bottom: 10px;
    animation: fadeInScale 0.8s ease-out;
}
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    border-radius: inherit;
}
.map-container.active .map-overlay {
    display: none;
}
.map-container {
    position: relative;
}
.map-container {
    position: relative;
    z-index: 2000; /* supérieur au header qui a z-index: 1000 */
}
.form-container {
    max-width: 700px;
    margin: 40px auto;
    background-color: #F5F6F8;
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #222222;
    margin-bottom: 8px;
}

.required {
    color: #9B0D24;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #FFFFFF;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
    background-color: #FFFFFF;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9B0D24;
    animation: inputPulse 0.5s ease;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

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

footer {
    background-color: #333333;
    color: #FFFFFF;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    color: #FFFFFF;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #9B0D24;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Styles pour les messages d'alerte */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-list {
    margin: 10px 0;
    padding-left: 20px;
    list-style: disc;
}

.error-list li {
    margin: 5px 0;
    color: #721c24;
}
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.social-links a {
    font-size: 1.6rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Couleurs officielles */
.social-links .fa-linkedin {
    color: #0A66C2;
}

.social-links .fa-facebook {
    color: #1877F2;
}

.social-links .fa-twitter {
    color: #1DA1F2;
}

/* Effet hover */
.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}


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

/* Style pour les champs de formulaire requis */
.required {
    color: #e74c3c;
    font-weight: bold;
}

/* Amélioration des styles de formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ========================================
   KEYFRAME ANIMATIONS
======================================== */

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRotate {
    from {
        opacity: 0;
        transform: translateX(-50px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes bounceStrong {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.2);
    }
}

@keyframes inputPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(155, 13, 36, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(155, 13, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(155, 13, 36, 0);
    }
}

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #555;
        padding: 20px;
        gap: 15px;
    }

    nav ul.active {
        display: flex;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
        border-radius: 6px;
    }

    .map-container {
        margin: 20px auto;
        padding: 0 15px;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */

*:focus {
    outline-offset: 2px;
}

/* Corrige le décalage dû au header sticky */
section[id] {
    scroll-margin-top: 120px; /* adapte à la hauteur de ton header */
}