/*
===========================================
MAISONS CTL — FICHE PLAN INDIVIDUELLE
Version: 2.0.0 — Design moderne validé
Date: 25/02/2026
===========================================
*/

/* ═══ VARIABLES ═══ */
:root {
    --fp-red: #c41e3a;
    --fp-red-dark: #a01830;
    --fp-red-light: rgba(196, 30, 58, 0.08);
    --fp-dark: #1a1a2e;
    --fp-grey-700: #374151;
    --fp-grey-500: #6b7280;
    --fp-grey-300: #d1d5db;
    --fp-grey-100: #f3f4f6;
    --fp-grey-50: #f8f9fa;
    --fp-white: #ffffff;
    --fp-radius-xl: 20px;
    --fp-radius-lg: 16px;
    --fp-radius-md: 12px;
    --fp-radius-sm: 8px;
    --fp-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --fp-shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.04);
}

/* ═══ BREADCRUMB ═══ */
.fp-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}
.fp-breadcrumb a {
    color: var(--fp-grey-500);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}
.fp-breadcrumb a:hover { color: var(--fp-red); }
.fp-breadcrumb .sep { color: var(--fp-grey-300); margin: 0 8px; }
.fp-breadcrumb .current { color: var(--fp-dark); font-weight: 600; }

/* ═══ HERO SECTION (2 colonnes) ═══ */
.fp-hero {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
}

.fp-hero-image {
    position: relative;
    border-radius: var(--fp-radius-xl);
    overflow: hidden;
    box-shadow: var(--fp-shadow-md);
    background: var(--fp-grey-100);
}
.fp-hero-image .fp-badge-type {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--fp-red);
    color: white;
    padding: 8px 18px;
    border-radius: var(--fp-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
}
.fp-hero-image .fp-badge-special {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 18px;
    border-radius: var(--fp-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.fp-badge-populaire { background: #f59e0b; color: white; box-shadow: 0 4px 16px rgba(245,158,11,0.4); }
.fp-badge-nouveau { background: #3b82f6; color: white; box-shadow: 0 4px 16px rgba(59,130,246,0.4); }
.fp-badge-tendance { background: #059669; color: white; box-shadow: 0 4px 16px rgba(5,150,105,0.4); }

.fp-hero-info {
    padding: 12px 0;
}
.fp-style-tag {
    display: inline-block;
    background: var(--fp-grey-100);
    color: var(--fp-grey-500);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.fp-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--fp-dark);
    line-height: 1.15;
    margin-bottom: 12px;
}
.fp-subtitle {
    font-size: 1.05rem;
    color: var(--fp-grey-500);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Specs chips grid */
.fp-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
.fp-spec-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--fp-grey-50);
    border: 1px solid var(--fp-grey-100);
    padding: 14px 16px;
    border-radius: var(--fp-radius-md);
    transition: all 0.2s;
}
.fp-spec-chip:hover {
    border-color: var(--fp-red);
    background: var(--fp-red-light);
}
.fp-spec-chip .chip-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--fp-red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.fp-spec-chip .chip-label {
    font-size: 0.72rem;
    color: var(--fp-grey-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.fp-spec-chip .chip-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fp-dark);
}

/* Prix block */
.fp-prix-block {
    background: linear-gradient(135deg, #fef2f2, #fff7ed);
    border: 1px solid rgba(196, 30, 58, 0.12);
    border-radius: var(--fp-radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.fp-prix-label {
    font-size: 0.8rem;
    color: var(--fp-grey-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.fp-prix-value {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--fp-red);
}
.fp-prix-note {
    font-size: 0.82rem;
    color: var(--fp-grey-500);
    margin-top: 4px;
}

/* CTA buttons */
.fp-cta-row {
    display: flex;
    gap: 12px;
}
.fp-btn-devis {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--fp-red);
    color: white;
    border: none;
    border-radius: var(--fp-radius-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
}
.fp-btn-devis:hover {
    background: var(--fp-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.4);
    color: white;
    text-decoration: none;
}
.fp-btn-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--fp-white);
    color: var(--fp-dark);
    border: 2px solid var(--fp-grey-300);
    border-radius: var(--fp-radius-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.fp-btn-phone:hover {
    border-color: var(--fp-dark);
    background: var(--fp-dark);
    color: white;
    text-decoration: none;
}

/* ═══ SECTIONS COMMUNES ═══ */
.fp-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}
.fp-section--alt {
    background: var(--fp-grey-50);
    padding: 60px 0;
}
.fp-section--alt .fp-section {
    padding-top: 0;
    padding-bottom: 0;
}
.fp-section-header {
    margin-bottom: 40px;
}
.fp-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fp-red-light);
    color: var(--fp-red);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.fp-section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--fp-dark);
    margin-bottom: 8px;
}
.fp-section-desc {
    color: var(--fp-grey-500);
    font-size: 1rem;
}

/* ═══ GALERIE 3D ═══ */
.fp-gallery-3d {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.fp-gallery-3d-item {
    position: relative;
    border-radius: var(--fp-radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.fp-gallery-3d-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fp-gallery-3d-item:hover img {
    transform: scale(1.08);
}
.fp-gallery-3d-item::after {
    content: '\1F50D';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.fp-gallery-3d-item:hover::after { opacity: 1; }

/* ═══ PLANS 2D ═══ */
.fp-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
.fp-plan-card {
    background: var(--fp-white);
    border: 1px solid var(--fp-grey-100);
    border-radius: var(--fp-radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}
.fp-plan-card:hover {
    box-shadow: var(--fp-shadow-md);
    border-color: transparent;
    text-decoration: none;
}
.fp-plan-card img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background: #ffffff;
    padding: 16px;
}
.fp-plan-card-label {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--fp-grey-100);
}
/* Plan PDF — Canvas HD (PDF.js) */
.fp-plan-pdf-link {
    display: block;
    position: relative;
    width: 100%;
    height: 350px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
}
.fp-pdf-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.fp-plan-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.fp-plan-hover-overlay span {
    background: rgba(255, 255, 255, 0.95);
    color: var(--fp-dark);
    padding: 12px 24px;
    border-radius: var(--fp-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.fp-plan-pdf-link:hover .fp-plan-hover-overlay {
    background: rgba(26, 26, 46, 0.25);
}
.fp-plan-pdf-link:hover .fp-plan-hover-overlay span {
    opacity: 1;
    transform: translateY(0);
}

/* Plan card image links */
.fp-plan-card a {
    display: block;
}
.fp-plan-card a img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background: #ffffff;
    padding: 16px;
    transition: transform 0.4s;
}
.fp-plan-card a:hover img {
    transform: scale(1.03);
}

/* Galerie 3D items — clickable */
.fp-gallery-3d-item {
    display: block;
    text-decoration: none;
}

.fp-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--fp-grey-50);
    border: 2px solid var(--fp-grey-300);
    border-radius: var(--fp-radius-md);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fp-dark);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.fp-btn-pdf:hover {
    background: var(--fp-red);
    color: white;
    border-color: var(--fp-red);
    text-decoration: none;
}

/* ═══ DESCRIPTION ═══ */
.fp-description p {
    font-size: 1.05rem;
    color: var(--fp-grey-700);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 800px;
}
.fp-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
    max-width: 800px;
}
.fp-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--fp-white);
    border: 1px solid var(--fp-grey-100);
    border-radius: var(--fp-radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s;
}
.fp-feature-item:hover {
    border-color: var(--fp-red);
    background: var(--fp-red-light);
}
.fp-feature-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ═══ CARACTÉRISTIQUES ═══ */
.fp-carac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.fp-carac-card {
    background: var(--fp-white);
    border: 1px solid var(--fp-grey-100);
    border-radius: var(--fp-radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}
.fp-carac-card:hover {
    box-shadow: var(--fp-shadow-sm);
    border-color: transparent;
    transform: translateY(-4px);
}
.fp-carac-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--fp-radius-md);
    background: var(--fp-red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
}
.fp-carac-label {
    font-size: 0.75rem;
    color: var(--fp-grey-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 4px;
}
.fp-carac-value {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--fp-dark);
}

/* ═══ FAQ ═══ */
.fp-faq-list {
    max-width: 800px;
}
.fp-faq-item {
    border: 1px solid var(--fp-grey-100);
    border-radius: var(--fp-radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
}
.fp-faq-item:hover { border-color: var(--fp-grey-300); }
.fp-faq-item.open {
    border-color: var(--fp-red);
    box-shadow: 0 2px 12px rgba(196, 30, 58, 0.08);
}
.fp-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    background: var(--fp-white);
    transition: background 0.2s;
    border: none;
    width: 100%;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
    color: var(--fp-dark);
}
.fp-faq-question:hover { background: var(--fp-grey-50); }
.fp-faq-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fp-grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s;
    flex-shrink: 0;
}
.fp-faq-item.open .fp-faq-chevron {
    background: var(--fp-red);
    color: white;
    transform: rotate(180deg);
}
.fp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
}
.fp-faq-item.open .fp-faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}
.fp-faq-answer p {
    color: var(--fp-grey-700);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ═══ CTA FINAL ═══ */
.fp-cta-final {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 100%);
    border-radius: var(--fp-radius-xl);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.fp-cta-final::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.fp-cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.fp-cta-final h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: white;
    margin-bottom: 12px;
    position: relative;
}
.fp-cta-final p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.fp-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
}
.fp-cta-final .fp-btn-devis {
    padding: 18px 36px;
    font-size: 1.05rem;
}
.fp-cta-final .fp-btn-phone {
    border-color: rgba(255,255,255,0.25);
    color: white;
    background: transparent;
}
.fp-cta-final .fp-btn-phone:hover {
    background: white;
    color: var(--fp-dark);
    border-color: white;
}

/* ═══ PLACEHOLDER (pas d'image) ═══ */
.fp-placeholder {
    width: 100%;
    height: 100%;
    background: var(--fp-grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    min-height: 300px;
}

/* ═══ ADMIN EDIT BUTTON ═══ */
.fp-admin-edit {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--fp-red);
    color: white;
    padding: 12px 20px;
    border-radius: var(--fp-radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
    z-index: 999;
    transition: all 0.3s;
}
.fp-admin-edit:hover {
    background: var(--fp-red-dark);
    transform: translateY(-2px);
    color: white;
}

/* ═══ ANIMATIONS ═══ */
.fp-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fp-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .fp-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .fp-gallery-3d { grid-template-columns: repeat(2, 1fr); }
    .fp-carac-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .fp-plan-pdf-link { height: 250px; }
    .fp-plan-card a img { height: 250px; }
    .fp-specs-grid { grid-template-columns: repeat(2, 1fr); }
    .fp-plans-grid { grid-template-columns: 1fr; }
    .fp-gallery-3d { grid-template-columns: 1fr; }
    .fp-features-grid { grid-template-columns: 1fr; }
    .fp-carac-grid { grid-template-columns: repeat(2, 1fr); }
    .fp-cta-row { flex-direction: column; }
    .fp-cta-final { padding: 40px 24px; }
    .fp-cta-btns { flex-direction: column; }
}

/* ═══ HERO ZOOM LINK ═══ */
.fp-hero-zoom {
    display: block;
    position: relative;
    cursor: zoom-in;
    aspect-ratio: 16 / 10;
    background: var(--fp-grey-100);
}
.fp-hero-zoom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s;
}
.fp-hero-zoom:hover img {
    transform: scale(1.02);
}

/* Bouton "Agrandir" overlay */
.fp-hero-zoom-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s, transform 0.25s;
}
.fp-hero-zoom-btn svg {
    flex-shrink: 0;
}
.fp-hero-zoom:hover .fp-hero-zoom-btn {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 640px) {
    .fp-hero-zoom-btn {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* ═══ IMAGE MODAL — plein ecran, 100% hors flux ═══ */

/* Body scroll lock */
body.fp-modal-open {
    overflow: hidden !important;
}

/* Modal container — display:none quand ferme, flex quand ouvert */
.fp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* dvh pour iOS Safari qui exclut la barre d'adresse */
    height: 100dvh;
    z-index: 99999;
    isolation: isolate;
    /* Centrage via flex */
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}
.fp-modal.fp-modal--open {
    display: flex;
}

/* Overlay — fond sombre, ferme au clic */
.fp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
    animation: fpModalFadeIn 0.2s ease;
}

/* Content — contraint la zone image, empeche le clic de fermer */
.fp-modal-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    /* La zone utile : viewport moins le padding safe */
    max-width: min(96vw, 1400px);
    max-height: 92vh;
    max-height: 92dvh;
    padding: 16px;
    box-sizing: border-box;
    animation: fpModalZoomIn 0.25s ease;
}

/* Image */
.fp-modal-img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 32px);
    max-height: calc(92dvh - 32px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
    touch-action: pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

/* Bouton fermer */
.fp-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.fp-modal-close:hover,
.fp-modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}
.fp-modal-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Mobile — plein ecran */
@media (max-width: 640px) {
    .fp-modal-content {
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
        padding: 8px;
    }
    .fp-modal-img {
        max-height: calc(100vh - 64px);
        max-height: calc(100dvh - 64px);
        border-radius: 6px;
    }
    .fp-modal-close {
        top: 8px;
        right: 8px;
    }
}

@keyframes fpModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fpModalZoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
