/* ===== SKAL — mise en page : en-tête, menu, bandeau, corps de page, pied de page ===== */

/* ===== Header & Navigation ===== */
header {
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}
.header-brand {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.6rem;
}

.header-brand a {
    display: block;
    line-height: 0;
}

.header-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bbbbbb;
    padding-left: 0.4rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.2;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

nav a:hover {
    color: var(--color-primary);
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--color-primary);
}

/* Lien direct vers une section (/equipements#regies) : le titre n'est pas caché sous l'en-tête fixe. */
section[id] {
    scroll-margin-top: 130px;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition);
}

/* Bouton du menu mobile (élément <button>) */
button.menu-toggle {
    background: none;
    border: 0;
    padding: 0;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
    color: var(--color-white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(128, 0, 0, 0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-family: var(--font-title);
}

.hero h1 .first-letter {
    color: var(--color-primary);
    font-size: 4rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* ===== Corps de page ===== */
.page-corps {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 60vh;
}

/* ===== Sections ===== */
section {
    margin-bottom: 2.5rem;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
    color: var(--color-white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.3rem;
}

.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* Contact : le libellé et le lien restent sur la même ligne */
.footer-section p a {
    display: inline;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Icônes des réseaux sociaux */
.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-section .footer-socials a,
.footer-section .footer-socials a:hover {
    display: block;
    margin-bottom: 0;
    padding-left: 0;
}

.footer-socials img {
    display: block;
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.footer-socials a:hover img {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--color-gray);
}

.footer-bottom a {
    color: inherit;
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

/* Le logo garde sa taille ; s'il y a beaucoup de pages, le menu passe sur deux lignes. */
.header-brand {
    flex-shrink: 0;
}

nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.75rem;
}

/* ===== Responsive ===== */

/* Menu « burger » sur téléphone. */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #131313;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h1 .first-letter {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }

    .logo {
        height: 45px;
    }

    .hero {
        padding: 4rem 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .page-corps {
        padding: 2.5rem 2rem;
    }

    .header-tagline {
        font-size: 0.65rem;
        letter-spacing: 1px;
        padding-left: 0.4rem;
    }
}

/* ===== Bandeau d'information sur le cookie de mesure d'audience ===== */
.bandeau-cookie {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1rem;
    z-index: 2000;
    width: min(680px, calc(100% - 1.5rem));
    max-height: calc(100vh - 2rem);
    margin: 0 auto;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    background: var(--color-white);
    border-top: 4px solid var(--color-primary);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    font-size: 0.95rem;
    line-height: 1.55;
}

.bandeau-cookie p {
    margin-bottom: 0.6rem;
}

.bandeau-cookie .bandeau-cookie-titre {
    font-size: 1.2rem;
    font-weight: 600;
}

.bandeau-cookie-garanties {
    list-style: none;
    margin-bottom: 0.6rem;
}

.bandeau-cookie-garanties li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.2rem;
}

.bandeau-cookie-garanties li::before {
    content: "✓";
    position: absolute;
    left: 0.2rem;
    color: var(--color-primary);
    font-weight: 700;
}

.bandeau-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1rem;
}

.bandeau-cookie-accepter {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 5px;
    background: var(--color-primary);
    color: var(--color-white);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.bandeau-cookie-accepter:hover {
    background: #660000;
}

/* Plus discret que « D'accord », mais lisible et accessible d'un seul clic. */
.bandeau-cookie-refuser {
    padding: 0.55rem 1rem;
    border: 1px solid #c8c8c8;
    border-radius: 5px;
    background: none;
    color: var(--color-gray);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.bandeau-cookie-refuser:hover {
    border-color: #999999;
    color: var(--color-black);
}

.bandeau-cookie-actions a {
    color: var(--color-gray);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .bandeau-cookie {
        bottom: 0.75rem;
        padding: 1.1rem 1.2rem;
        font-size: 0.9rem;
    }

    .bandeau-cookie-accepter {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .bandeau-cookie {
        animation: bandeau-cookie-apparition 0.4s ease-out;
    }
}

@keyframes bandeau-cookie-apparition {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
}
