/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-red: #ED1C24;
    --primary-black: #231F20;
    --primary-blue: #009FE3;
    --secondary-gray: #F0F0F0;
    --white: #FFFFFF;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--primary-black);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h1 {
    color: var(--primary-black);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-black);
}

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-red);
}

.btn-cta {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
}

.btn-cta:hover {
    background-color: #b01217;
    color: var(--white);
}

/* Main Content */
main {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--primary-black);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Info Grid - MODIFIÉ : Grille 2x2 pour afficher les cartes côte à côte */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes égales */
    gap: 25px; /* Espacement entre les cartes */
    margin-bottom: 30px;
}

/* Style des cartes individuelles */
.info-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Header de carte avec icône et titre */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.card-header .icon {
    font-size: 2rem;
}

/* Contenu de la carte */
.card-content p {
    margin: 8px 0;
    line-height: 1.6;
}

.card-content p:first-child {
    margin-top: 0;
}

/* Texte secondaire en gris */
.info-secondary {
    color: #666;
    font-size: 0.95rem;
}

/* Sections pleine largeur */
.accessibility-section,
.contact-section {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.accessibility-content,
.contact-content {
    margin-top: 20px;
}

.accessibility-content p,
.contact-content p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.accessibility-content ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.accessibility-content ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.accessibility-content ul li::before {
    content: "•";
    color: var(--primary-blue);
    font-size: 1.5rem;
    position: absolute;
    left: 10px;
    top: 5px;
}

.info-note {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid var(--primary-blue);
    border-radius: 4px;
    margin-top: 20px;
    font-style: italic;
}

/* Contact Info Grid */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 25px;
}

.contact-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-item strong {
    display: block;
    color: var(--primary-black);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.contact-item p {
    margin: 0;
    color: #555;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-red);
}

/* Responsive Design - MODIFIÉ : Passe en 1 colonne sur mobile */
@media (max-width: 768px) {
    /* Sur mobile, les cartes s'empilent verticalement */
    .info-grid {
        grid-template-columns: 1fr; /* 1 seule colonne */
    }

    /* Les infos de contact aussi en 1 colonne sur mobile */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    main {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Cards & Forms (conservé de votre code original) */
.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 15px;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
}

button[type="submit"] {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
}

button[type="submit"]:hover {
    background-color: #b01217;
}

:root {
    --primary-color: #0056b3; /* A professional blue - change to IUT color */
    --secondary-color: #004085;
    --accent-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

/* --- Main Content --- */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}


/* --- Hero Section (Homepage) --- */
/*.hero {
    background-image: linear-gradient(rgba(1000,20,10000));
    
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}
*/

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e0a800;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* --- Cards & Sections --- */
.section {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}


footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    nav ul {
        margin-top: 1rem;
    }
    nav ul li {
        margin: 0 10px;
    }
    .hero h1 {
        font-size: 2rem;
    }
}