/* Variables CSS pour les couleurs PSG */
:root {
    --psg-blue: #004170;
    --psg-red: #DA291C;
    --psg-white: #FFFFFF;
    --psg-dark: #1a1a1a;
    --psg-light: #f8f9fa;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--psg-dark);
    background-color: var(--psg-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: var(--psg-blue);
    color: var(--psg-white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--psg-white);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: var(--psg-red);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,65,112,0.8), rgba(0,65,112,0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--psg-white);
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--psg-red);
    color: var(--psg-white);
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #b82217;
}

.btn-secondary {
    background: var(--psg-blue);
}

.btn-secondary:hover {
    background: #003358;
}

/* Sections */
section {
    padding: 80px 0;
}

.presentation .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--psg-white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.card h3 {
    color: var(--psg-blue);
    margin-bottom: 15px;
}

/* Formulaires */
.form-section {
    background: var(--psg-white);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.form-section .container {
    width: 100%;
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Alertes */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Page À propos */
.about-section {
    background: var(--psg-white);
    min-height: 80vh;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h2 {
    color: var(--psg-blue);
    margin: 30px 0 15px;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    border: 2px solid var(--psg-blue);
}

.info-box {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
    border-left: 4px solid var(--psg-blue);
}

/* Footer */
footer {
    background: var(--psg-dark);
    color: var(--psg-white);
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .presentation .grid {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 40px 0;
    }
}

main {
    min-height: calc(100vh - 200px);
}