/* Polices utilisees par l'identite visuelle Pixelflow. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

/* Couleurs et familles reutilisables dans tout le site. */
:root {
    --ink: #111111;
    --paper: #f4f2ed;
    --muted: #8d8a83;
    --line: rgba(17, 17, 17, .14);
    --dark-line: rgba(255, 255, 255, .16);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
}

/* Regles de base et utilitaires communs. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ink); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Navigation principale et menu mobile. */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; color: #fff; transition: background .3s ease, backdrop-filter .3s ease; }
.site-header.is-scrolled { background: rgba(10, 10, 10, .86); backdrop-filter: blur(14px); }
.site-nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: .28em; }
.main-menu { display: flex; align-items: center; gap: 30px; font-size: .86rem; }
.main-menu > a:not(.button) { position: relative; color: #ddd; }
.main-menu > a:not(.button)::after { content: ''; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-menu > a:not(.button):hover::after, .main-menu > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 1px; margin: 5px; background: currentColor; }

/* Hero : image plein ecran, voile sombre et contenu de presentation. */
.hero { position: relative; min-height: 720px; height: 100vh; max-height: 980px; display: flex; align-items: center; overflow: hidden; color: #fff; background: #161616; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }



                        /* Image principale de la page d'accueil : arriere-plan du hero plein ecran. */
                        
.hero-media { background: url('../images/Acceuil.webp') center / cover; animation: heroZoom 14s ease-in-out infinite alternate; }
.hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.2) 75%), linear-gradient(0deg, rgba(0,0,0,.6), transparent 55%); }
.hero-content { position: relative; z-index: 1; padding-top: 80px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.hero .eyebrow { color: #d2d0ca; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { margin-bottom: 0; line-height: .98; letter-spacing: -.04em; }
h1 { max-width: 800px; font-size: clamp(3.5rem, 8vw, 7.8rem); }
h2 { font-size: clamp(2.8rem, 5.6vw, 5.4rem); }
/* Hierarchie typographique et textes d'introduction du hero. */
h1 em, h2 em { color: #aaa7a0; font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; }
.hero-intro { max-width: 520px; margin: 30px 0 0; color: #d2d0ca; font-size: 1.06rem; }
/* Boutons d'action et indicateur de defilement. */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; font-size: .86rem; font-weight: 700; transition: transform .25s ease, background .25s ease, color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--ink); background: #fff; }
.button-dark { color: #fff; background: var(--ink); }
.button-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.button-outline:hover { color: var(--ink); background: #fff; }
.button-small { min-height: 38px; padding: 8px 16px; color: var(--ink); background: #fff; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; display: flex; gap: 12px; align-items: center; color: #bbb; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; transform: translateX(-50%); }
.scroll-cue span { width: 42px; height: 1px; background: #aaa; }

/* Sections de contenu et titres editoriaux. */
.section, .cta-section { padding: 120px 0; }
.section-light, .cta-section { background: var(--paper); }
.section-dark { color: #fff; background: var(--ink); }
.section-mid { color: #fff; background: #1b1b1b; }
.section-heading { max-width: 620px; margin-bottom: 64px; }
.section-heading > p:last-child, .about-copy > p, .cta-section .narrow > p { max-width: 500px; margin: 26px 0 0; color: #73716c; }
.section-dark .eyebrow { color: #8d8a83; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: none; }
.text-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 28px; border-bottom: 1px solid currentColor; padding-bottom: 7px; font-size: .86rem; }
.text-link span { font-size: 1.1rem; transition: transform .25s ease; }
.text-link:hover span { transform: translate(3px, -3px); }
/* Cartes de services. */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 270px; padding: 32px; border: 1px solid var(--line); transition: color .3s ease, background .3s ease, transform .3s ease; }
.service-card:hover { color: #fff; background: var(--ink); transform: translateY(-6px); }
.service-card span { color: #aaa69e; font-size: .75rem; letter-spacing: .18em; }
.service-card h3 { margin: 56px 0 12px; font-size: 1.45rem; letter-spacing: -.03em; }
.service-card p { margin: 0; color: #77746d; }
.service-card:hover p { color: #bbb; }

/* Grille portfolio et variantes de cadrage de l'image disponible. */
.portfolio-grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: repeat(2, 280px); grid-auto-rows: 280px; gap: 16px; }
.portfolio-item { position: relative; overflow: hidden; }
.portfolio-feature { grid-row: span 2; }
.portfolio-item .image { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .7s ease, filter .7s ease; }
.portfolio-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .7s ease; }
/* Images, filtres et variantes de cadrage du portfolio. */
/* Image principale de la grande vignette : premier visuel de la section Portfolio. */
.image-main { background-image: url('../images/Service_2.JPG'); }
/* Image de la section A propos sur l'accueil et la page A propos. */

/* IMAGE A PROPOS */

.about-image {
    background-image: url('../images/Logo_pixelflow.jpeg?v=4');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #111;
}
/* Variante recadree et desaturee : vignette Portraits du Portfolio. */

.image-detail { background-image: url('../images/Service_3.JPG'); background-position: 75% center; filter: grayscale(1) contrast(1.1); }


/* Variante recadree et sepia : vignette Evenements du Portfolio. */

.image-event { background-image: url('../images/Logo_avec_fond.jpeg'); background-position: 25% center; filter: sepia(.3); }
/* Voile de lisibilite et interaction au survol des images. */
.portfolio-item::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.portfolio-item span { position: absolute; z-index: 1; bottom: 22px; left: 24px; font-size: .8rem; letter-spacing: .08em; }
.portfolio-item span small { display: block; max-width: 360px; margin-top: 5px; color: #c8c5bf; font-size: .72rem; font-weight: 400; letter-spacing: 0; }
.portfolio-item:hover .image { transform: scale(1.06); filter: brightness(.76); }
.portfolio-item:hover .portfolio-photo { transform: scale(1.06); filter: brightness(.76); }
.portfolio-empty { padding: 50px 0; color: var(--muted); text-align: center; }
/* Lightbox : agrandissement de l'image dans la meme page. */
.portfolio-lightbox[hidden] { display: none; }
.portfolio-lightbox { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 32px; background: rgba(0,0,0,.9); backdrop-filter: blur(10px); }
.lightbox-content { max-width: min(1100px, 92vw); max-height: 90vh; margin: 0; text-align: center; }
.lightbox-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.lightbox-content figcaption { margin-top: 14px; color: #fff; font-size: .8rem; letter-spacing: .08em; }
.lightbox-description { max-width: 620px; margin: 7px auto 0; color: #c8c5bf; font-size: .82rem; }
.lightbox-close { position: absolute; top: 22px; right: 28px; border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 2.2rem; line-height: 1; }
body.lightbox-open { overflow: hidden; }
/* Mise en page des blocs a propos et appel a l'action. */
.about-layout { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(50px, 9vw, 130px); align-items: center; }
.about-image { min-height: 570px; background-position: center; }
.about-copy > p { color: #aaa7a0; }
.about-copy .eyebrow { color: #8d8a83; }
/* Bloc d'appel a l'action et pied de page. */
.narrow { max-width: 760px; text-align: center; }
.narrow > p { margin-right: auto; margin-left: auto; }
.cta-section h2 { margin-top: 0; }
.cta-section .button { margin-top: 34px; }
.site-footer { color: #92908b; background: var(--ink); border-top: 1px solid var(--dark-line); }
.footer-content { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0; font-size: .78rem; }
/* Structure commune des heroes des pages internes. */
.page-hero { min-height: 540px; display: flex; align-items: end; padding: 150px 0 82px; color: #fff; background-position: center; background-size: cover; }


/* Image de la page Services : couverture de la presentation des prestations. */
.page-hero-services { background-image: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.25)), url('../images/Service.webp'); }


/* Image de la page Portfolio : couverture de la galerie Pixelflow. */
.page-hero-portfolio { background-image: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.25)), url('../images/portfolio.webp'); }


/* Image de la page A propos : couverture de la presentation du studio. */
.page-hero-about { background-image: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.25)), url('../images/about.JPG'); }


/* Image de la page Contact : couverture de la prise de contact. */
.page-hero-contact { background-image: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.25)), url('../images/contact.jpeg'); }


/* Image de la page Reservation : couverture du formulaire de reservation. */
.page-hero-reservation { background-image: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.25)), url('../images/Reservation.webp'); }
.page-hero h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); }
.service-grid-wide { margin-bottom: 110px; }
.page-end { max-width: 600px; padding-top: 34px; border-top: 1px solid var(--line); }
.page-end h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
.portfolio-page-grid { grid-template-rows: repeat(3, 260px); }
.portfolio-page-grid .portfolio-feature { grid-row: span 2; }
/* Mise en page des informations et formulaires de contact. */
/* Formulaires de contact et de reservation. */
.contact-layout, .reservation-layout { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(48px, 10vw, 140px); align-items: start; }
.contact-layout h2, .reservation-layout h2 { font-size: clamp(2.7rem, 5vw, 5rem); }
.contact-details { margin-top: 64px; color: #73716c; }
.contact-details strong { color: var(--ink); font-size: .86rem; }
.contact-form { display: grid; gap: 9px; }
.contact-form label { margin-top: 13px; color: #5d5a55; font-size: .78rem; font-weight: 700; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; color: var(--ink); background: transparent; outline: 0; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--ink); }
.contact-form textarea { resize: vertical; }
.contact-form .button { width: fit-content; margin-top: 22px; border: 0; cursor: pointer; }
.form-intro { max-width: 420px; margin-top: 28px; color: #73716c; }

/* Boite de dialogue de confirmation apres reservation ou contact. */
.reservation-dialog { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(17,17,17,.72); backdrop-filter: blur(8px); animation: dialogFade .35s ease both; }
.reservation-dialog-card { position: relative; width: min(100%, 520px); padding: 54px 48px 46px; text-align: center; background: var(--paper); box-shadow: 0 24px 80px rgba(0,0,0,.3); animation: dialogRise .45s .08s ease both; }
.reservation-dialog-close { position: absolute; top: 15px; right: 18px; border: 0; color: #77736c; background: transparent; cursor: pointer; font-size: 1.7rem; line-height: 1; }
.success-mark { display: grid; width: 62px; height: 62px; margin: 0 auto 25px; place-items: center; border: 1px solid #b9cdbf; border-radius: 50%; color: #fff; background: var(--ink); }
.success-mark span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #fff; border-radius: 50%; font-size: .85rem; }
.reservation-dialog-card h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4rem); }
.reservation-dialog-card > p:not(.eyebrow) { max-width: 370px; margin: 24px auto 0; color: #73716c; font-size: .9rem; }
.reservation-dialog-action { margin-top: 28px; cursor: pointer; }
.reservation-alert { position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: 390px; padding: 17px 20px; color: #fff; background: #8f3f3f; box-shadow: 0 12px 35px rgba(0,0,0,.2); }
/* Animations de la boite de dialogue et du chargement du hero. */
@keyframes dialogFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialogRise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Apparition progressive activee par script.js. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
/* Ajustements pour les petits ecrans. */
@media (max-width: 760px) {
    .container { width: min(100% - 36px, 560px); }
    .site-nav { min-height: 76px; }
    .menu-toggle { display: block; }
    .main-menu { position: absolute; top: 76px; right: 18px; left: 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: rgba(17,17,17,.97); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
    .main-menu.is-open { display: flex; }
    .main-menu > a { padding: 12px 10px; }
    .main-menu .button { margin-top: 8px; text-align: center; }
    .hero { min-height: 680px; }
    h1 { font-size: clamp(3.3rem, 15vw, 5.5rem); }
    .section, .cta-section { padding: 82px 0; }
    .service-grid, .about-layout { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 240px); grid-auto-rows: 240px; }
    .portfolio-feature { grid-row: auto; }
    .about-image { min-height: 400px; }
    .page-hero { min-height: 470px; }
    .contact-layout, .reservation-layout { grid-template-columns: 1fr; gap: 54px; }
    .contact-details { margin-top: 42px; }
    .reservation-dialog-card { padding: 48px 24px 30px; }
    .split-heading { display: block; }
    .footer-content { flex-direction: column; padding: 24px 0; }
}
::selection { color: #fff; background: #77736a; }
