/* Nouvelles polices personnalisées adaptées à vos dossiers */
@font-face {
    font-family: 'TT Drugs';
    src: url('tt_drugs/TTDrugs-Regular.woff2') format('woff2'),
         url('tt_drugs/TTDrugs-Regular.woff') format('woff'),
         url('tt_drugs/TTDrugs-Regular.otf') format('opentype'),
         url('tt_drugs/TTDrugs-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cocomat Pro';
    src: url('fonts/CocomateProVF.woff2') format('woff2'),
         url('fonts/CocomateProVF.woff') format('woff'),
         url('fonts/CocomateProVF.otf') format('opentype'),
         url('fonts/CocomateProVF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nixie';
    src: url('nixie_one/NixieOne-Regular.woff2') format('woff2'),
         url('nixie_one/NixieOne-Regular.woff') format('woff'),
         url('nixie_one/NixieOne-Regular.otf') format('opentype'),
         url('nixie_one/NixieOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Si vous avez d'autres variantes de poids */
@font-face {
    font-family: 'TT Drugs';
    src: url('tt_drugs/TTDrugs-Bold.woff2') format('woff2'),
         url('tt_drugs/TTDrugs-Bold.woff') format('woff'),
         url('tt_drugs/TTDrugs-Bold.otf') format('opentype'),
         url('tt_drugs/TTDrugs-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #3B4726;
    --secondary: #B8A87D;
    --accent: #8B956D;
    --text-dark: #2C3E20;
    --text-light: #FFFFFF;
    --text-muted: #6B7280;
    --surface: #FFFFFF;
    --background: #F5EDE0;
    --border: #E5E7EB;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --container: 1200px;
    
    /* Variables de polices avec fallbacks */
    --font-title: 'TT Drugs', 'Times New Roman', serif;
    --font-subtitle: 'Cocomat Pro', 'Arial', sans-serif;
    --font-body: 'Nixie', 'Georgia', serif;
}

/* Application des polices */

/* Tous les titres principaux - TT Drugs */
h1, .section-title, .hero-title, .legal-header h1, .contact-hero h1, .services-hero h1 {
    font-family: var(--font-title) !important;
    font-weight: normal;
}

/* Tous les sous-titres - Cocomat Pro */
h2, h3, .section-subtitle, .benefit-content h3, .service-content h2, .legal-card h2, .contact-info h2, .contact-form h2, .cta-card h2 {
    font-family: var(--font-subtitle) !important;
    font-weight: normal;
}

/* Tout le texte de base - Nixie */
body, p, div, span, a, input, textarea, select, li, label, .legal-text, .service-intro, .benefit-content p, .testimonial-content {
    font-family: var(--font-body) !important;
    font-weight: normal;
}

/* Navigation - Cocomat Pro */
.brand-text, .dropdown-list a, .footer-links a {
    font-family: var(--font-subtitle) !important;
}

/* Boutons - Cocomat Pro */
.btn, .btn-primary, .btn-outline, .btn-light {
    font-family: var(--font-subtitle) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Formulaires */
.form-group label, .contact-item strong, .testimonial-author {
    font-family: var(--font-subtitle) !important;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    font-family: var(--font-body) !important;
}

/* Éléments spéciaux */
.service-number {
    font-family: var(--font-subtitle) !important;
    font-weight: bold;
}

/* Fallback pour les navigateurs qui ne supportent pas les polices */
.font-fallback h1, .font-fallback .section-title {
    font-family: 'Times New Roman', serif !important;
}

.font-fallback h2, .font-fallback h3 {
    font-family: 'Arial', sans-serif !important;
}

.font-fallback body, .font-fallback p {
    font-family: 'Georgia', serif !important;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animations d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Classes d'animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-in-up {
    opacity: 0;
    animation: slideInUp 0.7s ease forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.7s ease forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.7s ease forwards;
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.6s ease forwards;
}

/* Délais pour les animations en cascade */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

html {
    background: #F5EDE0 !important;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background: #F5EDE0 !important;
}

/* Prevent horizontal scroll on mobile/tablet */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

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

/* Layout */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}
/* Tighter container gutters on tablet/phone */
@media (max-width: 1024px) {
    .container { padding: 0 1.25rem; }
}
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 0.75rem; }
}

.section {
    padding: 5rem 0;
}

/* Clip horizontal overflow from large shadows or positioned elements on tablets */
.section,
.services-showcase,
.contact-main,
.testimonials-section,
.cta-section,
.legal-content {
    overflow-x: clip;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
}

/* Header transparent intégré dans l'image */
.site-header {
    position: absolute;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 2rem 0;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 2rem;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
    position: relative;
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brand img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 540px) {
    .brand img {
        width: 80px;
        height: 80px;
    }
}

/* Hamburger menu button */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: none;
    cursor: pointer;
    padding: 0.55rem;
    margin-left: 0.8rem;
    z-index: 1001;
    position: relative;
    border-radius: 999px;
}

.hamburger-menu span {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hamburger-menu:hover span {
    background-color: var(--secondary);
}

.hamburger-menu:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 4px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(12px, 12px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.brand:hover img,
.brand.active img {
    transform: scale(1.05);
    border-color: var(--secondary);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.brand-text {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    display: none !important;
}

/* Menu déroulant sous le logo */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.8rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s ease;
    min-width: 200px;
    border: none;
    overflow: hidden;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0.8rem 0;
}

.dropdown-list li {
    margin: 0;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.dropdown-menu.active .dropdown-list li {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu.active .dropdown-list li:nth-child(1) { 
    transition-delay: 0.05s; 
}
.dropdown-menu.active .dropdown-list li:nth-child(2) { 
    transition-delay: 0.1s; 
}
.dropdown-menu.active .dropdown-list li:nth-child(3) { 
    transition-delay: 0.15s; 
}

.dropdown-list a {
    display: block;
    padding: 0.85rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.dropdown-list a:hover {
    background: var(--background);
    border-left-color: var(--primary);
    color: var(--primary);
    padding-left: 1.8rem;
}

.dropdown-list a.active {
    background: rgba(184, 168, 125, 0.1);
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
}

/* Suppression de l'ancienne navigation */
.main-nav,
.nav-list,
.mobile-menu-toggle,
.mobile-nav {
    display: none !important;
}

/* Responsive */
/* (reverted) keep default hero min-height */
@media (max-width: 767px) {
    .header-inner {
        padding: 0 1rem;
    }
    .services-hero {
        padding: 6rem 0 6rem;
        min-height: 380px;
    }
    .hero-logo-bg {
        width: 320px;
        height: 320px;
    }
    
    .brand img {
        width: 90px;
        height: 90px;
        border-width: 3px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    /* Add clearance for hero sections on mobile */
    .hero .hero-inner {
        padding-top: clamp(100px, 18vh, 140px);
    }
    
    .services-hero {
        padding-top: 7.5rem;
    }
    
    .contact-hero {
        padding-top: 7.5rem;
    }
    
    .legal-header {
        padding-top: 7.5rem;
    }
    
    .dropdown-menu {
        min-width: auto;
        left: 0;
        right: 0;
        margin: 0.5rem auto 0;
        width: calc(100% - 2rem);
    }
    
    .dropdown-list a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Hero avec image de fond */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
@media (max-width: 480px) {
    /* Extra clearance on very small screens */
    .hero .hero-inner {
        padding-top: clamp(110px, 20vh, 150px);
    }
    
    .services-hero {
        padding-top: 6.5rem;
    }
    
    .contact-hero {
        padding-top: 6.5rem;
    }
    
    .legal-header {
        padding-top: 6.5rem;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/index.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(1px) brightness(0.7);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('images/logo_transp.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

/* Reduce watermark on tablet */
@media (max-width: 768px) {
    .hero::after {
        width: 320px;
        height: 320px;
    }
}

/* Reduce watermark further on mobile */
@media (max-width: 480px) {
    .hero::after {
        width: 240px;
        height: 240px;
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-title) !important;
    font-size: 4rem !important; /* Augmenté de 3rem à 4rem */
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1) !important;
    margin-bottom: 2rem !important;
    line-height: 1.1 !important;
    letter-spacing: 2px !important; /* Ajoute de l'espace entre les lettres */
    word-spacing: 8px !important; /* Ajoute de l'espace entre les mots */
    text-align: center !important;
    padding: 0 1rem !important;
    max-width: 100% !important;
    font-weight: normal !important;
}

/* Desktop - garder sur une ligne avec espacement */
@media (min-width: 769px) {
    .hero-title {
        font-size: 4rem !important; /* Augmenté de 3.2rem à 4rem */
        letter-spacing: 3px !important;
        word-spacing: 12px !important;
    }
    
    .mobile-break {
        display: none !important;
    }
}

/* Desktop - titre plus grand */
.hero-title {
    font-size: 4rem !important; /* Augmenté de 3rem à 4rem */
    line-height: 1.1 !important;
    letter-spacing: 2px !important;
    word-spacing: 8px !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    padding: 0 1rem !important;
    max-width: 100% !important;
    font-weight: normal !important;
    color: var(--primary) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1) !important;
}

/* Desktop large */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4.5rem !important; /* Encore plus grand sur très grands écrans */
        letter-spacing: 3px !important;
        word-spacing: 12px !important;
    }
}

/* Tablette */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.2rem !important; /* Augmenté de 2.8rem à 3.2rem */
        letter-spacing: 2px !important;
        word-spacing: 8px !important;
    }
    
    .mobile-break {
        display: block !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem !important; /* Augmenté de 2.4rem à 2.8rem */
        letter-spacing: 1px !important;
        word-spacing: 6px !important;
        line-height: 1.2 !important;
    }
    .services-hero {
        padding: 5.5rem 0 5.5rem;
        min-height: 340px;
    }
    .hero-logo-bg {
        width: 280px;
        height: 280px;
    }
}

/* Très petits écrans */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2.4rem !important; /* Augmenté de 2.1rem à 2.4rem */
        letter-spacing: 0.5px !important;
        word-spacing: 4px !important;
    }
}

/* Stacked hero title refinement */
.hero-title {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.15em !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.hero-title-top {
    font-family: var(--font-title) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    font-size: clamp(3.2rem, 10vw, 6rem) !important;
    color: var(--primary) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1) !important;
    line-height: 1 !important;
}

.hero-title-bottom {
    font-family: var(--font-subtitle) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.25em !important;
    font-size: clamp(2rem, 5.5vw, 3.4rem) !important;
    color: white !important;
    line-height: 1.1 !important;
}

.hero-title-bottom::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    margin: 0.5rem auto 0;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
    opacity: 0.9;
}

/* Styles des boutons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 6px 20px rgba(59, 71, 38, 0.4);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 71, 38, 0.6);
}

.btn-outline {
    border: none;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 71, 38, 0.4);
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
    box-shadow: 0 0 0 2px rgba(59, 71, 38, 0.15);
}

/* Responsive hero - correction aussi */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
        letter-spacing: -2px !important;
        padding: 0 0.5rem !important;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
        letter-spacing: -2px !important;
        line-height: 1.2 !important;
    }

    .hero-actions .btn {
        max-width: 260px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem !important;
        letter-spacing: -2.5px !important;
    }
}

/* Correction de l'espacement des boutons hero */
.hero-actions {
    display: flex;
    gap: 1.5rem; /* Espace entre les boutons */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.hero-actions .btn {
    margin: 0.5rem; /* Marge de sécurité autour de chaque bouton */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.2 !important;
    min-width: 220px !important;
    height: 50px !important;
}

/* Uniformisation parfaite des boutons hero */
.hero-actions .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.2rem 2.8rem !important;
    border-radius: 50px !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-align: center !important;
    line-height: 1 !important;
    min-width: 280px !important; /* Largeur minimale identique */
    height: 55px !important; /* Hauteur identique */
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.hero-actions .btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Mobile - garder les mêmes proportions */
@media (max-width: 768px) {
    .hero-actions .btn {
        min-width: 260px !important;
        height: 50px !important;
        padding: 1rem 2.5rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        min-width: 240px !important;
        height: 48px !important;
        padding: 0.9rem 2rem !important;
        font-size: 0.9rem !important;
    }
}

/* Styles pour les cartes rondes avec images */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.benefit-image {
    width: clamp(84px, 15vw, 132px);
    height: clamp(84px, 15vw, 132px);
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--secondary);
    box-shadow: 0 8px 25px rgba(184, 168, 125, 0.3);
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 3.5rem; /* sans effet sur img, conservé pour fallback texte */
    line-height: 1;
}

/* Réduire la taille uniquement pour les 5 étoiles (3ème carte) */
.benefit-card:nth-child(3) .benefit-image {
    font-size: 1rem;
}

/* Si ce sont des images dans les cercles */
.benefit-image img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    display: block;
}

/* Si ce sont des textes dans les cercles (comme sur votre capture) */
.benefit-image-text {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 4px solid var(--secondary);
    box-shadow: 0 8px 25px rgba(184, 168, 125, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    line-height: 1.2;
}

.benefit-card:hover .benefit-image,
.benefit-card:hover .benefit-image-text {
    transform: scale(1.05);
    border-color: var(--primary);
}

.benefit-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.benefit-content p {
    color: #666;
    line-height: 1.6;
}

/* Services CTA */
.services-cta {
    text-align: center;
    margin-top: 4rem;
}

/* Sections */
.testimonials-section {
    padding: 5rem 0;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(59, 71, 38, 0.15);
    border-left-color: var(--primary);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-content {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

/* Footer */
.site-footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 3rem 0 2rem;
}
/* (reverted) keep original footer padding */

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-inner .brand {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-brand img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.footer-brand:hover img {
    transform: scale(1.05);
    border-color: var(--secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.instagram-link:hover {
    transform: scale(1.1);
}

.facebook-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.facebook-link:hover {
    transform: scale(1.1);
}

.muted {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Final hero title centering and font overrides */
.hero .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero .hero-title {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.2em !important;
    text-align: center !important;
}

.hero .hero-title-top {
    font-family: var(--font-title) !important; /* TT Drugs */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.18em !important;
    font-size: clamp(2.6rem, 7.5vw, 5.2rem) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.12) !important;
    line-height: 1 !important;
}

/* Reduce title size on mobile */
@media (max-width: 480px) {
    .hero .hero-title-top {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
        letter-spacing: 0.12em !important;
    }
}

.hero .hero-title-bottom {
    font-family: var(--font-title) !important; /* Keep same brand font */
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.30em !important;
    font-size: clamp(1.1rem, 2.8vw, 2.2rem) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.08) !important;
    line-height: 1.1 !important;
}

/* Reduce subtitle size on mobile */
@media (max-width: 480px) {
    .hero .hero-title-bottom {
        font-size: clamp(0.85rem, 3.2vw, 1.3rem) !important;
        letter-spacing: 0.22em !important;
    }
}

.hero .hero-title-bottom::after {
    content: '';
    display: block;
    width: 64%;
    height: 3px;
    margin: 0.55rem auto 0;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
    opacity: 0.9;
}

/* Slight downward offset for the hero content */
.hero .hero-inner {
    padding-top: clamp(16px, 7vh, 100px);
}

/* Ajouts pour les autres pages (services, contact, mentions) */

/* Page Services */
.services-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero-content {
    position: relative;
    z-index: 2;
}

.services-hero h1 {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-background {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.hero-logo-bg {
    width: clamp(200px, 50vw, 360px);
    height: clamp(200px, 50vw, 360px);
    border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    display: block;
}

.services-hero .subtitle {
    font-size: 1.3rem;
    margin-top: 2rem;
    color: white !important; /* Force la couleur blanche */
    opacity: 1 !important; /* Supprime la transparence */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Ajoute une ombre pour la lisibilité */
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.services-showcase {
    padding: 6rem 0;
}

/* Conteneur principal pour chaque service - plus compact et élégant */
.service-item {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 4rem;
    border-radius: 25px;
    overflow: hidden;
    background: white;
    box-shadow: 0 15px 50px rgba(59, 71, 38, 0.1);
    border: 1px solid rgba(184, 168, 125, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(59, 71, 38, 0.2);
}

/* Badge numéro stylé */
.service-number {
    position: absolute;
    top: -12px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(59, 71, 38, 0.3);
    z-index: 10;
    text-align: center !important;
    line-height: 45px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: var(--font-body) !important;
}

/* Pour s'assurer que le texte du numéro est parfaitement centré */
.service-number span,
.service-number::before,
.service-number::after {
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* Image du service - 40% de largeur */
.service-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.08);
}

/* Overlay avec icône au survol */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.service-item:hover .service-overlay {
    opacity: 1;
}

.overlay-icon {
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.service-item:hover .overlay-icon {
    transform: scale(1);
}

/* Contenu du service - 60% de largeur */
.service-content {
    flex: 1;
    padding: 3rem 3rem 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Décoration d'arrière-plan */
.service-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(184, 168, 125, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.service-content h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* Ligne décorative sous le titre */
.service-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    margin-top: 8px;
    border-radius: 2px;
}

.service-intro {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* Liste des fonctionnalités plus compacte */
.service-features {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 2;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(184, 168, 125, 0.06);
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
    font-size: 0.95rem;
    color: #555;
    transition: all 0.3s ease;
}

.service-features li:hover {
    background: rgba(184, 168, 125, 0.12);
    transform: translateX(3px);
    border-left-color: var(--primary);
}

.feature-icon {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

/* Services alternés - image à droite */
.service-item.reverse {
    flex-direction: row-reverse;
}

.service-item.reverse .service-content {
    padding: 3rem 2rem 3rem 3rem;
}

.service-item.reverse .service-number {
    right: 30px;
    left: auto;
}

/* Section CTA plus intégrée */
.cta-section {
    background: var(--background);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(184, 168, 125, 0.15) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.cta-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 4rem 3rem;
    border-radius: 30px;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.cta-card h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

.cta-card p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.btn-light {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1.3rem 3.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(59, 71, 38, 0.4);
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(59, 71, 38, 0.6);
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
        margin-bottom: 3rem;
    }
    
    .service-item.reverse {
        flex-direction: column;
    }
    
    .service-image {
        flex: none;
        min-height: 250px;
    }
    
    .service-content {
        padding: 2.5rem 2rem;
    }
    
    .service-number {
        left: 20px;
        right: auto;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .service-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-card {
        margin: 0 1rem;
        padding: 3rem 2rem;
    }
    
    .cta-card h2 {
        font-size: 2rem;
    }
}

/* Contact Page Styles */
/* Ajoutez vos styles spécifiques à la page de contact ici */
.contact-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(184, 168, 125, 0.2) 0%, transparent 70%);
    transform: rotate(15deg);
}

.contact-hero h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.contact-hero .section-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Contenu principal avec fond */
.contact-main {
    padding: 6rem 0;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
    align-items: start; /* Aligne les conteneurs en haut */
}

/* Section coordonnées stylée */
.contact-info {
    background: white;
    padding: 2rem; /* Réduit de 3rem à 2rem */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(184, 168, 125, 0.2);
    height: fit-content; /* Ajuste automatiquement à la hauteur du contenu */
    align-self: start; /* Aligne en haut de la grille */
}

.contact-info h2 {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 2rem; /* Réduit de 2.2rem à 2rem */
    margin-bottom: 1.5rem; /* Réduit de 2rem à 1.5rem */
    text-align: center;
    position: relative;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem; /* Réduit de 2rem à 1.2rem */
    padding: 1.2rem; /* Réduit de 1.5rem à 1.2rem */
    background: rgba(184, 168, 125, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.contact-item:last-child {
    margin-bottom: 0; /* Supprime la marge du dernier élément */
}

.contact-item strong {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-item span {
    color: #555;
    font-weight: 500;
}

/* Formulaire stylé */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(184, 168, 125, 0.2);
}

.contact-form h2 {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(184, 168, 125, 0.15);
    transform: translateY(-2px);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 1rem;
    background: rgba(184, 168, 125, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.checkbox-group label:hover {
    background: rgba(184, 168, 125, 0.1);
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.time-slots label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid rgba(184, 168, 125, 0.2);
}

.time-slots label:hover {
    background: rgba(184, 168, 125, 0.1);
    border-color: var(--secondary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(59, 71, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 71, 38, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-hero {
        padding: 6rem 0 3rem;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 2rem;
    }
    
    .contact-main {
        padding: 4rem 0;
    }
    
    /* Adjust form inputs for mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Further reduce padding on very small screens */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem 0.6rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .form-group input::placeholder,
    .form-group select::placeholder,
    .form-group textarea::placeholder {
        font-size: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
}

/* Amélioration des couleurs pour la page d'accueil */

/* Section "Pourquoi passer par une conciergerie" */
#why-conciergerie {
    position: relative;
}

#why-conciergerie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: none;
    z-index: 0;
}

#why-conciergerie .container {
    position: relative;
    z-index: 2;
}

/* Amélioration des cartes bénéfices */
.benefits-grid {
    margin: 4rem 0;
}

.benefit-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(184, 168, 125, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(59, 71, 38, 0.15);
    border-color: var(--secondary);
}

.benefit-image {
    border: 4px solid var(--secondary);
    box-shadow: 0 8px 25px rgba(184, 168, 125, 0.3);
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.benefit-card:hover .benefit-image {
    transform: scale(1.05);
    border-color: var(--primary);
}

.benefit-content h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-family: var(--font-title);
}

.benefit-content p {
    color: #555;
    line-height: 1.7;
    font-weight: 400;
}

/* Section formulaire de contact */
.contact-form-section {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(184, 168, 125, 0.2) 0%, transparent 70%);
    transform: rotate(15deg);
}

.contact-form-section .section-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-form-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    border: 1px solid rgba(184, 168, 125, 0.3);
    position: relative;
    z-index: 2;
}

.home-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.home-contact-form .form-group {
    margin-bottom: 1.5rem;
}

.home-contact-form label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.home-contact-form input,
.home-contact-form textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.home-contact-form input:focus,
.home-contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(184, 168, 125, 0.1);
    transform: translateY(-2px);
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Section témoignages */
.testimonials-section {
    padding: 6rem 0;
    position: relative;
}

/* Add extra side padding so cards don't touch page edges */
.testimonials-section .container {
    padding: 0 4rem;
    max-width: 1100px; /* constrain width so cards don't reach edges */
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* Tablet: avoid overflow by using single column and smaller side paddings */
@media (max-width: 1024px) {
    .testimonials-section .container {
        padding: 0 1.5rem;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-left: 5px solid var(--secondary);
    position: relative;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .testimonials-section .container {
        padding: 0 1.5rem;
    }
    .testimonials-grid {
        gap: 2rem;
    }
    .testimonial-card {
        padding: 2rem;
        border-radius: 16px;
    }
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: var(--secondary);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(59, 71, 38, 0.15);
    border-left-color: var(--primary);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.testimonial-content {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #444;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    position: relative;
}

.testimonial-author::before {
    content: '— ';
    color: var(--secondary);
}

/* Bouton CTA amélioré */
.services-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(59, 71, 38, 0.05), rgba(184, 168, 125, 0.05));
    border-radius: 20px;
    border: 2px dashed rgba(184, 168, 125, 0.3);
}

.services-cta .btn {
    font-size: 1.2rem;
    padding: 1.5rem 3rem;
    box-shadow: 0 10px 30px rgba(59, 71, 38, 0.3);
}

/* Footer amélioré */
.site-footer {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

/* Styles pour la page Mentions Légales */

/* Header de la page légale */
.legal-header {
    /* Harmonize with services/contact hero */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    padding: 8rem 0 6rem; /* match services spacing */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="legal-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23legal-grain)"/></svg>');
}

.legal-header h1 {
    font-family: var(--font-title);
    font-size: 4rem; /* match services */
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.legal-header .subtitle {
    font-size: 1.3rem; /* match services subtitle */
    opacity: 1;
    position: relative;
    z-index: 2;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 400;
}

.legal-content {
    padding: 6rem 0;
    background: #f8f9fa;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.legal-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
    position: relative;
}

.legal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 71, 38, 0.15);
    border-left-color: var(--primary);
}

.legal-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

.legal-card h2 {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.legal-text p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.legal-text strong {
    color: var(--primary);
}

.legal-text a {
    color: var(--secondary);
    text-decoration: none;
}

.legal-text a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.legal-footer-card {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 2rem;
}

.legal-footer-card h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.legal-footer-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Responsive mentions légales */
@media (max-width: 768px) {
    .legal-header {
        padding: 5rem 0 5rem; /* symmetric like services */
    }
    
    .legal-header h1 {
        font-size: 3.2rem; /* closer to services/contact mobile scale */
    }
    
    .legal-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-card {
        padding: 2rem;
    }
    
    .legal-footer-card {
        padding: 2rem;
    }
}

/* Mobile break class */
.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}

/* Logo en arrière-plan du header avec bords arrondis */

/* Page Contact - logo arrondi */
/* Remove old pseudo-element logo; using shared markup like services */
.contact-hero::after { content: none; }

/* Page Mentions Légales - logo arrondi */
.legal-header::after { content: none; }

/* Alternative avec coins arrondis (si vous préférez rectangulaire arrondi) */
.contact-hero.rounded::after,
.legal-header.rounded::after {
    border-radius: 25px; /* Coins arrondis au lieu de rond complet */
}

/* Correction de la position du logo Instagram sur mobile */

/* Footer responsive - correction du logo Instagram */
@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-brand img {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
        width: 100%;
    }
    
    .footer-links a {
        text-align: center;
        align-self: center;
        font-size: 0.95rem;
        padding: 0.4rem 0;
    }
    
    .instagram-link {
        align-self: center !important;
        margin: 0.3rem auto 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
    }
    
    .facebook-link {
        width: 38px;
        height: 38px;
        margin: 0.3rem auto 0 !important;
    }
    
    .muted {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 1rem 0 0.75rem;
    }
    
    .footer-inner {
        gap: 0.5rem;
    }
    
    .footer-brand img {
        width: 50px;
        height: 50px;
    }
    
    .footer-links {
        gap: 0.4rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    .services-hero {
        padding: 8rem 0 6rem;
    }
    
    .instagram-link {
        margin: 0.2rem auto 0 !important;
        width: 32px;
        height: 32px;
    }
    
    .instagram-link svg {
        width: 18px;
        height: 18px;
    }
    
    .facebook-link {
        width: 32px;
        height: 32px;
    }
    
    .facebook-link svg {
        width: 18px;
        height: 18px;
    }
    
    .muted {
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }
}

/* Alternative - si le problème persiste, forcer la structure */
.site-footer {
    text-align: center;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 2rem;
}

@media (max-width: 768px) {
    .services-hero {
        padding: 8rem 0 6rem;
    }
    .footer-inner {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
    }
}

/* Back to top button - fixed bottom-right */
#back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0)),
        linear-gradient(135deg, rgba(59,71,38,0.92), rgba(184,168,125,0.72));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(14px);
    box-shadow:
        0 18px 46px rgba(0,0,0,0.32),
        0 0 0 1px rgba(255,255,255,0.06);
    cursor: pointer;
    opacity: 0;
    transform: translateY(18px) scale(0.95);
    transition: background 180ms ease, transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease;
    z-index: 9999;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: footerBackToTopIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#back-to-top:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 20px 52px rgba(0,0,0,0.36),
        0 0 0 1px rgba(255,255,255,0.08);
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.24), rgba(255,255,255,0)),
        linear-gradient(135deg, rgba(184,168,125,0.9), rgba(59,71,38,0.95));
    border-color: rgba(255,255,255,0.8);
}

#back-to-top:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(184,168,125,0.5),
        0 20px 50px rgba(0,0,0,0.32),
        0 0 0 1px rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.85);
}

#back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Pop-in only (pulse removed for a cleaner look) */
#back-to-top.visible {
    animation-name: footerBackToTopIn;
    animation-duration: 320ms;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    animation-iteration-count: 1;
}

@keyframes footerBackToTopIn {
    0% { opacity: 0; transform: translateY(16px) scale(0.92); }
    55% { opacity: 1; transform: translateY(0) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* subtlePulse removed */

@media (max-width: 480px) {
    #back-to-top {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
        border-width: 1.5px;
    }
}

/* Apply the same transparent logo watermark to other page headers */
.services-hero::after,
.contact-hero::after,
.legal-header::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('images/logo_transp.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.22;
    z-index: 1;
    pointer-events: none;
}

/* Hide legacy inline logo overlays so only the watermark remains */
.services-hero .logo-background,
.contact-hero .logo-background {
    display: none;
}
/* Header sizing on smaller screens */
@media (max-width: 1024px) {
    .site-header { padding: 1.25rem 0; }
}
@media (max-width: 768px) {
    .site-header { padding: 1rem 0; }
}
@media (max-width: 480px) {
    .site-header { padding: 0.75rem 0; }
}

/* (reverted) remove extra clearances for hero/header texts */