/*==================================================
    VARIABLES
==================================================*/

:root{
    --color-background:#0b0b0b;
    --color-surface:#141414;
    --color-surface-light:#1c1c1c;
    --color-text:#f5f5f5;
    --color-text-secondary:#b9b9b9;
    --color-border:rgba(255,255,255,.08);
    --container-width:min(1400px,90%);
    --section-spacing:140px;
    --radius:14px;
    --transition:.35s ease;
}

/*==================================================
    RESET
==================================================*/

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

html{

    scroll-behavior:smooth;
}

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

/*==================================================
    ÉLÉMENTS GÉNÉRAUX
==================================================*/

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

a{
    color:inherit;
    text-decoration:none;
}

button,
input,
textarea{

    font:inherit;
}

button{
    cursor:pointer;
    border:none;
}

textarea{
    resize:vertical;
    min-height:180px;
}

/*==================================================
    CONTENEURS
==================================================*/

.container{
    width:var(--container-width);
    margin:0 auto;
}

main{
    overflow:hidden;
}

/*==================================================
    TYPOGRAPHIE
==================================================*/

.section-label{
    color:var(--color-text-secondary);
    text-transform:uppercase;
    letter-spacing:.35em;
    font-size:.75rem;
    margin-bottom:18px;
}

h2{
    font-family:"Cormorant Garamond",serif;
    font-size:clamp(2.5rem,5vw,4.5rem);
    font-weight:400;
    line-height:1.1;
    margin-bottom:30px;
}

p{
    color:var(--color-text-secondary);
    margin-bottom:20px;
}

/*==================================================
    BOUTONS
==================================================*/

.button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:16px 34px;
    background:white;
    color:black;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase;
    border-radius:999px;
    transition:
        transform var(--transition),
        background var(--transition);
}

.button:hover{
    transform:translateY(-2px);
    background:#e8e8e8;
}

/*==================================================
    SECTIONS
==================================================*/

section{
    padding:var(--section-spacing) 0;
}

/*==================================================
    HERO
==================================================*/

#hero{
    position:relative;
    height:100vh;
    min-height:800px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    padding:0;
}

.hero-slideshow{
    position:absolute;
    inset:0;
    z-index:1;
}

.hero-slide{
    position:absolute;
    inset:0;
    opacity:0;
    overflow:hidden;
    transition:opacity 2s ease;
}

.hero-slide.active{
    opacity:1;
}

/* Fond agrandi et flouté */

.hero-slide-background{
    position:absolute;
    inset:-40px;
    background-size:cover;
    background-position:center;
    filter:blur(24px);
    transform:scale(1.08);
    opacity:.65;
}

/* Photo portrait nette */

.hero-slide-foreground{
    position:absolute;
    inset:0;
    background-size:contain;
    background-position:center;
    background-repeat:no-repeat;
    z-index:1;
}


.hero-overlay{
    position:absolute;
    inset:0;
    z-index:2;
    /*background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.55),
            rgba(0,0,0,.35),
            rgba(0,0,0,.75)
        );*/
}

.hero-content{
    position:relative;
    z-index:3;
    text-align:center;
    width:90%;
    max-width:900px;
}

.hero-content h2{
    font-size:clamp(4rem,9vw,7rem);
    margin-bottom:20px;
    color:white;
}

.hero-content p{
    max-width:700px;
    margin:0 auto;
    font-size:1.15rem;
    color:#f2f2f2;
}

/*==================================================
    SCROLL INDICATOR
==================================================*/

.scroll-indicator{
    position:absolute;
    bottom:40px;
    left:50%;
    transform:translateX(-50%);
    z-index:5;
    font-size:.75rem;
    letter-spacing:.35em;
    text-transform:uppercase;
    color:white;
    opacity:.75;
}
/*==================================================
    LIGHTBOX
==================================================*/

#lightbox{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.95);
    z-index:5000;
    opacity:0;
    transition:opacity .3s ease;
}

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

.lightbox-content{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    padding:
        max(72px, env(safe-area-inset-top))
        72px
        max(36px, env(safe-area-inset-bottom));
    box-sizing:border-box;
}

#lightbox-image{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:var(--radius);
}

.lightbox-image,
.lightbox img{

    position:relative;

    z-index:10001;

}

.lightbox-image,
.lightbox-content img{
    display:block;
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    user-select:none;
    -webkit-user-drag:none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next{
    position:absolute;
    display:flex;
    align-items:center;
    justify-content:center;
    width:52px;
    height:52px;
    padding:0;
    color:#fff;
    background:rgba(0, 0, 0, .45);
    border:0;
    border-radius:50%;
    font-size:2rem;
    line-height:1;
    cursor:pointer;
    z-index:10003;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
}

.lightbox-close *,
.lightbox-prev *,
.lightbox-next *{
    pointer-events:none;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{
    background:rgba(255,255,255,.18);
    transform:scale(1.05);
}

.lightbox-close{
    top:max(16px, env(safe-area-inset-top));
    right:max(16px, env(safe-area-inset-right));
}

.lightbox-prev,
.lightbox-next{

    top:50%;

    transform:translateY(-50%);

}

.lightbox-prev{

    left:max(12px, env(safe-area-inset-left));

}

.lightbox-next{

    right:max(12px, env(safe-area-inset-right));

}

.lightbox-prev:hover,
.lightbox-next:hover{
    transform:translateY(-50%) scale(1.05);
}

.lightbox-counter{
    position:absolute;
    bottom:-45px;
    left:50%;
    transform:translateX(-50%);
    color:white;
    font-size:.9rem;
    letter-spacing:.15em;
}

/*==================================================
    SÉLECTION DE TEXTE
==================================================*/

::selection{
    background:white;
    color:black;
}

/*==================================================
    BARRE DE DÉFILEMENT
==================================================*/

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:#3b3b3b;
    border-radius:999px;
}

::-webkit-scrollbar-thumb:hover{
    background:#555;
}

/*==================================================
    UTILITAIRES
==================================================*/

.hidden{
    display:none !important;
}

#error-message{
    margin-top:24px;
    color:#ffb4b4;
}

.button:disabled{
    cursor:not-allowed;
    opacity:.65;
    transform:none;
}

/*==================================================
    ABOUT ET CONTACT — CORRECTION
==================================================*/

#about,
#contact {
    padding: var(--section-spacing) 0;
}

#about {
    background: var(--color-background);
}

#contact {
    background: var(--color-surface);
}

/* Mise en page en deux colonnes */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 90px;
    align-items: center;
}

.split > * {
    min-width: 0;
}

/* Texte */

#about .text,
#contact .text {
    width: 100%;
}

/* Photo À propos */

#about .image {
    width: 100%;
    max-width: 600px;
    justify-self: end;
    overflow: hidden;
    border-radius: var(--radius);
}

#about .image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 750px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
}

#about .image:hover img {
    transform: scale(1.04);
}

/* Carte du formulaire */

.contact-card {
    width: 100%;
    padding: 40px;
    background: var(--color-surface-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

/* Champs sur des lignes séparées */

.contact-card form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.contact-card input,
.contact-card textarea,
.contact-card button {
    width: 100%;
}

.contact-card input,
.contact-card textarea {
    display: block;
    padding: 16px 18px;
    background: #111;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.contact-card textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
    color: #8d8d8d;
}

.contact-card input:focus,
.contact-card textarea:focus {
    outline: none;
    background: #181818;
    border-color: rgba(255, 255, 255, 0.35);
}

#success-message,
#error-message {
    margin-top: 24px;
}

/*==================================================
    FOOTER
==================================================*/

footer{
    padding:40px 0;
    border-top:1px solid var(--color-border);
    background:var(--color-background);
}

.footer-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

.footer-left{
    flex:1;
}

.footer-left p{
    margin:0;
    color:var(--color-text-secondary);
}

.footer-right{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:24px;
}

.footer-right a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border-radius:50%;
    color:var(--color-text-secondary);
    transition:
        color .3s ease,
        transform .3s ease,
        background .3s ease;
}

.footer-right a:hover{
    color:white;
    background:rgba(255,255,255,.08);
    transform:translateY(-2px);
}

.footer-right i{
    font-size:1.1rem;
}

/*==================================================
    HONEYPOT ANTI-SPAM
==================================================*/

.honeypot-field{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip-path: inset(50%);
}

.contact-details{
    display:grid;
    gap:24px;
    margin-top:36px;
    font-size: 0.9rem;
}

.contact-detail{

    border-bottom:
        1px solid rgba(255,255,255,.12);

}

.contact-detail-label{

    display:block;

    margin-bottom:8px;

    font-size:.75rem;

    letter-spacing:.14em;

    text-transform:uppercase;

    opacity:.6;

}

.contact-detail a,
.contact-detail p{

    color:inherit;

    font-size:0.9rem;

    line-height:1.6;

    text-decoration:none;

}