/* ==========================================================================
   Meca Compta - Public Layout Styles
   Styles statiques pour le layout public
   Les variables CSS dynamiques (PHP) sont dans views/layouts/public.php
   ========================================================================== */

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

body {
    font-family: var(--font-body, 'Manrope', system-ui, sans-serif);
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-white);
}

/* Titres en Bebas Neue, contraste avec le texte courant en Manrope. */
h1, h2, h3,
.page-hero h1,
.section-title,
.service-enhanced-title,
.shop-product-card-title,
.testimonials-header .section-title {
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    letter-spacing: 0.02em;
    line-height: 1.05;
}

/* Skip link (WCAG 2.4.1) - hors écran jusqu'au focus clavier, pour sauter
   la navigation sans avoir à tabuler tout le header à chaque page. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

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

/* Icons (View::icon()) - inherit color via currentColor, size via font-size */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

.icon-spin {
    animation: icon-spin 1s linear infinite;
}

@keyframes icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Better focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Grid utilities */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2-cols { grid-template-columns: repeat(2, 1fr); }
.grid-3-cols { grid-template-columns: repeat(3, 1fr); }
.grid-4-cols { grid-template-columns: repeat(4, 1fr); }

/* Flex utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

/* Section spacing */
section { padding: 80px 0; }

/* Section titles */
.section-title {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 24px;
}

/* Trait accent centré sous le titre, indépendant du texte. */
.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) skewX(-12deg);
    width: 44px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    gap: 8px;
    /* Même style "coin coupé" que les cartes et le hero, à échelle réduite. */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Reflet qui balaie le bouton au survol - le clip-path (coin coupé)
   découpe déjà ce pseudo-élément à la même forme que le bouton, pas
   besoin d'un masquage séparé. */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 35%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-primary:hover::before {
    left: 130%;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-main);
}

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

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

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

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

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

/* Form styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Site Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 28px 0;
    /* Ombre portée pour rendre le coin coupé visible, header et body étant du même blanc. */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.25s ease;
}

/* Header qui se resserre au scroll (classe posée en JS, voir public.php). */
.site-header.is-scrolled {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.site-header.is-scrolled .header-inner {
    height: calc(var(--nav-height, 68px) - 12px);
}

/* Le header a besoin de plus de largeur que .container (logo + nav + connexion). */
.site-header .container {
    max-width: 1400px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height, 68px);
    gap: 12px;
    transition: height 0.25s ease;
}

.site-logo {
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 60px;
    /* Logo aligné en haut plutôt que centré : sticky en haut de page, un centrage vertical ferait déborder la moitié hors écran. */
    align-self: flex-start;
}

.site-logo img {
    /* Plus grand que le header (68px), aligné en haut (align-self sur
       .site-logo) donc tout le débordement part vers le bas, dans le hero
       visible. */
    height: 130px;
    width: auto;
    /* Marge transparente intégrée au PNG du logo (~15,6% de la hauteur) : compensée ici pour que le dessin visible démarre en haut. */
    transform: translateY(-20px);
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.site-nav a {
    color: var(--nav-text-color, var(--text-main));
    text-decoration: none;
    font-weight: 600;
    font-size: var(--nav-font-size, 0.78rem);
    font-family: var(--nav-font-family, inherit);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    padding: 3px 5px;
    margin-left: 6px;
    border-radius: 8px;
}

.site-nav a:first-child {
    margin-left: 0;
}

/* Sous-menu (survol desktop uniquement - le tactile passe par le menu
   mobile, qui a son propre système d'accordéon plus bas). */
.site-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-nav-caret {
    display: inline-block;
    margin-left: 3px;
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

.site-nav-item:hover .site-nav-caret {
    transform: rotate(180deg);
}

.site-nav-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 6px;
    min-width: 200px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 1001;
}

.site-nav-item:hover .site-nav-dropdown,
.site-nav-item:focus-within .site-nav-dropdown {
    display: flex;
}

.site-nav-dropdown a {
    margin-left: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    padding: 9px 12px;
    border-radius: 6px;
}

.site-nav-dropdown a::before {
    display: none;
}

.site-nav-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Séparateurs entre les liens : un trait discret avec une ombre légère
   pour un peu de relief, plutôt qu'une simple barre verticale plate. */
.site-nav a:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: var(--border);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

/* Séparateur porté par .site-nav-item plutôt que le <a> : un lien avec sous-menu est enveloppé, le <a> n'est plus le premier enfant direct. */
.site-nav > .site-nav-item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: var(--border);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}

.site-nav a:hover {
    color: var(--primary);
    background: var(--bg-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
    z-index: 1001;
}

.mobile-toggle svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.mobile-toggle:hover {
    background: var(--bg-light);
}

.mobile-toggle:active {
    transform: scale(0.95);
}

/* Mobile Navigation Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    /* Ouvre depuis la gauche, comme le bouton hamburger qui s'y trouve
       maintenant - avant, le bouton était à gauche mais le panneau glissait
       toujours depuis la droite, incohérent. */
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100dvh;
    background: var(--bg-white);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-menu-panel.active {
    display: block;
    left: 0;
}

.mobile-menu-header {
    display: none;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-close:hover {
    background: var(--bg-light);
}

.mobile-nav-content {
    display: none;
    padding: 20px;
}

.mobile-nav-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 1.05rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mobile-nav-content a:hover {
    background: var(--bg-light);
    border-left-color: var(--primary);
}

.mobile-nav-content a:active {
    background: var(--primary);
    color: white;
}

/* Sous-menu mobile - accordéon (pas de survol sur tactile), même gabarit
   visuel que .mobile-nav-content a pour que le bouton parent ne détonne
   pas au milieu des vrais liens. */
.mobile-nav-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 15px 20px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 8px;
    margin-bottom: 5px;
    font: inherit;
    font-size: 1.05rem;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-nav-parent:hover {
    background: var(--bg-light);
    border-left-color: var(--primary);
}

.mobile-nav-caret {
    transition: transform 0.2s ease;
}

.mobile-nav-group.is-open .mobile-nav-caret {
    transform: rotate(180deg);
}

.mobile-nav-children {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    margin-bottom: 5px;
}

.mobile-nav-group.is-open .mobile-nav-children {
    display: flex;
}

.mobile-nav-children a {
    font-size: 0.95rem;
    padding: 12px 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Page Hero (services, contact, faq, galerie, témoignages, rendez-vous). */
/* Image de fond de l'en-tête : scrim sombre à la place du dégradé clair pour garder le texte blanc lisible. */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 72px;
    background-color: var(--primary-dark);
    background-image: url('/assets/images/hero-background.png'), linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
}

/* Bord droit + fondu vers le fond de page en bas, peint par-dessus le scrim. */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.45)),
        linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6));
    background-repeat: no-repeat, no-repeat;
    background-position: bottom, top;
    background-size: 100% 40px, 100% 100%;
}

/* Accent géométrique décoratif (lignes diagonales), aria-hidden. */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 40%);
    height: 100%;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255, 255, 255, 0.09) 0px,
        rgba(255, 255, 255, 0.09) 2px,
        transparent 2px,
        transparent 28px
    );
    -webkit-mask-image: linear-gradient(to left, black, transparent);
    mask-image: linear-gradient(to left, black, transparent);
    pointer-events: none;
    z-index: 0;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    margin-bottom: 24px;
    font-weight: 500;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Fil d'Ariane : flèche + lien groupés par segment pour un retour à la ligne propre. */
.page-hero-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.page-hero-breadcrumb a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

/* Même convention que .services-breadcrumb (catalogue) : pas de
   soulignement au repos, seulement au survol - les 2 fils d'Ariane du
   site doivent se comporter pareil. */
.page-hero-breadcrumb a:hover {
    text-decoration: underline;
    opacity: 0.75;
}

.page-hero-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.page-hero-breadcrumb-sep {
    opacity: 0.7;
}

/* Fil d'Ariane du catalogue, partagé entre services et boutique. */
.services-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.services-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.services-breadcrumb-sep {
    opacity: 0.7;
}

.services-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.services-breadcrumb a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .services-breadcrumb {
        font-size: 0.85rem;
        gap: 4px 8px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0 30px;
    }

    .page-hero-breadcrumb {
        font-size: 0.85rem;
        gap: 4px 8px;
    }
}

/* Info Card - panneaux "coordonnées"/"horaires" (contact, rendez-vous). */
.info-card {
    background: var(--bg-white);
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.info-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.info-card + .info-card {
    margin-top: 24px;
}

.info-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

.info-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-row + .info-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.info-row-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.info-row-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-row-value {
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

a.info-row-value:hover {
    color: var(--primary);
}

/* Value Card - "Nos Valeurs" (à propos). */
.value-card {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 24px;
    background: var(--bg-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.value-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.value-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.value-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-main);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.social-link-facebook { background: #1877f2; }
.social-link-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link-linkedin { background: #0a66c2; }

/* Sections */
.section {
    padding: 80px 0;
}

/* Texture de fond en pointillés, très légère, masquée en dégradé vers un coin. */
.section-dots {
    position: relative;
}

.section-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
    background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(135deg, black 0%, transparent 55%);
    mask-image: linear-gradient(135deg, black 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.section-dots > .container {
    position: relative;
    z-index: 1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 30px;
    transition: all 0.3s;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.service-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Footer */
.site-footer {
    position: relative;
    background: var(--text-main);
    color: white;
    /* Marge de sécurité inutile : la vague SVG se dessine en position absolue, hors de cette boîte. */
    padding: 26px 0 10px;
}

/* Vague posée par-dessus la fin de la section précédente (translateY déborde au-dessus du footer). */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: translateY(-99%);
    pointer-events: none;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 34px;
}

.footer-wave path {
    fill: var(--text-main);
}

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

.footer-title {
    position: relative;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Trait accent, variante sombre (couleur fixe pour rester lisible sur le footer). */
.footer-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) skewX(-12deg);
    width: 4px;
    height: 18px;
    background: rgba(255, 255, 255, 0.45);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 8px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Mobile Call Button */
.mobile-call-button {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 1.75rem;
    text-align: center;
    line-height: 55px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    z-index: 99;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-main);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-consent a {
    color: #60a5fa;
    text-decoration: none;
}

.cookie-consent a:hover {
    text-decoration: underline;
}

/* Nav login button */
.nav-login-btn {
    background: white;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 14px !important;
    border-radius: 10px;
    border: 2px solid var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Bouton panier - même famille visuelle que Connexion (contour fin,
   couleur d'accent), placé juste avant dans le header desktop. */
.nav-cart-btn {
    background: white;
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px !important;
    border-radius: 10px;
    border: 2px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    text-decoration: none;
}

.nav-cart-btn:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

.nav-cart-btn .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.nav-cart-btn .cart-count.is-visible {
    display: inline-flex;
}

/* Mobile : bouton panier à côté du logo, à droite (le menu login/burger
   reste dans le panneau mobile en dessous). */
.mobile-cart-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
}

.mobile-cart-btn .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.mobile-cart-btn .cart-count.is-visible {
    display: inline-flex;
}

.nav-login-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-login-btn:active {
    transform: translateY(0);
}

.nav-login-btn::after {
    display: none;
}

.mobile-nav-content .nav-login-btn {
    justify-content: center;
    margin-top: 10px;
}

/* ==========================================================================
   Responsive - Extra Small Devices (< 480px)
   ========================================================================== */
@media (max-width: 479px) {
    .container { padding: 0 15px; }
    .header-inner { height: 60px; }
    .site-logo { font-size: 1.25rem; }
    .hero h1 { font-size: 1.75rem; line-height: 1.2; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 1.75rem; }
    .btn { padding: 12px 20px; font-size: 0.95rem; }
    .back-to-top, .mobile-call-button { width: 50px; height: 50px; }
    .back-to-top { bottom: 15px; right: 15px; }
    .mobile-call-button { bottom: 75px; left: 15px; }
    .footer-grid { gap: 14px; }
    .site-footer { padding: 18px 0 8px; }
    .cookie-consent { padding: 15px; }
}

/* ==========================================================================
   Responsive - Small Devices (480px - 639px)
   ========================================================================== */
@media (min-width: 480px) and (max-width: 639px) {
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 2rem; }
}

/* ==========================================================================
   Responsive - Tablets (768px - 1023px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .container { max-width: 100%; padding: 0 25px; }
    .hero h1 { font-size: 2.5rem; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Bascule sur le menu hamburger dès ~1010px : le menu complet ne tient plus au-delà. */
@media (max-width: 1010px) {
    /* Logo centré dans la barre mobile : hamburger sorti du flux (absolute) pour laisser le logo seul dans le centrage flex. */
    .header-inner {
        justify-content: center;
        position: relative;
    }

    .site-logo {
        margin-left: 0;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Combine scale et translateY(-50%) au clic, sinon le scale seul écraserait le centrage vertical. */
    .mobile-toggle:active {
        transform: translateY(-50%) scale(0.95);
    }

    .mobile-menu-panel { display: none; }
    .mobile-menu-panel.active { display: block; }
    .mobile-menu-header { display: none; }
    .mobile-menu-panel.active .mobile-menu-header { display: flex; }
    .mobile-nav-content { display: none; }
    .mobile-menu-panel.active .mobile-nav-content { display: block; }
    .nav-overlay { display: none; }
    .nav-overlay.active { display: block; }

    .mobile-menu-panel.active ~ header .hamburger-icon { display: none; }
    .mobile-menu-panel.active ~ header .close-icon { display: block; }

    .site-nav { display: none !important; }

    /* Bouton connexion desktop sorti de .site-nav (collé à droite) : règle propre pour le masquer ici. */
    .header-inner > .nav-login-btn { display: none !important; }
    .header-inner > .nav-cart-btn { display: none !important; }

    /* Panier mobile sorti du flux flex (absolute), côté opposé au hamburger, pour laisser le logo seul élément centré. */
    .mobile-cart-btn {
        display: flex !important;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ==========================================================================
   Responsive - Mobile First (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
    .header-inner { height: 65px; }
    .site-logo { font-size: 1.35rem; }
    .hero h1 { font-size: 2rem; line-height: 1.2; }
    .hero p { font-size: 1rem; max-width: 100%; }
    .section-title { font-size: 1.8rem; }
    .btn { padding: 14px 24px; font-size: 1rem; }
    .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .grid-2-cols, .grid-3-cols { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .form-group { margin-bottom: 15px; }
    .card { margin-bottom: 20px; }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table { font-size: 0.9rem; }
    .site-footer { padding: 18px 0 8px; }
    .footer-grid { gap: 14px; }
    .back-to-top { bottom: 20px; right: 20px; width: 48px; height: 48px; font-size: 1.25rem; }

    .mobile-call-button {
        display: flex;
        align-items: center;
        justify-content: center;
        bottom: 80px;
        left: 20px;
        width: 56px;
        height: 56px;
    }

    .cookie-consent { padding: 15px; }
    .cookie-consent-content { flex-direction: column; align-items: flex-start; }
    section { padding: 50px 0; }
    .service-card, .feature-card { padding: 25px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .testimonial-card { padding: 25px 20px; }
    .faq-item { margin-bottom: 10px; }
    .faq-question { padding: 15px; font-size: 1rem; }
    .faq-answer { padding: 15px; font-size: 0.95rem; }
}

/* ==========================================================================
   Responsive - Landscape Mobile
   ========================================================================== */
@media (max-width: 767px) and (orientation: landscape) {
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 1.75rem; }
    section { padding: 40px 0; }
}

/* ==========================================================================
   Touch device optimizations
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    .site-nav a::after { display: none; }
    .site-nav a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    /* .footer-links garde display:flex en colonne : passer en inline-flex ferait chevaucher les liens sur tactile. */
    .footer-links a {
        min-height: 44px;
    }
    button, .btn, a {
        min-height: 44px;
        min-width: 44px;
    }
    * {
        transition: none !important;
        animation-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   High DPI displays
   ========================================================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Composants de la page d'accueil, déplacés depuis les <style> inline de chaque composant. */

/* Hero (accueil) */
.hero-enhanced {
    position: relative;
    overflow: hidden;
    padding: 90px 0 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

/* Bord droit + fondu vers le fond de page en bas, même technique que .page-hero. */
.hero-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4)),
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    background-repeat: no-repeat, no-repeat;
    background-position: bottom, center;
    background-size: 100% 34px, 100% 100%;
}

.hero-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 40%);
    height: 100%;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255, 255, 255, 0.09) 0px,
        rgba(255, 255, 255, 0.09) 2px,
        transparent 2px,
        transparent 28px
    );
    -webkit-mask-image: linear-gradient(to left, black, transparent);
    mask-image: linear-gradient(to left, black, transparent);
    pointer-events: none;
    z-index: 0;
}

/* Image de fond configurable depuis l'admin : scrim sombre pour garder le texte blanc lisible. */
.hero-enhanced.hero-enhanced-has-image {
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-enhanced.hero-enhanced-has-image::before {
    background-image:
        linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.45)),
        linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6));
    background-repeat: no-repeat, no-repeat;
    background-position: bottom, top;
    background-size: 100% 40px, 100% 100%;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-badge .badge-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: white;
}

.hero-title-subtitle {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-top: 8px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 36px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

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

.btn-hero-secondary {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.hero-trust {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(34, 197, 94, 0.25);
    color: #22c55e;
    border-radius: 6px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .hero-enhanced {
        padding: 70px 0 60px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        gap: 16px;
    }
}

/* Statistiques (accueil) */
.stats-section {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 40px;
    }
}

.stat-item {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.stat-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon-wrapper {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    position: relative;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .stat-item {
        padding: 30px 16px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Services (accueil) */
.services-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Cartes de service/catégorie - système visuel partagé par l'accueil, /services et les pages de catégorie. */
.services-enhanced-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .services-enhanced-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .services-enhanced-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 24px;
    }
}

.service-enhanced-card {
    display: block;
    background: white;
    padding: 32px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    /* Coin coupé plutôt qu'un simple rectangle arrondi - silhouette plus
       actuelle, cohérente avec l'accent diagonal du hero et des titres. */
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.service-enhanced-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.service-enhanced-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-enhanced-content {
    position: relative;
    z-index: 1;
}

.service-enhanced-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.service-enhanced-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.service-enhanced-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-enhanced-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-enhanced-card:hover .service-enhanced-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }

    .services-enhanced-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-enhanced-card {
        padding: 24px;
    }
}

/* Pourquoi Nous Choisir (accueil) */
.features-section {
    /* Padding bas réduit : même fond que .gallery-section juste après, pas besoin d'autant d'écart. */
    padding: 100px 0 50px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* ::after plutôt que ::before : .section-dots utilise déjà ::before. */
.features-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 30px;
    }
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: translateY(-4px);
}

.feature-content {
    position: relative;
    z-index: 1;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feature-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .features-section {
        padding: 60px 0 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* Galerie (accueil) */
.gallery-section {
    /* Padding haut réduit - voir la note sur .features-section juste
       au-dessus, même raisonnement côté opposé du même vide. */
    padding: 50px 0 100px;
    background: var(--bg-light);
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 100px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }
}

.gallery-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.gallery-card {
    /* Toutes les cartes à la même hauteur : .gallery-card doit hériter du stretch de .gallery-item. */
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    /* Fond neutre : les bandes laissées par object-fit:contain se fondent dans la carte. */
    background: var(--bg-light);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    /* contain plutôt que cover : évite de rogner les photos (souvent des gros plans irréguliers). */
    object-fit: contain;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.placeholder-text {
    font-size: 0.875rem;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-icon {
    font-size: 2.5rem;
    color: white;
}

.gallery-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.gallery-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.gallery-category {
    /* Gris neutre plutôt que la couleur primaire, déjà réservée aux éléments interactifs. */
    display: inline-block;
    /* Plaquée en bas de la carte pour rester alignée entre cartes de longueurs différentes. */
    margin-top: auto;
    align-self: flex-start;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Lightbox (accueil - galerie) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
    color: white;
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    gap: 30px;
    align-items: center;
}

.lightbox-image {
    flex: 1;
}

.lightbox-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-details {
    flex: 1;
    color: white;
    padding: 20px;
}

.lightbox-details h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.lightbox-details p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 16px;
}

.lightbox-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 30px 0 60px;
    }

    .lightbox-content {
        flex-direction: column;
    }

    .lightbox-details {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 20px;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }
}

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

/* Témoignages (accueil) */
.testimonials-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

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

.testimonials-header {
    text-align: center;
    margin-bottom: 30px;
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: white;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.badge-stars {
    font-size: 1.25rem;
    color: #fbbf24;
}

.badge-text {
    font-weight: 600;
    color: var(--text-main);
}

.testimonials-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rating-stars {
    font-size: 1.5rem;
    color: #fbbf24;
    letter-spacing: 2px;
}

.rating-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.rating-label {
    color: var(--text-muted);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 0 20px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-content {
    background: white;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    margin-bottom: 16px;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-main);
    position: relative;
    padding: 0 10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 10px;
}

.author-photo,
.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-avatar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.author-meta {
    display: flex;
    gap: 12px;
    font-size: 0.875rem;
}

.author-rating {
    color: #fbbf24;
    letter-spacing: 1px;
}

.author-service {
    color: var(--primary);
    font-weight: 500;
}

.verified-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.testimonials-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-dots {
    display: flex;
    gap: 8px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 0;
    }

    .testimonials-header .section-title {
        font-size: 2rem;
    }

    .testimonial-content {
        padding: 20px 16px;
    }

    .testimonial-quote {
        font-size: 3rem;
        top: 15px;
        left: 15px;
    }

    .testimonials-navigation {
        gap: 10px;
        margin-top: 15px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* Tarifs (accueil) */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 480px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 30px;
    }
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.pricing-card-popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 0%, #ffffff 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 20px;
    background: var(--primary);
    color: white;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* Deuxième règle .pricing-header : la cascade l'emporte pour toute la page (comportement du fichier d'origine). */
.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.pricing-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.pricing-price {
    text-align: center;
    padding: 24px 0;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 24px;
}

.price-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.price-original {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-tva {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 2px;
}

.feature-item span:last-child {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.btn-pricing {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-pricing:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Informations de Contact (accueil) */
.contact-info-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-info-header {
    text-align: center;
    margin-bottom: 48px;
}

/* Un seul panneau (.info-card, partagé avec contact.php/appointment.php) plutôt qu'une grille de vignettes. */
.contact-info-panel {
    max-width: 640px;
    margin: 0 auto;
}

.contact-info-panel:has(.contact-map) {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

/* Variante contact.php : 2 info-card côte à côte, carte déplacée en pleine largeur en dessous. */
.contact-info-panel:has(.info-card + .info-card) {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.contact-info-panel:has(.info-card + .info-card) .info-card {
    height: 100%;
}

.contact-info-panel:has(.info-card + .info-card) .info-card + .info-card {
    margin-top: 0;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-height: 280px;
}

.contact-map-full {
    margin-top: 24px;
    height: 300px;
}

@media (max-width: 767px) {
    .contact-info-panel:has(.contact-map) {
        grid-template-columns: 1fr;
    }

    .contact-info-panel:has(.info-card + .info-card) {
        grid-template-columns: 1fr;
    }

    .contact-map-full {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .contact-info-section {
        padding: 60px 0;
    }
}

/* CTA (accueil, services, faq, galerie, about, rendez-vous...) */
.cta-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Image de fond configurable par section (style inline) ; couleur configurable en repli. */
.cta-section-has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    pointer-events: none;
}

/* Même accent géométrique que .page-hero, pour une famille visuelle cohérente. */
.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: min(280px, 35%);
    height: 100%;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255, 255, 255, 0.08) 0px,
        rgba(255, 255, 255, 0.08) 2px,
        transparent 2px,
        transparent 28px
    );
    -webkit-mask-image: linear-gradient(to left, black, transparent);
    mask-image: linear-gradient(to left, black, transparent);
    pointer-events: none;
    z-index: 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-text {
    flex: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
}

.cta-button-wrapper {
    flex-shrink: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-arrow {
    transition: transform 0.3s;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        margin: 0 auto 24px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* BOUTIQUE - catalogue, fiche produit, panier.
   Même langage visuel que .service-enhanced-card (carte blanche, radius 16px, ombre + lift). */

.shop-product-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Plafonné ici (pas sur la grille partagée) : avec une seule carte, auto-fit étirait la carte sur 100% de la largeur. */
    max-width: 340px;
    /* Coin coupé - même silhouette que .service-enhanced-card, la boutique
       doit se lire comme une section du site, pas un module à part. */
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.shop-product-card-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.shop-product-card-image {
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.shop-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-product-card:hover .shop-product-card-image img {
    transform: scale(1.05);
}

.shop-product-card-placeholder {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.shop-product-card-title {
    font-size: 1.15rem;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
}

.shop-product-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 12px;
}

.shop-product-card-price {
    display: block;
    font-family: var(--font-display, inherit);
    letter-spacing: 0.02em;
    font-weight: 400;
    color: var(--primary);
    font-size: 1.4rem;
}

.shop-add-to-cart {
    margin: 0 20px 20px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.shop-add-to-cart:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.shop-add-to-cart:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Fiche produit */
.shop-product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
}

.shop-product-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-white);
    border: 1px solid var(--border);
}

.shop-product-gallery-main img {
    width: 100%;
    height: 100%;
    /* contain, pas cover : l'image produit ne doit jamais être recadrée. */
    object-fit: contain;
}

.shop-product-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    background: var(--bg-light);
}

.shop-product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.shop-product-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.shop-product-thumb:hover,
.shop-product-thumb.is-active {
    border-color: var(--primary);
}

.shop-product-summary {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 18px;
    line-height: 1.6;
}

.shop-product-price {
    font-family: var(--font-display, inherit);
    letter-spacing: 0.02em;
    font-weight: 400;
    color: var(--primary);
    font-size: 2.75rem;
    margin: 0 0 28px;
}

.shop-product-buy-form {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.shop-product-buy-form label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.shop-product-qty-input {
    width: 72px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 1rem;
    text-align: center;
}

.shop-product-buy-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.shop-product-out-of-stock {
    display: inline-block;
    color: var(--danger);
    font-weight: 600;
    background: rgba(239, 68, 68, 0.08);
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.shop-product-description {
    margin-top: 36px;
    line-height: 1.75;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .shop-product-detail {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .shop-product-price {
        font-size: 2.2rem;
    }
}

/* Panier */
.shop-cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.shop-cart-empty p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.shop-cart-lines {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
}

.shop-cart-line {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.shop-cart-line:last-child {
    border-bottom: none;
}

.shop-cart-line-image {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.shop-cart-line-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-cart-line-info {
    flex: 1;
    min-width: 0;
}

.shop-cart-line-name {
    font-weight: 600;
    color: var(--text-main);
}

.shop-cart-line-unit {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.shop-cart-qty {
    width: 60px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
}

.shop-cart-line-total {
    width: 90px;
    text-align: right;
    font-weight: 600;
    font-family: var(--font-display, inherit);
    letter-spacing: 0.01em;
    font-size: 1.15rem;
    color: var(--text-main);
}

.shop-cart-remove {
    border: none;
    background: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    line-height: 1;
}

.shop-cart-total {
    text-align: right;
    margin-bottom: 32px;
}

.shop-cart-total-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-right: 10px;
}

.shop-cart-total-value {
    font-family: var(--font-display, inherit);
    letter-spacing: 0.02em;
    font-size: 2rem;
    color: var(--primary);
}

.shop-checkout-form {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
}

.shop-checkout-form h2 {
    grid-column: 1 / -1;
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.shop-checkout-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-checkout-field.is-full {
    grid-column: 1 / -1;
}

.shop-checkout-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.shop-checkout-field input {
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-family: inherit;
}

.shop-checkout-field input:focus {
    outline: none;
    border-color: var(--primary);
}

.shop-checkout-account-choice {
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: 10px;
}

.shop-checkout-radio {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
}

.shop-checkout-radio input {
    margin-top: 3px;
    flex-shrink: 0;
}

.shop-checkout-actions {
    grid-column: 1 / -1;
}

.shop-checkout-error {
    color: var(--danger);
    display: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.shop-checkout-error.is-visible {
    display: block;
}

.shop-checkout-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.shop-checkout-submit:hover {
    opacity: 0.9;
}

.shop-checkout-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .shop-checkout-form {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .shop-cart-line {
        flex-wrap: wrap;
    }

    .shop-cart-line-total {
        width: auto;
        margin-left: auto;
    }
}

/* ANIMATIONS - révélation au défilement + entrée du hero.
   .reveal-init n'est posée que par JS (public.php) : sans JS le contenu reste visible normalement. */
.reveal-init {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(.16, .84, .44, 1), transform 0.7s cubic-bezier(.16, .84, .44, 1);
    will-change: opacity, transform;
}

.reveal-init.is-revealed {
    opacity: 1;
    transform: none;
}

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

.page-hero-badge,
.page-hero h1,
.page-hero p,
.page-hero-breadcrumb {
    animation: hero-fade-up 0.7s cubic-bezier(.16, .84, .44, 1) both;
}

.page-hero-badge { animation-delay: 0.05s; }
.page-hero h1 { animation-delay: 0.16s; }
.page-hero p,
.page-hero-breadcrumb { animation-delay: 0.3s; }

/* Pastille du panier - petit "pop" à chaque changement de quantité. */
@keyframes cart-count-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.cart-count.is-popping {
    animation: cart-count-pop 0.35s ease;
}
