/* =========================================================
   VARIABLES GLOBALES
========================================================= */
:root {
    --color-red: #e53935;
    --color-orange: #fb8c00;
    --color-yellow: #fdd835;
    --color-green: #43a047;
    --color-blue: #1e88e5;
    --color-indigo: #5e35b1;
    --color-violet: #8e24aa;

    --color-primary: var(--color-violet);
    --color-secondary: var(--color-red);
    --color-accent: var(--color-blue);
    --color-dark: #1a1a1a;
    --color-gray: #f2f2f2;

    --font-main: 'Segoe UI', sans-serif;
}

/* =========================================================
   BACKGROUND + OVERLAY
========================================================= */
body {
    margin: 0;
    font-family: var(--font-main);
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-dark);
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.55);
    z-index: -1;
}

/* =========================================================
   CONTENEURS CENTRÉS
========================================================= */
.navbar,
.seo-content,
#profils-accueil,
.footer-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.5em;
    background: white;
    border-bottom: 3px solid var(--color-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 0 0 12px 12px;
}

.logo img {
    max-height: 80px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5em;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--color-dark);
    font-weight: 600;
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* =========================================================
   TITRES
========================================================= */
h1 { color: var(--color-red); }
h2 { color: var(--color-orange); }
h3 { color: var(--color-green); }

/* =========================================================
   TEXTE & LIENS
========================================================= */
p, li, a {
    color: var(--color-dark);
}

a:hover {
    color: var(--color-accent);
}

/* =========================================================
   BOUTONS
========================================================= */
.cta,
.bouton-formulaire {
    display: block;
    margin: 1em auto;
    padding: 0.7em 1.4em;
    border-radius: 6px;
    font-weight: 600;
    color: white;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: 0.3s ease;
}

.bouton-formulaire {
    background: linear-gradient(
        135deg,
        var(--color-red),
        var(--color-orange),
        var(--color-yellow),
        var(--color-green),
        var(--color-blue),
        var(--color-indigo),
        var(--color-violet)
    );
}

.bouton-formulaire:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* =========================================================
   SEO CONTENT
========================================================= */
.seo-content {
    background: rgba(255, 255, 255, 0.75);
    padding: 1.8em;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-top: 2em;
}

/* =========================================================
   PROFILS API
========================================================= */
#profils-accueil {
    text-align: center;
    padding: 1em;
    margin-top: 2em;
}

.profils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1em;
    justify-items: center;
}

.profil-card {
    width: 140px;
    text-align: center;
    background: rgba(255,255,255,0.75);
    padding: 0.8em;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    text-decoration: none;
    color: var(--color-dark);
    transition: 0.25s ease;
    border: 2px solid transparent;
}

.profil-card:hover {
    transform: scale(1.08);
    border-color: var(--color-primary);
}

.profil-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.profil-card h3 {
    margin: 0.4em 0 0.2em;
    font-size: 0.95em;
    color: var(--color-indigo);
}

.profil-card p {
    margin: 0;
    font-size: 0.85em;
    color: var(--color-blue);
}

/* =========================================================
   FOOTER GLOBAL
========================================================= */
footer {
    background: #f7f7f7;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    font-size: 15px;
    color: #333;
}

footer h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #222;
    text-align: left;
}

/* Conteneur centré */
.footer-container {
    max-width: 900px;
    margin: 0 auto;
}

/* =========================================================
   LISTES DU FOOTER
========================================================= */
.footer-regions-4cols ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.footer-regions-4cols li {
    margin: 5px 0;
}

.footer-regions-4cols a {
    color: #005bbb;
    text-decoration: none;
}

.footer-regions-4cols a:hover {
    text-decoration: underline;
}

/* =========================================================
   BLOCS RÉGIONAUX (page ville)
========================================================= */
.footer-region-block {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.footer-region-block strong a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-region-block strong a:hover {
    text-decoration: underline;
    color: #005bbb;
}

footer h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #444;
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */
@media (max-width: 600px) {

    footer {
        padding: 30px 15px;
    }

    .departements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    footer h2 {
        font-size: 20px;
    }

    footer h3 {
        font-size: 17px;
    }
}

/* =========================================================
   RESPONSIVE NAVBAR
========================================================= */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 0.8em;
    }
}
.seo-content script {
    display: block;
    margin: 0 auto;
}
.seo-content #form {
    margin-top: 2em;
}


#form {
    background: rgba(255, 255, 255, 0.75);
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 2em auto;
    font-family: var(--font-main);
    color: var(--color-dark);
}

/* Champs */
#form input,
#form select,
#form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Labels */
#form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

/* Bouton */
#form button,
#form input[type="submit"] {
    background: linear-gradient(
        135deg,
        var(--color-red),
        var(--color-orange),
        var(--color-yellow),
        var(--color-green),
        var(--color-blue),
        var(--color-indigo),
        var(--color-violet)
    );
    color: white;
    padding: 0.8em 1.4em;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
}

#form button:hover,
#form input[type="submit"]:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
