/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1277beab; /* Bleu demandé (avec alpha) */
    --secondary-color: #1277be;  /* Variante opaque pour contrastes/hover */
    --accent-color: #2a8ee0;     /* Accent cohérent un peu plus clair */
    --tertiary-color: #0f5f96;   /* Ton plus sombre pour les dégradés */
    --light-blue: #e0f2fe;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --background-accent: #f0f9ff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

h2 {
    text-transform: uppercase;
}

/* Sélection de texte (cohérente avec le nouveau bleu) */
::selection {
    background: var(--primary-color);
    color: #fff;
}
::-moz-selection {
    background: var(--primary-color);
    color: #fff;
}

/* Conteneur principal SPA */
.core {
    min-height: 60vh;
}

.container {
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--tertiary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}


/* Contact */
.contact {
    background: var(--background-alt);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

/* Formulaire */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Styles pour les pages individuelles */
.page-hero {
    background: var(--secondary-color);
    color: white;
    padding: 6rem 0 4rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-transform: uppercase;
}

.page-subtitle {
font-size: 1.1rem;
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto 0.5rem;
  font-weight: 400;
  text-align: center !important;
}



/* Responsive pour les nouvelles pages */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .history-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }
    
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Améliorations de l'accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    position: relative;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}





