/* ==========
   Variables
========== */

:root {
    --bg: #07060a;
    --bg-alt: #121018;
    --card: #191623;
    --accent: #b52b4f;           /* bordeaux */
    --accent-soft: rgba(181, 43, 79, 0.18);
    --accent-gold: #e4b568;
    --text: #f6f5f8;
    --text-muted: #a7a4b8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.5);
    --radius-lg: 16px;
    --radius-xl: 22px;
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.24s ease-out;
}

/* ==========
   Base
========== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #201225 0, #050308 55%, #020106 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.see-all-wrapper {
    margin-top: 2rem;
    text-align: center;
}

/* Hero image Patricia */
.hero-thumb-patricia {
    background-image: url("img/patricia-at-work.jpg");
    background-size: cover;
    background-position: center;
}

/* ==========
   Layout
========== */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: radial-gradient(circle at top left, #211628 0, #0e0a11 45%, #06030a 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    margin: 0 0 0.6rem;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* ==========
   Header
========== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(5, 4, 8, 0.96), rgba(5, 4, 8, 0.7));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-signature {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 0.1rem;
    transition: color var(--transition-fast);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-gold));
    transition: width var(--transition-fast);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 8, 14, 0.9);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* Burger menu */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 6, 14, 0.96);
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 60%;
    margin: 0 auto;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform var(--transition-fast), opacity var(--transition-fast), width var(--transition-fast);
}

.nav-toggle.is-open span:first-child {
    transform: translateY(3px) rotate(45deg);
    width: 70%;
}

.nav-toggle.is-open span:last-child {
    transform: translateY(-3px) rotate(-45deg);
    width: 70%;
}

/* ==========
   Hero
========== */

.hero {
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0 0 0.75rem;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.hero-subtitle {
    margin: 0 0 1.8rem;
    color: var(--text-muted);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* Hero visual */

.hero-visual {
    display: flex;
    justify-content: flex-end;
    flex: 1.2;
}

.hero-text {
    flex: 1;
}

.hero-card {
    width: 100%;
    max-width: 450px;
    background: radial-gradient(circle at top left, #2c1a32, #131019 60%, #060309 100%);
    border-radius: 28px;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

.hero-thumb {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-caption,
.hero-caption-sub {
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
}

.hero-caption-sub {
    color: var(--text-muted);
}

/* ==========
   Buttons
========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    color: #14060b;
    box-shadow: 0 16px 32px rgba(181, 43, 79, 0.55);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(181, 43, 79, 0.6);
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
    background: rgba(10, 8, 14, 0.85);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn.full-width {
    width: 100%;
}

.btn-small {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
}

/* ==========
   About
========== */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 2.5rem;
}

.about-grid p {
    color: var(--text-muted);
}

.about-details {
    display: grid;
    gap: 1rem;
}

.about-item {
    background: rgba(10, 8, 14, 0.98);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-subtle);
}

.about-item h3 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
}

.about-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* ==========
   Gallery
========== */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
    justify-content: center;
}

.filter-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(9, 7, 13, 0.95);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.filter-btn:hover {
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--accent-soft);
    color: var(--accent-gold);
    border-color: rgba(181, 43, 79, 0.7);
}

.gallery-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    width: 100%;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 100%;
    border: 1px solid transparent;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.gallery-thumb-wrapper {
    position: relative;
}

.gallery-thumb-wrapper img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform var(--transition-med), filter var(--transition-med);
}

.badge-status {
    position: absolute;
    inset: auto 0 0 auto;
    margin: 0.65rem 0.65rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.badge-available {
    background: rgba(34, 181, 108, 0.9);
    color: #050807;
}

.badge-sold {
    background: rgba(130, 130, 130, 0.95);
    color: #050505;
}

.gallery-item figcaption {
    padding: 0.8rem 0.95rem 1rem;
}

.gallery-item h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
}

.gallery-meta {
    margin: 0 0 0.4rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.gallery-text {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(181, 43, 79, 0.7);
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: saturate(1.05);
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.84);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med);
    z-index: 200;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: min(900px, 100%);
    max-height: 70vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

.lightbox p {
    margin: 1rem 0 0;
    color: #f0eff4;
    font-size: 0.95rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(10, 8, 14, 0.85);
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ==========
   Expositions
========== */

.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.exhibitions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.exhibitions-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.expo-title {
    display: block;
    font-size: 0.92rem;
}

.expo-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========
   Certifications
========== */

.cert-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
    gap: 2rem;
}

.cert-card {
    background: rgba(10, 8, 14, 0.98);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    padding: 1.4rem 1.5rem;
}

.cert-card h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 1rem;
}

.cert-card p {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cert-note {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Les grilles s’adaptent toujours à la largeur du card,
   sans dépasser, sans scroll horizontal. */
.estimation-wrapper {
    width: 100%;
    overflow-x: hidden;          /* pas de scroll interne */
}

/* Table toujours à 100% du card, jamais plus large */
.estimation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 0.6rem;
    font-size: 0.86rem;
    table-layout: fixed;         /* force l’ajustement dans la largeur */
}

.estimation-table th,
.estimation-table td {
    padding: 0.35rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    word-wrap: break-word;       /* coupe proprement si besoin */
}

.estimation-table th {
    font-weight: 500;
}

/* Ajustements spécifiques mobile pour que tout tienne bien */
@media (max-width: 600px) {
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cert-card {
        padding: 1.2rem 1.2rem;
    }

    .estimation-table {
        font-size: 0.78rem;      /* texte un peu plus petit */
    }

    .estimation-table th,
    .estimation-table td {
        padding: 0.3rem 0.2rem;
    }
}


/* ==========
   Presse
========== */

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.press-card {
    background: rgba(10, 8, 14, 0.98);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    padding: 1.4rem 1.5rem;
}

.press-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.press-meta {
    margin: 0 0 0.6rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* ==========
   Contact
========== */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
    gap: 2.3rem;
}

.contact-infos {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-infos li + li {
    margin-top: 0.35rem;
}

.contact-infos a {
    color: var(--accent-gold);
    text-decoration: none;
}

.contact-form {
    background: rgba(10, 8, 14, 0.98);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.form-group {
    margin-bottom: 0.85rem;
}

label {
    display: block;
    font-size: 0.84rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

input,
textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(6, 5, 10, 0.95);
    padding: 0.55rem 0.7rem;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(181, 43, 79, 0.6);
    background: rgba(9, 7, 14, 0.98);
}

textarea {
    resize: vertical;
}

.form-note {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========
   Footer
========== */

.site-footer {
    padding: 1.7rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #050307;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-credit {
    opacity: 0.9;
}

/* ==========
   Responsive
========== */

/* Grand écrans / laptops moyens */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .hero-inner {
        gap: 2.5rem;
    }

    .hero-card {
        max-width: 420px;
    }
}

/* Tablettes paysage / écrans autour de 1024px */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-inner {
        gap: 2.2rem;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }

    .hero-card {
        max-width: 400px;
    }

    .hero h1 {
        font-size: clamp(2rem, 2.4vw, 2.4rem);
    }

    .gallery-grid {
        gap: 1.7rem;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablettes portrait / petits laptops */
@media (max-width: 900px) {
    .hero-inner,
    .about-grid,
    .contact-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        gap: 2.4rem;
    }

    .hero {
        padding-top: 4rem;
        padding-bottom: 3.5rem;
    }

    .hero-text {
        text-align: left;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .hero-card {
        max-width: 420px;
        margin: 0 auto;
    }

    .about-grid {
        gap: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobiles & petites tablettes */
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        inset: 64px 0 auto 0;
        background: rgba(7, 5, 11, 0.98);
        flex-direction: column;
        padding: 0.9rem 1.5rem 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition-med), opacity var(--transition-med);
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero-inner {
        gap: 2rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-card {
        max-width: 390px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.6rem;
    }

    .gallery-thumb-wrapper img {
        height: 210px;
    }

    .contact-form {
        padding: 1.3rem 1.3rem;
    }
}

/* Petits téléphones / largeur réduite */
@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    .site-header {
        font-size: 0.9rem;
    }

    .logo-signature {
        height: 26px;
    }

    .logo-text {
        font-size: 0.72rem;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-card {
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: minmax(220px, 1fr);
    }

    .gallery-item {
        padding: 1.1rem;
    }

    .gallery-thumb-wrapper img {
        height: 200px;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .contact-grid {
        gap: 1.8rem;
    }
}

/* Très petits écrans (anciens téléphones) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.9rem;
    }

    .header-inner {
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .btn {
        font-size: 0.84rem;
        padding: 0.6rem 1.1rem;
    }

    .gallery-grid {
        gap: 1.4rem;
    }

    .gallery-thumb-wrapper img {
        height: 190px;
    }

    .press-card,
    .cert-card,
    .contact-form {
        padding: 1.2rem 1.2rem;
    }
}
