/* ================================================
   Fichier : legal.css
   Objectif : Styles spécifiques pour la page Mentions Légales
   ================================================ */

/* Variables et Reset */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1d4ed8;
    --text-color: #333333;
    --background-light: #fafafa;
    --background-section: #ffffff;
    --heading-color: #1d4ed8;
    --link-color: #3b82f6;
    --link-hover: #1e40af;
    --border-color: #e5e7eb;
    --padding-section: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

/* Header & Nav (inchangés) */
header {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}

.logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
}

.logo::after {
    content: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #ffffff;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .menu.active {
        display: flex;
    }
}

nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero (inchangé) */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-content {
    padding: 2rem;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 img.logo {
    width: 80px;
    height: auto;
    margin-right: 20px;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #ff4d4d;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Conteneur général des sections légales */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 4rem;
    background-color: var(--background-light);
}

/* Styles pour chaque section « legal-section » */
.legal-section {
    background-color: var(--background-section);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--padding-section);
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Titres et paragraphes */
.legal-section h3 {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--heading-color);
    padding-bottom: 0.5rem;
}

.legal-section h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-section p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

/* Liens */
.legal-section a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-direction: column;
}

.info-item i {
    font-size: 1.8rem;
    color: #ff4d4d;
}

.info-item p {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: #ff4d4d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

/* Footer (inchangé) */
footer {
    background: #333;
    color: #fff;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ff4d4d;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff4d4d;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        padding-top: calc(50vh + var(--padding-section));
    }

    .legal-section {
        padding: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.8rem;
    }

    .legal-section h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero h2 {
        font-size: 1.4rem;
    }
}
