/* ===================== */
/* VARIABLES + RESET */
:root {
    --primary: #0b3d91;
    --secondary: #ff8c00;
    --accent: #ffa733;
    --bg-light: #f8f9fa;
    --text: #333;
    --white: #fff;
    --radius: 12px;
    --shadow-light: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 20px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.6;
}

/* ===================== */
/* HEADER */
header {
    background: var(--primary);
    color:white;
    padding:20px 10px;
    text-align:center;
    position: sticky;
    top:0;
    z-index:999;
    box-shadow: var(--shadow-light);
}

header nav {
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

header nav a {
    color:white;
    text-decoration:none;
    padding:10px 20px;
    border-radius: var(--radius);
    font-weight:600;
    transition: var(--transition);
}

header nav a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ===================== */
/* HERO */
.hero {
    position: relative;
    text-align:center;
    margin-bottom:50px;
}
.hero-image {
    width:100%;
    max-height:450px;
    object-fit:cover;
    border-radius: var(--radius);
    transition: transform 0.5s ease;
}
.hero-image:hover { transform: scale(1.02); }
.hero-text {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    color:white;
    background:rgba(0,0,0,0.5);
    padding:25px 35px;
    border-radius:var(--radius);
    text-shadow:0 2px 6px rgba(0,0,0,0.4);
}
.hero-text h2 { font-size:32px; font-weight:900; margin-bottom:15px; }
.hero-text p { font-size:18px; margin-bottom:20px; }
.hero-text button {
    background: var(--secondary);
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:25px;
    font-weight:700;
    cursor:pointer;
    transition:var(--transition);
}
.hero-text button:hover { transform: translateY(-3px); box-shadow: var(--shadow-medium); }

/* ===================== */
/* CARDS */
.cards-container {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    max-width:1200px;
    margin:auto;
    gap:25px;
    padding:0 10px;
}
.card {
    background:white;
    padding:20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    text-align:center;
    transition: var(--transition);
}
.card img {
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius: var(--radius);
    margin-bottom:15px;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); }
.card h3 { font-size:20px; margin-bottom:12px; color:var(--primary); }

/* ===================== */
/* FORMULAIRES */
form {
    max-width:450px;
    margin:30px auto;
    background:white;
    padding:30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-medium);
    transition:var(--transition);
}
form label { display:block; margin-bottom:8px; font-weight:600; color:var(--text); }
form input, form textarea, form select {
    width:100%;
    padding:12px;
    margin-bottom:18px;
    border-radius:var(--radius);
    border:1px solid #ccc;
    transition:border 0.3s ease, box-shadow 0.3s ease;
}
form input:focus, form textarea:focus, form select:focus {
    border-color:var(--primary);
    box-shadow:0 0 8px rgba(11,61,145,0.2);
    outline:none;
}
form button {
    display:block;
    margin:0 auto;
    background:var(--primary);
    color:white;
    padding:12px 30px;
    border:none;
    border-radius:25px;
    font-weight:700;
    cursor:pointer;
    transition:var(--transition);
}
form button:hover { background: var(--secondary); transform:translateY(-2px); box-shadow:var(--shadow-medium); }

/* ===================== */
/* MESSAGES */
.success-msg, .error-msg {
    text-align:center;
    margin-bottom:15px;
    font-weight:600;
    padding:10px 15px;
    border-radius:var(--radius);
}
.success-msg { color:green; background-color:rgba(0,128,0,0.1); }
.error-msg { color:red; background-color:rgba(255,0,0,0.1); }

/* ===================== */
/* PROFILE CARD */
.profile-card {
    text-align: center;
    padding: 25px;
    transition: var(--transition);
}
.avatar-img, .avatar-default {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--primary);
    color: white;
}
.profile-card h4 {
    font-size: 18px;
    margin-top: 5px;
}
.profile-card .promo {
    color: var(--primary);
    font-weight: 600;
    margin: 5px 0;
}
.profile-card .desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px; /* espace sous description */
}
.profile-card .btn {
    margin-top: 10px; /* espace avant bouton modifier */
}
.profile-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }

/* ===================== */
/* MODAL */
.modal {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow:auto;
}
.modal:target { display: flex; }
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
}
.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}
.close-modal:hover { color: var(--secondary); }

/* ===================== */
/* FOOTER */
footer {
    background:var(--primary);
    color:white;
    text-align:center;
    padding:25px 10px;
}
footer .social-icons {
    margin-top:12px;
    display:flex;
    justify-content:center;
    gap:18px;
}
footer .social-icons a svg {
    width:32px;
    height:32px;
    fill:white;
    transition: transform 0.3s ease;
}
footer .social-icons a svg:hover { transform: scale(1.2); }

/* ===================== */
/* RESPONSIVE */
@media(max-width:768px){
    .cards-container{grid-template-columns:1fr; gap:20px;}
    .hero-text{padding:15px 20px;}
    .hero-image{max-height:300px;}
    form{width:90%; padding:20px;}
    .card img{height:140px;}
}
@media(max-width:480px){
    .hero-text h2{font-size:24px;}
    .hero-text p{font-size:16px;}
    form button{width:80%;}
}
/* ===================== */
/* TITRES / SECTION */
.section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin: 40px 0 25px 0; /* marge top 40px, bottom 25px */
}
/* ===================== */
/* BOUTONS (dont Modifier) */
.btn, .btn-jobs {
    display: inline-block;
    background: var(--secondary);
    color: white;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px; /* espace avec le contenu au-dessus */
    text-align: center;
}

.btn:hover, .btn-jobs:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}
/* TITRES */
.section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin: 40px 0 25px 0;
}

/* LIENS INSCRIPTION / LOGIN */
.signup-link,
.login-link {
    text-align: center;
    margin-top: 15px;
    font-size: 15px;
    color: #555;
}

.signup-link a,
.login-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.signup-link a:hover,
.login-link a:hover {
    color: var(--secondary);
    text-decoration: underline;
}