/* 
 * Agence Pichampardennaise - Landing Page Styles
 * Author: Cline
 * Version: 1.1 - Fix responsive header (logo + phone)
 */

/* ===== VARIABLES ===== */
:root {
    /* Color Palette */
    --color-primary: #193b6b;    /* Bleu de Cobalt - Main color */
    --color-secondary: #5bc5ef;  /* Bleu Céleste - Secondary color */
    --color-tertiary: #9069a9;   /* Pourpre Moyen - Accent color */
    --color-light: #ffffff;
    --color-dark: #333333;
    --color-gray: #f5f5f5;
    --color-gray-dark: #666666;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-round: 50%;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

ul {
    list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

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

.lead {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

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

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

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

.section-tinted {
    background-color: rgba(91, 197, 239, 0.1); /* Light tint of Bleu Céleste */
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.separator {
    width: 80px;
    height: 4px;
    background-color: var(--color-tertiary);
    margin: var(--spacing-sm) auto var(--spacing-md);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;

    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-primary);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--color-tertiary);
    color: var(--color-light);
}


.btn-primary:hover {
    background-color: #7d5a96; /* Darker shade of Pourpre Moyen */
    color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 0.3rem 0.6rem;
}

.btn-secondary a {
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
}

.btn-secondary:hover {

    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    padding: 0.75rem 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
    max-width: 1400px;
    padding: 0 1.5rem;
}

/* LOGO */
.logo {
    flex-shrink: 0;
}

.logo img {
    max-height: 55px;
    width: auto;
    display: block;
    transition: max-height var(--transition-fast);
}

/* NAV */
nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.6rem;
}

/* Masqué sur desktop, visible uniquement dans le drawer mobile */
.drawer-phone {
    display: none;
}

.nav-menu li {
    margin: 0;
    white-space: nowrap;
}

.nav-menu a {
    color: var(--color-light);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-tertiary);
    transition: width var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* HAMBURGER */
.hamburger {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255,255,255,0.1);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    transition: background-color var(--transition-fast);
    flex-shrink: 0;
}

.hamburger:hover {
    background-color: rgba(255,255,255,0.2);
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-light);
    border-radius: 2px;
    transition: all var(--transition-fast);
    transform-origin: center;
}

/* HEADER RIGHT (CTA + téléphone) */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-phone {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.header-phone a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-light);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.header-phone i {
    font-size: 1rem;
    color: var(--color-light);
}

.cta-button .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
    white-space: nowrap;
}

/* Breakpoint intermédiaire : réduire encore un peu */
@media (max-width: 1200px) {
    .nav-menu { gap: 1.2rem; }
    .nav-menu a { font-size: 0.85rem; }
    .cta-button .btn { font-size: 0.8rem; padding: 0.55rem 0.9rem; }
    .header-phone a { font-size: 0.85rem; }
}

@media (max-width: 992px) {
    .header-phone span { display: none; }
    .header-phone i { font-size: 1.1rem; }
}

/* Overlay sombre derrière le drawer */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== HERO SECTION ===== */
#hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(25, 59, 107, 0.8), rgba(25, 59, 107, 0.8)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-light);
    padding-top: 80px; /* Account for fixed header */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-light);
}

#hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    color: var(--color-light);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .about-image {
        min-width: unset;
        width: 50%;       /* Moitié de la largeur disponible */
        max-width: 200px; /* Plafond = moitié de 400px original */
        margin: 0 auto;   /* Centrage */
    }

    .about-image img {
        width: 100%;
        height: auto;
    }
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.rounded-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.strengths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.strength-item {
    text-align: center;
    padding: var(--spacing-sm);
    transition: transform var(--transition-fast);
}

.strength-item:hover {
    transform: translateY(-5px);
}

.strength-item i {
    font-size: 2rem;
    color: var(--color-tertiary);
    margin-bottom: var(--spacing-sm);
}

.strength-item h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.values {
    margin-top: var(--spacing-md);
}

.values ul {
    list-style: disc;
    padding-left: var(--spacing-md);
}

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

/* ===== PARTNERS SECTION ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.partner-card {
    background-color: var(--color-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.partner-img {
    max-height: 80px;
    margin: 0 auto;
}

.partner-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.partners-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ===== SOLUTIONS SECTION ===== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.solution-card {
    background-color: var(--color-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border-top: 4px solid transparent;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--color-tertiary);
}

.solution-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

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

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.testimonial-slide {
    display: none;
    animation: fadeIn var(--transition-medium);
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    background-color: var(--color-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

.testimonial-image {
    flex: 1;
    min-width: 300px;
}

.testimonial-image img {
    border-radius: var(--border-radius-md);
}

.testimonial-text {
    flex: 2;
    min-width: 300px;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: var(--spacing-md);
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-tertiary);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-gray-dark);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-md);
}

.testimonial-prev,
.testimonial-next {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: color var(--transition-fast);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    color: var(--color-tertiary);
}

.testimonial-dots {
    display: flex;
    margin: 0 var(--spacing-sm);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--border-radius-round);
    background-color: var(--color-gray-dark);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.dot.active,
.dot:hover {
    background-color: var(--color-tertiary);
}

/* ===== MAIN CTA SECTION ===== */
#main-cta {
    background-color: var(--color-primary);
    color: var(--color-light);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.cta-content h2 {
    color: var(--color-light);
    margin-bottom: var(--spacing-md);
    font-size: 2.2rem;
}

/* ===== NEWS SECTION ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.news-card {
    background-color: var(--color-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: var(--spacing-md);
}

.news-date {
    display: block;
    color: var(--color-gray-dark);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.news-card:hover h3 {
    color: var(--color-tertiary);
}

.news-link {
    display: inline-block;
    margin-top: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-tertiary);
}

.news-link i {
    transition: transform var(--transition-fast);
}

.news-link:hover i {
    transform: translateX(5px);
}

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

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.contact-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: rgba(91, 197, 239, 0.1);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.contact-item i {
    font-size: 2rem;
    color: var(--color-tertiary);
    margin-bottom: var(--spacing-sm);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--color-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-secondary);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-tertiary);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-submit {
    text-align: center;
    margin-top: var(--spacing-md);
}

.full-width {
    grid-column: 1 / -1;
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo,
.footer-links,
.footer-contact,
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-logo p {
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--color-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
    color: var(--color-light);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--color-secondary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--color-light);
    font-size: 1.5rem;
    transition: color var(--transition-fast);
}

.social-icons a:hover {
    color: var(--color-tertiary);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer-legal a {
    color: var(--color-light);
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--color-light);
    border-radius: var(--border-radius-md);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalOpen var(--transition-medium);
}

@keyframes modalOpen {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-gray-dark);
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--color-dark);
}

.modal-body {
    padding: var(--spacing-lg);
    text-align: center;
}

.modal-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: var(--spacing-md);
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-tertiary);
    color: var(--color-light);
    border-radius: var(--border-radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--color-primary);
    transform: translateY(-5px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    #hero h1 { font-size: 2.5rem; }
    #hero h2 { font-size: 1.3rem; }
    .cta-content h2 { font-size: 1.8rem; }
    .header-phone span { font-size: 0.9rem; }
    .nav-menu li { margin-left: 0.8rem; }
    .btn { padding: 0.7rem 1.2rem; }
}

@media (max-width: 768px) {

    /* --- LOGO --- */
    .logo img { max-height: 38px; }

    /* --- HAMBURGER visible --- */
    .hamburger { display: flex; }

    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* --- DRAWER latéral depuis la droite --- */
    .nav-menu {
        display: flex; /* garde flex pour la direction column */
        position: fixed;
        top: 0;
        right: -280px;
        left: auto;
        width: 260px;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(160deg, #1a3f75 0%, #193b6b 60%, #152f58 100%);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 0 2rem;
        z-index: 999;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 24px rgba(0,0,0,0.25);
        overflow-y: auto;
        text-align: left;
    }

    /* Afficher le lien téléphone dans le drawer */
    .drawer-phone {
        display: flex;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .nav-menu li:first-child {
        border-top: 1px solid rgba(255,255,255,0.07);
    }

    /* Lien téléphone en bas du drawer */
    .nav-menu li.drawer-phone {
        margin-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.15);
        border-bottom: none;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 24px;
        font-size: 0.95rem;
        font-weight: 500;
        color: rgba(255,255,255,0.88);
        transition: background-color 0.3s ease, padding-left 0.3s ease;
        white-space: nowrap;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: rgba(255,255,255,0.08);
        color: #fff;
        padding-left: 30px;
    }

    .nav-menu a::after { display: none; }

    /* Lien tel dans le drawer */
    .drawer-phone a {
        color: var(--color-secondary) !important;
        font-weight: 600;
        padding-left: 24px !important;
        background: none !important;
    }

    .drawer-phone a:hover {
        color: #fff !important;
        padding-left: 30px !important;
    }

    /* --- HEADER RIGHT --- */
    .cta-button { display: none; }
    .header-right { white-space: normal; gap: 0; }
    .header-phone { margin-left: 0; }
    .header-phone span { display: none; }
    .header-phone i { font-size: 1.1rem; margin-right: 0; }

    /* --- MISE EN PAGE --- */
    #hero { height: auto; padding: 120px 0 3rem; min-height: 420px; }
    .about-content, .testimonial-content { flex-direction: column; }
    .footer-content { gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-legal { justify-content: center; margin-bottom: 1rem; }
}

@media (max-width: 576px) {
    .section { padding: 3rem 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    #hero h1 { font-size: 2rem; }
    #hero h2 { font-size: 1.1rem; }
    .btn-large { padding: 0.8rem 1.5rem; font-size: 1rem; }
    .strengths { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
    .footer-legal { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
    .logo img { max-height: 30px; }
    /* On garde l'icône téléphone visible sur petit mobile, juste le texte masqué */
    .header-phone { display: flex; }
    .header-phone span { display: none; }
    .header-phone i { font-size: 1.2rem; color: var(--color-light); }
    #hero { min-height: 380px; }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content h2 { font-size: 1rem; }
}

.linkedin-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 5px;
}

/* ===== HERO SLIDER STYLES ===== */
#hero {
    position: relative;
    height: 100vh;
    height: 100dvh; /* Unité dynamique : exclut la barre d'adresse mobile */
    min-height: 500px;
    overflow: hidden;
    padding-top: 0;
}

.hero-slider {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    /* Assure que l'image reste visible même si le parent n'a pas de hauteur calculée */
    min-height: 100%;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 59, 107, 0.7);
    z-index: 3;
}

.hero-slide .container {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-content {
    text-align: center;
    color: var(--color-light);
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px; /* Pour compenser la hauteur du header fixe */
}

.hero-content h1 {
    color: var(--color-light);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero-content h2 {
    color: var(--color-light);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Styles pour la bannière de cookies */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px;
    box-sizing: border-box;
    z-index: 999;
    /* La bannière s'affichera par défaut, puis sera cachée si nécessaire par JS */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.cookie-text {
    flex: 1;
    margin-right: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.accept-all {
    background-color: #4CAF50;
    color: white;
}

.reject-all {
    background-color: #f44336;
    color: white;
}

.customize {
    background-color: #2196F3;
    color: white;
}

/* Styles pour le panneau de personnalisation */
#cookie-customization {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    display: none;
}

.cookie-option {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.cookie-option input {
    margin-right: 10px;
}

.cookie-option label {
    flex: 1;
}

.cookie-option.necessary input {
    pointer-events: none;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

/* Styles pour le bouton des paramètres de cookies */
#cookie-settings-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 997;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}