/* =====================================================
   S.D.I.S. MARKETING - STYLE CSS v1.8.1
   Palette et typographie conformes aux spécifications
   ===================================================== */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =====================================================
   CSS VARIABLES - PALETTE VALIDÉE
   ===================================================== */
:root {
    /* Couleurs principales */
    --color-primary: #323e95;
    --color-secondary: #FFD700;
    --color-accent-light: #e6f0ff;
    
    /* Couleurs texte */
    --color-text-primary: #333333;
    --color-text-secondary: #555555;
    
    /* Couleurs fond */
    --color-bg-main: #f9f9f9;
    --color-bg-cards: #ffffff;
    
    /* Typographie */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height: 1.6;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Bordures et ombres */
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
}

/* =====================================================
   RESET ET BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height);
    color: var(--color-text-secondary);
    background-color: var(--color-bg-main);
}

body.menu-open {
    overflow: hidden;
}

/* =====================================================
   TYPOGRAPHIE
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: 2rem;
    font-weight: var(--font-weight-semibold);
}

h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* =====================================================
   ACCESSIBILITÉ - SKIP LINK
   ===================================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-alt {
    background-color: var(--color-accent-light);
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: var(--spacing-lg);
}

/* =====================================================
   HEADER
   ===================================================== */
header {
    background-color: var(--color-bg-cards);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-md);
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 60px;
    width: auto;
}

/* Navigation Desktop */
header nav {
    display: flex;
    gap: var(--spacing-md);
}

header nav a {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

header nav a:hover,
header nav a.active {
    color: var(--color-primary);
    background-color: var(--color-accent-light);
}

/* Sélecteur de langue */
.language-switcher {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.language-switcher a {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.language-switcher a:hover,
.language-switcher img.active {
    opacity: 1;
}

.language-switcher img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

/* =====================================================
   BURGER MENU
   ===================================================== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Navigation Mobile */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-cards);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.nav-mobile.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile a {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    padding: var(--spacing-sm);
}

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

.language-switcher-mobile {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.language-switcher-mobile img {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 2px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.language-switcher-mobile img:hover,
.language-switcher-mobile img.active {
    opacity: 1;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(50, 62, 149, 0.9) 0%, rgba(50, 62, 149, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-xl);
}

.hero-content h1 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
}

/* =====================================================
   BOUTONS
   ===================================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-primary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* =====================================================
   CARTES SERVICES
   ===================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card {
    background-color: var(--color-bg-cards);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.service-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-4px);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    margin-bottom: 0;
}

/* =====================================================
   SECTION À PROPOS
   ===================================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--spacing-md);
}

.about-text p {
    margin-bottom: var(--spacing-sm);
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* =====================================================
   MÉTHODOLOGIE - ÉTAPES
   ===================================================== */
.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.step-card {
    background-color: var(--color-bg-cards);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
}

/* =====================================================
   PAGE CONTACT
   ===================================================== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info {
    background-color: var(--color-bg-cards);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info h3 {
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    margin-bottom: var(--spacing-sm);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.contact-cta {
    background-color: var(--color-accent-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    text-align: center;
}

.contact-cta h2 {
    margin-bottom: var(--spacing-md);
}

.contact-cta p {
    margin-bottom: var(--spacing-lg);
}

/* =====================================================
   ICÔNES RÉSEAUX SOCIAUX
   ===================================================== */
.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.social-icon:hover {
    color: var(--color-secondary);
}

/* État désactivé - pas de lien */
.social-icon.disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-section a:hover {
    color: var(--color-secondary);
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

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

footer .social-icons {
    justify-content: flex-start;
}

footer .social-icon {
    color: rgba(255, 255, 255, 0.85);
}

footer .social-icon:hover {
    color: var(--color-secondary);
}

footer .social-icon.disabled {
    color: rgba(255, 255, 255, 0.45);
}

/* =====================================================
   BANDEAU COOKIES
   ===================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg-cards);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    margin-bottom: var(--spacing-sm);
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
}

/* =====================================================
   PAGES LÉGALES
   ===================================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-accent-light);
}

.legal-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.legal-content p,
.legal-content ul {
    margin-bottom: var(--spacing-sm);
}

/* =====================================================
   RESPONSIVE - TABLETTE
   ===================================================== */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   RESPONSIVE - MOBILE
   ===================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    /* Header Mobile */
    header nav {
        display: none;
    }
    
    .language-switcher {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-mobile {
        display: flex;
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 400px;
    }
    
    .hero-content {
        padding: var(--spacing-lg);
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer .social-icons {
        justify-content: center;
    }
    
    /* Cookie Banner Mobile */
    .cookie-buttons {
        justify-content: center;
    }
}

/* =====================================================
   FOCUS VISIBLE (ACCESSIBILITÉ)
   ===================================================== */
:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    header,
    footer,
    .cookie-banner,
    .burger-menu,
    .nav-mobile {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
