/* ========================================
   Jules Tremeaux - Artisan Carreleur
   Site Vitrine
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --primary-light: #2d2d2d;
    --accent: #888888;
    --accent-light: #aaaaaa;
    --accent-dark: #555555;
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --bg-dark: #111111;
    --text: #1a1a1a;
    --text-light: #555555;
    --text-muted: #888888;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Bodoni Moda', Georgia, serif;
    line-height: 1.2;
    color: var(--primary);
}

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

a:hover {
    color: var(--accent-dark);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all var(--transition);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 8px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    color: var(--accent);
    line-height: 1;
}

.logo-icon-svg {
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer .logo-img {
    filter: invert(1);
    height: 50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Bodoni Moda', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition);
    line-height: 1.2;
}

.navbar.scrolled .logo-name {
    color: var(--primary);
}

.logo-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-nav {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}

.btn-nav::after {
    display: none !important;
}

.btn-nav:hover {
    background: var(--primary-light) !important;
}

.navbar.scrolled .btn-nav {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition);
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-facebook {
    background: #1877f2;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-facebook:hover {
    background: #166fe5;
    color: var(--white);
    transform: translateY(-2px);
}

.fb-icon {
    width: 20px;
    height: 20px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #1a1a1a;
    overflow: hidden;
}

/* Diaporama de fond du hero — fondu enchaîné automatique (CSS pur) */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroFade 18s infinite;
}

.hero-bg img:nth-child(1) { animation-delay: 0s; }
.hero-bg img:nth-child(2) { animation-delay: 6s; }
.hero-bg img:nth-child(3) { animation-delay: 12s; }

@keyframes heroFade {
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    30%  { opacity: 1; }
    36%  { opacity: 0; }
    100% { opacity: 0; }
}

/* Si une seule image (pas de diaporama), elle reste affichée en continu */
.hero-bg.single img { animation: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .hero-bg img { animation: none; opacity: 1; }
    .hero-bg img:nth-child(n+2) { opacity: 0; }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(20,20,20,0.55) 50%, rgba(0,0,0,0.7) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-tag {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.hero-scroll span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #555555;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-placeholder {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    border-radius: var(--radius);
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    gap: 12px;
}

.about-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.placeholder-icon {
    font-size: 48px;
    color: var(--accent);
    opacity: 0.4;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #1a1a1a;
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    display: block;
    font-family: 'Bodoni Moda', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.about-content .section-tag {
    display: block;
    margin-bottom: 12px;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Bodoni Moda', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-partner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 12px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border-left: 3px solid #1a1a1a;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.about-partner:hover {
    background: #efefef;
    transform: translateX(4px);
}

.partner-icon {
    font-size: 24px;
}

.partner-logo {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}

.about-partner p {
    margin: 0;
    font-size: 14px;
    color: var(--text);
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #1a1a1a;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1a1a1a, #333333);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--white);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

/* --- Process --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 35px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: var(--border);
}

.process-step:last-child::after {
    display: none;
}

.process-number {
    font-family: 'Bodoni Moda', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 16px;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-light);
    font-size: 14px;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

/* ===== Dispositions de la galerie (choisies depuis /admin) =====
   Les photos « mises en avant » (.gallery-large) sont toujours
   plus grandes, sauf en disposition uniforme. */

/* 1. MOSAÏQUE — grandes photos en grand carré (2×2) qui alternent gauche /
      droite, petites photos qui comblent autour : rythme en zigzag équilibré */
.gallery-grid.layout-mosaique {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 190px;
    grid-auto-flow: dense;
}
.gallery-grid.layout-mosaique .gallery-large {
    grid-column: span 2; /* repli sans JS : la grande photo reste sur 2 colonnes */
    grid-row: span 2;
}
/* La 1re photo mise en avant à gauche, la 2e à droite, la 3e à gauche… */
.gallery-grid.layout-mosaique .gallery-large.feat-left {
    grid-column: 1 / span 2;
}
.gallery-grid.layout-mosaique .gallery-large.feat-right {
    grid-column: 2 / span 2;
}

/* 2. ALIGNÉE — grandes photos en hauteur réparties en alternance sur les
      colonnes de gauche et de droite, les petites comblent le centre (flux
      compact) : rythme régulier et équilibré, même avec 30 photos */
.gallery-grid.layout-aligne {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}
.gallery-grid.layout-aligne .gallery-large {
    grid-row: span 2;
}
/* 1re photo en avant à gauche, 2e à droite, 3e à gauche… (réparties aux deux bords) */
.gallery-grid.layout-aligne .gallery-large.feat-left {
    grid-column: 1;
}
.gallery-grid.layout-aligne .gallery-large.feat-right {
    grid-column: 3;
}

/* 3. UNIFORME — toutes les photos identiques, en carrés */
.gallery-grid.layout-uniforme {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    grid-auto-flow: row;
}
.gallery-grid.layout-uniforme .gallery-item,
.gallery-grid.layout-uniforme .gallery-large {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1;
}

.gallery-placeholder {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    width: 100%;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

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

.gallery-item {
    background: #000;
}

.gallery-item .gallery-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity var(--transition);
}

.gallery-item:hover .gallery-img {
    opacity: 0.85;
}

.gallery-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

.gallery-title {
    color: var(--white);
    font-family: 'Bodoni Moda', serif;
    font-size: 1.1rem;
}

.gallery-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 32px;
    font-style: italic;
}

/* --- Lightbox (photo en grand au clic) --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    margin: 0;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    color: var(--white);
    font-size: 15px;
    text-align: center;
    max-width: 80vw;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 28px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 34px;
}

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

@media (max-width: 640px) {
    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-img { max-height: 76vh; }
}

/* --- Facebook Feed --- */
.facebook-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.fb-section {
    position: relative;
    display: flex;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px;
    min-height: 500px;
    overflow: hidden;
}

.fb-section .fb-page {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
}

.fb-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: var(--radius);
}

.fb-fallback-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}

.fb-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.fb-fallback-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    color: var(--white);
}

.fb-fallback-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.fb-fallback-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    padding: 8px;
    border-radius: 50%;
}

.fb-fallback-icon.icon-fb {
    color: #1877f2;
}

.fb-fallback-icon.icon-ig {
    color: #e1306c;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.fb-fallback-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.fb-fallback-content h4 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-family: 'Bodoni Moda', serif;
}

.fb-fallback-content p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.fb-fallback-btn {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    padding: 11px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
}

.fb-fallback-btn.btn-fb {
    background: #1877f2;
}

.fb-fallback-btn.btn-fb:hover {
    background: #166fe5;
    color: var(--white);
    transform: translateY(-2px);
}

.fb-fallback-btn.btn-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.fb-fallback-btn.btn-ig:hover {
    color: var(--white);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

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

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-instagram:hover {
    color: var(--white);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.fb-cta {
    padding: 24px 0;
}

.fb-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.fb-cta > p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 15px;
}

.fb-reviews {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.fb-reviews-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.testimonial {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.testimonial-stars {
    color: #f5b301;
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.testimonial p {
    color: var(--text-light);
    font-style: italic;
    font-size: 14px;
    line-height: 1.8;
}

/* --- Zone --- */
.zone-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.zone-list p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

.zone-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zone-tag {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--text);
    transition: all var(--transition);
}

.zone-tag:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #1a1a1a, #333333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--white) !important;
    transition: all var(--transition);
}

.contact-social-link.contact-fb {
    background: #1877f2;
}

.contact-social-link.contact-fb:hover {
    background: #166fe5;
    transform: translateY(-2px);
    color: var(--white) !important;
}

.contact-social-link.contact-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-social-link.contact-ig:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: var(--white) !important;
}

/* --- Form --- */
.contact-form {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: var(--radius);
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192,146,94,0.15);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-name {
    color: var(--white);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 16px;
}

.footer-siret {
    font-size: 12px !important;
    color: rgba(255,255,255,0.4) !important;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color var(--transition);
}

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

.footer-contact p,
.footer-contact a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-social-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transition: all var(--transition);
    color: rgba(255,255,255,0.6);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-social:hover {
    background: var(--accent);
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* --- Floating Phone --- */
.floating-phone {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #1a1a1a;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 999;
    transition: all var(--transition);
    animation: phonePulse 2s ease-in-out infinite;
}

.floating-phone svg {
    width: 24px;
    height: 24px;
}

.floating-phone:hover {
    transform: scale(1.1);
    background: #333333;
    color: var(--white);
}

@keyframes phonePulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
}

/* --- Animations (scroll reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Bouton intelligent (rappel / appel) --- */
.btn-callback {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.btn-callback:hover {
    background: #f0f0f0;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

.btn-outline-dark:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.floating-phone {
    width: auto;
    padding: 0 22px;
    gap: 10px;
    border-radius: 50px;
}

.floating-phone .smart-cta-label {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* --- Lien dans carte prestation --- */
.service-link {
    align-self: flex-end;        /* collé à droite ; le trait ne fait que la largeur du texte */
    margin-top: auto;            /* toujours collé en bas de la carte */
    padding-top: 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
    white-space: nowrap;         /* une seule ligne */
}

.service-link:hover {
    color: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* --- Avis Google --- */
.greviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.g-logo {
    width: 44px;
    height: 44px;
}

.greviews-score {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.greviews-note {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.greviews-stars {
    color: #f5b301;
    font-size: 22px;
    letter-spacing: 2px;
}

.greviews-count {
    font-size: 14px;
    color: var(--text-muted);
}

.greviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --- Carrousel d'avis (défilement continu) --- */
.greviews-grid.greviews-carousel {
    display: block;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.greviews-track {
    display: flex;
    width: max-content;
    animation: greviews-scroll linear infinite;
}
.greviews-carousel:hover .greviews-track,
.greviews-carousel:focus-within .greviews-track {
    animation-play-state: paused;
}
.greviews-track .greview-card {
    width: clamp(260px, 78vw, 340px);
    flex: 0 0 auto;
    margin-right: 24px;
}
@keyframes greviews-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .greviews-grid.greviews-carousel {
        overflow-x: auto;
        -webkit-mask-image: none;
                mask-image: none;
    }
    .greviews-track {
        animation: none !important;
    }
}

.greview-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.greview-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.greview-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a, #444444);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

img.greview-avatar {
    object-fit: cover;
    background: #e9eaec;
}

.greview-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.greview-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.greview-date {
    font-size: 12px;
    color: var(--text-muted);
}

.greview-glogo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.greview-stars {
    color: #f5b301;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.greview-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
}

.greviews-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* --- Modale de rappel --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition);
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
}

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

.modal-box h3 {
    font-size: 1.6rem;
    margin: 8px 0 12px;
}

.modal-sub {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-error {
    font-size: 13px;
    color: #c0392b;
    background: #fdf0ee;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 12px;
    text-align: center;
}

.form-error a {
    color: #c0392b;
    font-weight: 600;
    text-decoration: underline;
}

.modal-check {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Bandeau d'annonce (géré depuis /admin) --- */
.site-annonce {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 48px;
    line-height: 1.5;
    overflow: hidden;
}

/* Animation « Défilant » : le texte défile en boucle continue */
.site-annonce--defilement {
    padding-left: 0;
    padding-right: 0;
    white-space: nowrap;
}
.site-annonce--defilement .annonce-track {
    display: inline-flex;
    will-change: transform;
    animation: annonce-defile linear infinite;
}
.site-annonce--defilement .annonce-item {
    padding-right: 4rem;
}
@keyframes annonce-defile {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Animation « Brillance » : un reflet lumineux balaie le bandeau */
.site-annonce--brillance::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 55%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .38) 50%, transparent 100%);
    transform: translateX(-130%);
    pointer-events: none;
    animation: annonce-brille 5s ease-in-out infinite;
}
@keyframes annonce-brille {
    0%        { transform: translateX(-130%); }
    55%, 100% { transform: translateX(260%); }
}

/* Accessibilité : on respecte la réduction des animations */
@media (prefers-reduced-motion: reduce) {
    .site-annonce--defilement .annonce-track { animation: none; }
    .site-annonce--defilement { white-space: normal; padding-left: 48px; padding-right: 48px; }
    .site-annonce--brillance::after { animation: none; display: none; }
}

/* --- Contact sur fond alterné --- */
#contact.section-alt .contact-card,
#contact.section-alt .contact-form,
#devis.section-alt .contact-card,
#devis.section-alt .contact-form {
    background: var(--white);
}

/* --- Landing salle de bain --- */
.hero-sdb {
    background-image: url('images/salle de bain 3.jpg');
    min-height: 85vh;
}

/* --- Page prestation générique (/prestations/<slug>) --- */
.hero-page {
    min-height: 85vh;
    /* Le menu est fixé (position: fixed) : on réserve sa hauteur en haut
       pour que le sommet du contenu ne passe pas dessous. */
    padding-top: 90px;
    padding-bottom: 40px;
    /* « safe center » : centrage vertical sur grand écran, mais bascule en
       alignement haut si le contenu est plus grand que la zone visible
       (écrans peu hauts, ex. 1366×768) — le tag ne peut plus se cacher
       sous l'en-tête fixe. */
    align-items: safe center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Voile plus marqué que sur l'accueil : le texte reste lisible quelle que
   soit la photo de fond choisie (certaines, comme la douche, sont claires). */
.hero-page::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(20,20,20,0.62) 50%, rgba(0,0,0,0.78) 100%);
}
.hero-page .hero-tag {
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}

/* Cartes-liens vers les pages prestation (accueil) */
.presta-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 36px;
}
.presta-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.presta-link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.presta-link-arrow { color: var(--accent); font-size: 1.1rem; }

.trust-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 40px auto 0;
    position: relative;
    z-index: 3;
    padding: 0 24px;
}

.trust-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    text-align: center;
}

.trust-item strong {
    display: block;
    font-family: 'Bodoni Moda', serif;
    font-size: 1.6rem;
    color: var(--primary);
}

.trust-item span {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-list details {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-list summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 48px;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--accent);
    transition: transform var(--transition);
}

.faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .greviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 48px;
    }

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

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-step::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 0;
        transition: right var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        color: rgba(255,255,255,0.8) !important;
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: 16px;
    }

    .btn-nav {
        margin-top: 16px;
        text-align: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-badge {
        right: 16px;
        bottom: -16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid,
    .gallery-grid.layout-mosaique,
    .gallery-grid.layout-aligne,
    .gallery-grid.layout-uniforme {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid,
    .gallery-grid.layout-mosaique,
    .gallery-grid.layout-aligne {
        grid-auto-rows: 170px;
    }

    /* Mosaïque : la grande photo occupe toute la largeur sur 2 rangées */
    .gallery-grid.layout-mosaique .gallery-large,
    .gallery-grid.layout-mosaique .gallery-large.feat-left,
    .gallery-grid.layout-mosaique .gallery-large.feat-right {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Alignée : la grande photo reste en hauteur sur 2 rangées */
    .gallery-grid.layout-aligne .gallery-large,
    .gallery-grid.layout-aligne .gallery-large.feat-left,
    .gallery-grid.layout-aligne .gallery-large.feat-right {
        grid-column: span 1;
        grid-row: span 2;
    }

    .facebook-feed {
        grid-template-columns: 1fr;
    }

    .zone-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-desc {
        font-size: 16px;
    }

    .section {
        padding: 64px 0;
    }

    .greviews-grid {
        grid-template-columns: 1fr;
    }

    .greviews-summary {
        flex-direction: column;
        gap: 10px;
    }

    .trust-bar {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 32px;
    }

    .modal-box {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-grid,
    .gallery-grid.layout-mosaique,
    .gallery-grid.layout-aligne,
    .gallery-grid.layout-uniforme {
        grid-template-columns: 1fr;
    }

    .gallery-grid,
    .gallery-grid.layout-mosaique,
    .gallery-grid.layout-aligne {
        grid-auto-rows: 240px;
    }

    /* Sur une seule colonne, la grande photo reste plus haute */
    .gallery-grid.layout-mosaique .gallery-large,
    .gallery-grid.layout-mosaique .gallery-large.feat-left,
    .gallery-grid.layout-mosaique .gallery-large.feat-right,
    .gallery-grid.layout-aligne .gallery-large,
    .gallery-grid.layout-aligne .gallery-large.feat-left,
    .gallery-grid.layout-aligne .gallery-large.feat-right {
        grid-column: span 1;
        grid-row: span 2;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}
