/* Reset et styles de base */
html, body {
    height: 100%;
}

body {
    position: relative;
    background: transparent;
}

/* Image de fond plein écran (60% d'opacité) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/Gemini.png') center/cover no-repeat fixed;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%); /* Bleu marine */
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header avec menu horizontal */
.header {
    background: linear-gradient(90deg, #001f3f 0%, #003366 100%); /* Bleu marine */
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, #00b3ff 0%, #66e3ff 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(90deg, #0066cc 0%, #004499 100%); /* Bleu clair marine */
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
    display: inline-block;
    line-height: 1;
}

/* Bouton de sélection de langue */
.language-selector {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.lang-btn {
    background: linear-gradient(135deg, #001f3f, #003366);
    color: white;
    border: 2px solid #0066cc;
    padding: 0.8rem 1.2rem; /* aligné avec .nav-link */
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.lang-btn i {
    font-size: 16px;
}

.lang-text {
    font-weight: bold;
    min-width: 25px;
    line-height: 1;
}

/* Contenu principal */
.main-content {
    margin-top: 100px; /* Espace pour le header fixe */
    padding: 2rem;
    background: white;
    min-height: calc(100vh - 100px);
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

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

/* Hero section */
.hero {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    color: white;
    border-radius: 15px;
    margin-bottom: 3rem;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9; /* image plus visible */
    transform: scale(1.15); /* léger zoom */
    animation: heroZoom 28s ease-in-out infinite alternate;
    filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* couche plus légère pour laisser mieux apparaître l'image */
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.45) 0%, rgba(0, 51, 102, 0.6) 50%, rgba(0, 102, 204, 0.55) 100%);
    background-size: 200% 200%;
    animation: gradientShift 18s ease-in-out infinite;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Décorations animées dans le hero */
.hero-decor {
    position: absolute;
    inset: 0;
    z-index: 2; /* au-dessus de l'overlay car inséré après */
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.9), rgba(255,255,255,0.6) 60%, rgba(255,255,255,0) 70%);
    filter: blur(2px);
    border-radius: 50%;
    opacity: 0.6;
    animation: cloudDrift 60s linear infinite;
}

.cloud-1 { width: 140px; height: 70px; top: 20%; left: -10%; animation-duration: 65s; }
.cloud-2 { width: 200px; height: 90px; top: 50%; left: -15%; animation-duration: 75s; opacity: 0.5; }
.cloud-3 { width: 160px; height: 80px; top: 75%; left: -12%; animation-duration: 70s; opacity: 0.55; }

@keyframes cloudDrift {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(60vw) translateY(-5px); }
  100% { transform: translateX(120vw) translateY(0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 100%; }
}

@keyframes heroZoom {
  0% { transform: scale(1.12); }
  100% { transform: scale(1.2); }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f39c12;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Message du directeur */
.director-message {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.director-message h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.message-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    align-items: start;
}

.director-photo {
    margin-bottom: 1.5rem;
    text-align: center;
}

.director-photo img {
    border-radius: 50%;
    border: 4px solid #003366;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.director-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 51, 102, 0.4);
}

.director-info h3 {
    color: #34495e;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.director-info .title {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 2rem;
}

.message-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    text-align: justify;
}

/* Formulaires */
.forms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.form-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.form-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.form-card h3 i {
    margin-right: 0.5rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-warning {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(90deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.btn-danger {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(90deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.urgence-alert {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}

.urgence-alert i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.urgence-alert h4 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

/* Missions */
#missions {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

#missions::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('images/Gemini.png') center/cover no-repeat;
    opacity: 0.4; /* 40% d'opacité */
    z-index: 1;
}

#missions h2,
#missions .missions-grid {
    position: relative;
    z-index: 2;
}
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.mission-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mission-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Contact */
.contact-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.schedule {
    margin-bottom: 3rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.schedule-item i {
    color: #3498db;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.zones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.zone-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.zone-item:hover {
    background: #e9ecef;
}

.zone-item i {
    color: #27ae60;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #1a252f 0%, #2c3e50 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.footer-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .language-selector {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .main-content {
        margin-top: 140px; /* Plus d'espace pour le header empilé */
        padding: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .message-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .forms-container {
        grid-template-columns: 1fr;
    }
    
    .missions-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations supplémentaires */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.form-card:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out;
}

.form-card:nth-child(even) {
    animation: slideInRight 0.6s ease-out;
}

/* Section Pourquoi nous choisir - arrière-plan et lisibilité */
#pourquoi-nous {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

#pourquoi-nous::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45)), url('images/avion.png') center / cover no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

#pourquoi-nous > * {
    position: relative;
    z-index: 1;
}

#pourquoi-nous h2,
#pourquoi-nous h3,
#pourquoi-nous h4,
#pourquoi-nous p {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.why-choose-us {
    max-width: 1100px;
    margin: 0 auto;
}

.main-reason {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    backdrop-filter: blur(2px);
}

.main-reason .reason-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 0.75rem;
}

.main-reason .reason-icon i {
    color: #ffd166;
    font-size: 1.2rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.reason-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.reason-item i {
    color: #4dd0e1;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    #pourquoi-nous {
        padding: 3rem 1rem;
    }
}

/* Section Nos Missions - arrière-plan et lisibilité */
#missions {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

#missions::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)), url('images/airplane-bg.svg') center / cover no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

#missions > * {
    position: relative;
    z-index: 1;
}

#missions h2,
#missions h3,
#missions p {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.mission-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.mission-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 0.75rem;
}

.mission-icon i {
    color: #82e0aa;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    #missions {
        padding: 3rem 1rem;
    }
}
/* Horloge & Calendrier (onglet Contact) */
#contact-time-block {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f7f9fb;
  border-radius: 12px;
}

#live-clock {
  font-size: 2rem;
  font-weight: 700;
  color: #0b5fa7;
}

#live-date {
  margin-top: 0.25rem;
  color: #2c3e50;
  font-weight: 500;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.calendar-month {
  font-weight: 700;
  color: #2c3e50;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-name {
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #7f8c8d;
}

.calendar-day {
  background: #ffffff;
  border: 1px solid #eaeef2;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
}

.calendar-day.empty {
  background: transparent;
  border: none;
}

.calendar-day.today {
  background: #0b5fa7;
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 768px) {
  #live-clock { font-size: 1.6rem; }
  .calendar-day { min-height: 38px; }
}