/* ============================================
   Brian Photographie - Site immersif
   ============================================ */

:root {
    --color-bg: #fafaf8;
    --color-bg-soft: #f5f3f0;
    --color-bg-cream: #ebe8e4;
    --color-text: #3d3935;
    --color-text-muted: #6b6560;
    --color-text-soft: #8b8680;
    --color-accent: #a89080;
    --color-accent-hover: #8f7a6d;
    --color-accent-soft: #c4b5a8;
    --color-border: #e0dcd6;
    --radius-soft: 12px;
    --radius-pill: 100px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    line-height: 1.6;
    /* Zones sûres pour encoches et appareils pliants */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}


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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    transition: background 0.25s ease-out, box-shadow 0.25s ease-out;
}

.nav.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--color-border);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-out);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--color-text);
    transition: transform 0.3s var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero - Immersion totale
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    contain: layout paint;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.04);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 4s cubic-bezier(0.22, 1, 0.36, 1);
    backface-visibility: hidden;
}

.hero-img.active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 28, 26, 0.55) 0%,
        rgba(45, 42, 38, 0.4) 35%,
        rgba(60, 56, 51, 0.35) 60%,
        rgba(250, 250, 248, 0.92) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    overflow: visible;
    padding-bottom: 0.08em;
}

.hero-title-line {
    display: block;
    animation: fadeUp 1s var(--ease-out) backwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.4s;
    font-style: italic;
    font-weight: 400;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    padding-top: 0.25rem;
    animation: fadeUp 1s var(--ease-out) 0.6s backwards;
}

.hero-title {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    color: #f5f3f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    min-height: 48px;
    min-width: 180px;
    box-sizing: border-box;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeUp 1s var(--ease-out) 0.8s backwards;
    transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
    text-align: center;
    line-height: 1.2;
}

.hero-cta:hover {
    background: var(--color-accent);
    color: #fff;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    animation: fadeUp 1s var(--ease-out) 1s backwards;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Apparition au scroll (GPU, fluide)
   ============================================ */

.about-grid,
.category-block,
.tarifs,
.parcours-content,
.contact,
.galerie-page .container {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1), transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-grid.visible,
.category-block.visible,
.tarifs.visible,
.parcours-content.visible,
.contact.visible,
.galerie-page .container.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.galerie-page .gallery-item.reveal {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.galerie-page .gallery-item.reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ============================================
   Sections communes
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 3rem;
    text-align: center;
}

/* ============================================
   À propos
   ============================================ */

.about {
    padding: 8rem 0;
    background: var(--color-bg-soft);
    content-visibility: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.about-img-wrap {
    position: relative;
    overflow: hidden;
}

.about-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-border);
    margin: 1.5rem;
    z-index: 1;
    pointer-events: none;
}

.about-img-wrap img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.65s var(--ease-out);
    will-change: transform;
}

.about-img-wrap:hover img {
    transform: scale(1.03) translateZ(0);
}

.about-img-wrap:not(:hover) img {
    will-change: auto;
}

/* ============================================
   Catégories - 5 univers immersifs
   ============================================ */

.categories {
    padding: 6rem 0 4rem;
    content-visibility: auto;
}

.categories-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.categories-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.category-block {
    position: relative;
    height: 70vh;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    padding: 3rem 4rem;
    overflow: hidden;
    cursor: pointer;
}

.category-block:nth-child(even) {
    flex-direction: row-reverse;
}

.category-block:nth-child(even) .category-content {
    text-align: right;
}

.category-bg {
    position: absolute;
    inset: 0;
}

.category-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
}

.category-block:hover .category-bg img {
    transform: translateZ(0) scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(12, 11, 10, 0.97) 0%,
        rgba(22, 20, 18, 0.88) 40%,
        rgba(35, 31, 28, 0.55) 70%,
        rgba(50, 45, 40, 0.25) 100%
    );
    transition: background 0.5s var(--ease-out);
}

.category-block:hover .category-overlay {
    background: linear-gradient(
        to top,
        rgba(15, 13, 12, 0.97) 0%,
        rgba(25, 22, 20, 0.85) 45%,
        rgba(35, 31, 28, 0.5) 75%,
        rgba(40, 36, 33, 0.2) 100%
    );
}

.category-title,
.category-desc,
.category-number,
.category-link {
    color: #fff;
    transition: color 0.35s var(--ease-out);
}

/* Au survol du bloc : texte et lien changent de couleur */
.category-block:hover .category-number,
.category-block:hover .category-link {
    color: #d4c4b0;
}

.category-block:hover .category-title {
    color: #e8dfd4;
}

.category-block:hover .category-desc {
    color: #e0d6ca;
}

.category-block .category-link:hover {
    color: #f2ebe3;
}

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

.category-number {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #f0ede8;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.category-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.3);
}

.category-desc {
    font-size: 1rem;
    color: #f8f6f3;
    max-width: 400px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

.category-block:nth-child(even) .category-desc {
    margin-left: auto;
}

.category-link {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.category-block .category-link:hover {
    color: #f2ebe3 !important;
    gap: 1rem;
}

/* ============================================
   Galeries
   ============================================ */

.galleries {
    padding: 6rem 0;
    background: var(--color-bg-soft);
}

.gallery-section {
    margin-bottom: 6rem;
}

.gallery-section:last-child {
    margin-bottom: 0;
}

.gallery-section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 3px solid var(--color-accent);
    color: var(--color-text);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(168, 144, 128, 0.15);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

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

/* ============================================
   Pages galerie (dédiées)
   ============================================ */

.page-galerie .nav {
    background: rgba(250, 250, 248, 0.98);
    box-shadow: 0 1px 0 var(--color-border);
}

.galerie-page {
    padding: 7rem 0 4rem;
    min-height: 60vh;
}

.galerie-back {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    transition: color 0.3s var(--ease-out);
}

.galerie-back:hover {
    color: var(--color-accent);
}

.galerie-page-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.galerie-page-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.galerie-page .gallery-grid {
    margin-top: 0;
}

/* ============================================
   Tarifs
   ============================================ */

.tarifs {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-bg-soft) 0%, rgba(235, 232, 228, 0.6) 50%, var(--color-bg) 100%);
    content-visibility: auto;
}

.tarifs-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 3rem 0 1.5rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.tarifs-subtitle::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-accent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.tarifs-intro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: -1rem auto 2rem;
    line-height: 1.6;
}

.tarifs-subtitle:first-of-type {
    margin-top: 0;
}

.tarifs-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.tarifs-grid-shooting {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tarifs-grid-mariage {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tarifs-grid-options {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.tarif-card-options .tarif-list-options li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    padding-left: 0;
    border-bottom: 1px solid var(--color-border);
}

.tarif-card-options .tarif-list-options li::before {
    display: none;
}

.tarif-card-options .tarif-list-options .tarif-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.35rem;
}

.tarif-option-name {
    display: block;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.tarif-card-options .tarif-list-options li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tarif-option-detail {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 400;
    display: block;
}

.tarif-card-options .tarif-option-promo,
.tarif-option-promo {
    font-size: 0.95rem;
    color: #d4af37 !important;
    background: #6b5a4d;
    border-left: 3px solid #d4af37;
    padding: 0.85rem 1rem;
    margin: 1rem 0 0;
    border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
    line-height: 1.45;
}

/* Cartes tarifs - apparition décalée au scroll */
.tarifs .tarif-card {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 0.48s var(--ease-out), transform 0.48s var(--ease-out),
                box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.tarifs.visible .tarif-card {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.tarif-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-soft);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 3px solid var(--color-accent);
    box-shadow: 0 4px 20px rgba(168, 144, 128, 0.06);
    height: 100%;
    min-height: 0;
}

.tarif-card:hover {
    box-shadow: 0 8px 32px rgba(168, 144, 128, 0.12);
    border-color: var(--color-accent);
}

.tarif-card-mariage {
    border-top-color: var(--color-accent-hover);
}

.tarif-card-featured {
    border-color: var(--color-accent);
    border-top-width: 4px;
    border-top-color: var(--color-accent);
    box-shadow: 0 6px 28px rgba(168, 144, 128, 0.14);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248, 246, 244, 0.98) 100%);
}

.tarif-badge {
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 0 0 6px 6px;
}

.tarif-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.tarif-price-alt {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.tarif-price-same {
    font-size: 1em;
    font-weight: 500;
    color: inherit;
}

.tarif-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tarif-note,
.tarif-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.tarif-list {
    list-style: none;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.tarif-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
}

.tarif-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
}

.tarif-cta {
    display: block;
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-align: center;
    color: #fff;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-soft);
    transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
    flex-shrink: 0;
}

.tarif-cta:hover {
    color: #fff;
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

.tarif-card-featured .tarif-cta {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.tarif-card-featured .tarif-cta:hover {
    background: #7d6b5f;
    border-color: #7d6b5f;
}

/* ============================================
   Parcours
   ============================================ */

.parcours {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.parcours-bg {
    position: absolute;
    inset: 0;
}

.parcours-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parcours-overlay {
    position: absolute;
    inset: 0;
    background: rgba(250, 250, 248, 0.9);
}

.parcours-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.parcours-content p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.parcours .section-title {
    color: var(--color-text);
}

/* ============================================
   Nous contacter
   ============================================ */

.contact {
    padding: 8rem 0;
    background: var(--color-bg-cream);
}

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

.contact-intro {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.contact-booking {
    margin-bottom: 2.5rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-soft);
    border: 1px solid var(--color-border);
}

.contact-booking-intro {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.contact-calendar {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.75rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-soft);
    transition: background 0.3s var(--ease-out), transform 0.2s var(--ease-out);
    box-shadow: 0 4px 14px rgba(168, 144, 128, 0.25);
}

.contact-calendar:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
}

.contact-calendar-icon {
    flex-shrink: 0;
}

.contact-booking-note {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    margin-top: 0.75rem;
}

.contact-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.contact-block h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.contact-address,
.contact-region {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-map-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-top: 0.5rem;
    transition: color 0.3s var(--ease-out);
}

.contact-map-link:hover {
    color: var(--color-accent-hover);
}

.contact-phone {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--color-text);
    transition: color 0.3s var(--ease-out);
}

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

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color 0.3s var(--ease-out);
}

.contact-social-link:hover {
    color: var(--color-accent);
}

.contact-social-link svg {
    flex-shrink: 0;
}

.contact-whatsapp-booking {
    background: #25d366 !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.contact-whatsapp-booking:hover {
    background: #20bd5a !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 2.25rem;
    background: #25d366;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: background 0.3s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.contact-whatsapp:hover {
    background: #20bd5a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.contact-whatsapp-icon {
    flex-shrink: 0;
}

.contact-whatsapp-below-calendar {
    margin-bottom: 2rem;
}

/* ============================================
   Lightbox
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(61, 57, 53, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fafaf8;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s var(--ease-out);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-bg-cream);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-size: 0.85rem;
    color: var(--color-text-soft);
}

/* ============================================
   Responsive — Tablette, smartphone, pliant, desktop
   ============================================ */

/* Tablette (portrait et paysage) */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .about { padding: 5rem 0; }
    .section-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 2rem; }
    .tarifs { padding: 4rem 0; }
    .contact { padding: 5rem 0; }
}

/* Tablette portrait / petit laptop */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(280px, 85vw);
        max-width: 280px;
        padding-right: env(safe-area-inset-right);
        padding-top: env(safe-area-inset-top);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--color-bg);
        gap: 2rem;
        box-shadow: -4px 0 20px rgba(61, 57, 53, 0.08);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-img-wrap {
        order: -1;
    }

    .about-img-wrap img {
        height: 350px;
    }

    .category-block {
        padding: 2rem;
        min-height: 380px;
    }

    .category-block:nth-child(even) .category-content {
        text-align: left;
    }

    .category-block:nth-child(even) .category-desc {
        margin-left: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .tarifs-grid-mariage {
        grid-template-columns: 1fr;
    }
}

/* Smartphone paysage / grande phablet */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .hero { min-height: 500px; }
    .hero-content { padding: 1.5rem; }
    .hero-scroll { bottom: 1.5rem; }
    .about { padding: 4rem 0; }
    .categories { padding: 4rem 0 3rem; }
    .categories-intro { margin-bottom: 2.5rem; }
    .category-block { padding: 1.5rem; min-height: 340px; }
    .category-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .category-desc { font-size: 0.95rem; max-width: 100%; }
    .galerie-page { padding: 5.5rem 0 3rem; }
    .contact-whatsapp {
        padding: 1rem 1.75rem;
        min-height: 48px;
        font-size: 1rem;
    }
}

/* Smartphone portrait */
@media (max-width: 600px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }

    .hero-subtitle { font-size: 0.95rem; }

    .hero-cta {
        min-width: 160px;
        padding: 0.9rem 1.75rem;
    }

    .category-block {
        height: 55vh;
        min-height: 300px;
        padding: 1.25rem;
    }

    .category-number { font-size: 0.7rem; }
    .category-link {
        padding: 0.5rem 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

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

    .tarifs-grid-shooting {
        grid-template-columns: 1fr;
    }

    .tarif-card { padding: 1.5rem; }
    .tarif-cta { padding: 0.75rem 1rem; min-height: 44px; }
}

/* Petit smartphone / smartphone plié (mode étroit) */
@media (max-width: 480px) {
    .nav { padding: 1rem 1rem; padding-top: max(1rem, env(safe-area-inset-top)); }
    .nav-logo { font-size: 1.1rem; }
    .container { padding: 0 1rem; }

    .hero {
        min-height: 100svh;
        min-height: -webkit-fill-available;
    }
    .hero-title { font-size: 1.85rem; }
    .hero-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .hero-cta { min-width: 140px; padding: 0.85rem 1.5rem; font-size: 0.8rem; }

    .about { padding: 3rem 0; }
    .about-img-wrap img { height: 280px; }
    .section-title { font-size: 1.75rem; margin-bottom: 1.5rem; }

    .categories { padding: 3rem 0 2rem; }
    .categories-subtitle { font-size: 0.95rem; }
    .category-block {
        height: 50vh;
        min-height: 260px;
        padding: 1rem;
    }
    .category-title { font-size: 1.35rem; }
    .category-desc { font-size: 0.9rem; }

    .tarifs { padding: 3rem 0; }
    .tarifs-intro { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .tarifs-subtitle { font-size: 1.25rem; }
    .tarif-price { font-size: 1.65rem; }
    .tarif-name { font-size: 1.1rem; }
    .tarif-list li { font-size: 0.9rem; }

    .parcours { padding: 4rem 0; }
    .parcours-content p { font-size: 0.95rem; }

    .contact { padding: 4rem 0; }
    .contact-intro { font-size: 1rem; }
    .contact-booking { padding: 1.25rem; margin-bottom: 2rem; }
    .contact-calendar { width: 100%; justify-content: center; }
    .contact-phone { font-size: 1.5rem; }
    .contact-ctas { flex-direction: column; }
    .contact-whatsapp { width: 100%; justify-content: center; }

    .galerie-page { padding: 4.5rem 0 2rem; }
    .galerie-back { margin-bottom: 1rem; }
    .galerie-page-title { font-size: 1.75rem; }
    .galerie-page-desc { font-size: 0.95rem; }

    .footer { padding: 1.5rem 1rem; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
    .footer p { font-size: 0.8rem; }

    .lightbox-close { top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); }
    .lightbox-prev { left: max(0.5rem, env(safe-area-inset-left)); }
    .lightbox-next { right: max(0.5rem, env(safe-area-inset-right)); }
}

/* Très étroit (smartphone pliant fermé, petit appareil) */
@media (max-width: 360px) {
    body { font-size: 15px; }
    .nav-logo { font-size: 1rem; }
    .hero-title { font-size: 1.65rem; }
    .hero-subtitle { font-size: 0.85rem; }
    .category-block { min-height: 240px; padding: 0.75rem; }
    .category-title { font-size: 1.2rem; }
    .category-desc { font-size: 0.85rem; }
    .section-title { font-size: 1.5rem; }
    .container { padding: 0 0.75rem; }
}

/* Hauteur courte (pliant en mode couverture, barre d’adresse visible) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: 100vh; min-height: 100dvh; }
    .hero-content { padding: 1rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { margin-bottom: 1rem; }
    .category-block { min-height: 280px; height: 55vh; }
}
