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

.sedgwick-ave-regular {
    font-family: "Sedgwick Ave", cursive;
    font-weight: 400;
    font-style: normal;
}

/* Police Inkfree (pour la galerie) */
@font-face {
    font-family: "Inkfree";
    src: url("Typo/Inkfree.ttf") format("truetype");
    font-display: swap;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background: #d9d9d9;
    font-family: "Sedgwick Ave", cursive;
    overflow-x: hidden;
    scroll-behavior: smooth;   /* défilement doux */
}

/* ── PAGE D'ACCUEIL ── */
#intro {
    position: relative;        /* scroller en dessous */
    min-height: 100vh;
    width: 100%;
    background:#751617;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* descendre vers la Biographie */
#intro-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Inkfree", cursive;
    font-size: clamp(18px, 2vw, 26px);
    color: #d9d9d9;
    text-decoration: none;
    text-align: center;
    opacity: 0;                /* révélé en fin d'animation */
    transition: opacity 0.6s ease;
}

#intro-scroll .intro-arrow {
    display: block;
    margin-top: 4px;
    font-size: 1.6em;
    animation: introBounce 1.5s ease-in-out infinite;
}

@keyframes introBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(10px); }
}

#intro-title {
    font-family:"Sedgwick Ave", cursive;
    font-size: clamp(48px, 10vw, 110px);
    color: #d9d9d9;
    opacity: 0;
    transform: translateY(30px);
    white-space: nowrap;
}

#intro-sub {
    font-size: clamp(12px, 2vw, 16px);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #d9d9d9;
    opacity: 0;
    transform: translateY(16px);
    margin-top: 12px;
}

#intro-photo {
    width: clamp(300px, 55vw, 620px);
    height: clamp(95px, 15vw, 180px);
    background: #d9d9d9;
    overflow: hidden;          /* coupe la photo */
    margin-top: 10px;
    /* état de départ pour l'animation */
    opacity: 0;
    transform: scaleX(0.15);
}

#intro-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;            /* remplit la bande en gardant les proportions */
    object-position: center 35%;  /* cadre */
}

/* ── BURGER (mobile) ── */
#burger
{
    display: none;         
    width: 30px;
    height: 22px;
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 100;
}

.bar
{
    width: 100%;
    height: 2px;
    background: #751617;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s;
}
.bar:nth-child(1)
{
    top: 0;
}

.bar:nth-child(2)
{
    top: 50%;
    transform: translateY(-50%);
}

.bar:nth-child(3)
{
    top: 100%;
    transform: translateY(-100%);
}

#burger.open .bar:nth-child(1)
{
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: #d9d9d9;
}

#burger.open .bar:nth-child(2)
{
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
    background: #d9d9d9;
}

#burger.open .bar:nth-child(3)
{
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    background: #d9d9d9;
}

/* ── LOGO ── */
#logo {
    position: fixed;
    top: 18px;
    left: 30px;
    z-index: 99;
}

#logo img {
    height: clamp(30px, 4vw, 45px);
    width: auto;
    display: block;
}

/* Logo clair */
#logo.menu-light img {
    filter: invert(0.85);   /* le noir devient ~#d9d9d9 */
}

/* ── MENU HORIZONTAL (ordinateur) ── */
#menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    padding: 22px 60px;
}

#menu ul {
    list-style: none;
    display: flex;          /* met les liens côte à côte = horizontal */
    gap: 45px;
}

#menu ul li a {
    font-family: "Inkfree", cursive;
    font-size: 1.4rem;
    color: #751617;
    text-decoration: none;
    transition: opacity 0.3s;
}

#menu ul li a:hover {
    opacity: 0.6;
}

/* Menu clair sur les sections à fond sombre (ex: Contact) */
#menu.menu-light ul li a {
    color: #d9d9d9;
}

/* Barres du burger claires sur les sections à fond sombre (mobile) */
#burger.menu-light .bar {
    background: #d9d9d9;
}

/* Masquer menu / logo / burger sur la page d'accueil */
#menu, #logo, #burger {
    transition: opacity 0.4s ease;
}
#menu.nav-hidden,
#logo.nav-hidden,
#burger.nav-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── MENU PLEIN ÉCRAN (mobile) ── */
@media (max-width: 768px) {
    #burger {
        display: block;
    }

    #menu {
        top: 0;
        left: 100%;             /* caché à droite, hors écran */
        right: auto;
        width: 100%;
        height: 100vh;
        padding: 0;
        background: #751617;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left 0.6s ease;
    }

    #menu ul {
        flex-direction: column; /* empilé verticalement sur mobile */
        gap: 30px;
        text-align: center;
    }

    #menu ul li a {
        font-family: "Inkfree", cursive;
        font-size: 2rem;
        color: #d9d9d9;
    }

    #menu.active {
        left: 0;                /* glisse à l'écran */
    }
}

.slide{
    width: 100%;
    min-height: 100vh;
}


/* ── PAGE BIOGRAPHIE ── */
#Biographie {
    background: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 6vw 50px;
}

.bio-wrap {
    position: relative;
    width: 100%;
    max-width: 1100px;
}

.bio-title {
    font-family: "Sedgwick Ave", cursive;
    font-size: clamp(38px, 6vw, 72px);
    color: #1a1a1a;
    text-align: left;
    white-space: nowrap;        /* titre sur une seule ligne */
    margin-bottom: 12px;        /* titre proche du texte */
}

.bio-content {
    display: flex;
    align-items: center;        /* titre + texte descendus, centrés verticalement */
    gap: 55px;
}

.bio-left {
    flex: 1;
    max-width: 620px;
}

/* le titre + le texte logés dans le coin formé par les 2 lignes */
.bio-textbox {
    width: fit-content;                         /* s'ajuste au titre d'une ligne */
    max-width: 100%;
    padding: 0 40px 30px 0;                     /* espace avant les lignes */
    border-right: 1px solid #751617;            /* ligne verticale */
    border-bottom: 1px solid #751617;           /* ligne horizontale */
}

.bio-text {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.7;
    color: #2a2a2a;
}

/* les « … » cliquables et la partie cachée du texte */
.bio-dots {
    cursor: pointer;
    color: #751617;
    font-weight: bold;
    padding: 0 2px;
    user-select: none;
}
.bio-dots:hover {
    opacity: 0.6;
}
.bio-extra {
    display: none;
}
.bio-text.expanded .bio-extra {
    display: inline;
}
.bio-text.expanded .bio-dots {
    display: none;
}

/* « réduire » pour revenir au texte caché */
.bio-less {
    cursor: pointer;
    color: #751617;
    font-weight: bold;
    white-space: nowrap;
    user-select: none;
}
.bio-less:hover {
    opacity: 0.6;
}

/* Vidéo */
.bio-play {
    margin-top: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #751617;
    color: #d9d9d9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.3s, opacity 0.3s;
}
.bio-play:hover {
    transform: scale(1.08);
    opacity: 0.9;
}
.bio-play span {
    margin-left: 3px;           /* centre le triangle */
}

.bio-photo {
    width: clamp(700px, 32vw, 440px);   /* Aggrandir Photo */
    height: auto;
    margin-left: auto;
    margin-right: -17vw;                 /* vers la droite */
    align-self: center;
    mix-blend-mode: multiply;           
}

.bio-quote {
    font-family: Inkfree, serif;
    width: 100%;
    text-align: center;                 /* centrée par rapport à la ligne */
    margin-top: 28px;
    font-size: clamp(16px, 1.6vw, 22px);
    color: #444;
}

/* ── BIOGRAPHIE sur mobile ── */
@media (max-width: 768px) {
    #Biographie {
        padding: 90px 6vw 50px;
    }
    .bio-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .bio-title {
        text-align: center;
        font-size: clamp(34px, 11vw, 56px);
    }
    .bio-left {
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .bio-photo {
        width: clamp(220px, 65vw, 300px);
        margin-left: 0;
        margin-right: 0;
    }
    .bio-quote {
        margin-top: 22px;
    }
    /* mobile sans ligne */
    .bio-textbox {
        width: 100%;
        padding: 0;
        border-right: none;
        border-bottom: none;
        text-align: center;
    }
}

/* ── POP-UP (MODAL) ── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}
.modal.open {
    display: flex;
}

.modal-box {
    position: relative;
    background: #d9d9d9;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 45px 40px;
    border-radius: 6px;
}

.modal-box h3 {
    font-family: "Sedgwick Ave", cursive;
    font-size: 2rem;
    color: #751617;
    margin-bottom: 20px;
}

.modal-box p {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #222;
    margin-bottom: 15px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 22px;
    font-size: 2rem;
    line-height: 1;
    color: #751617;
    cursor: pointer;
}

/* pop-up vidéo */
.video-box {
    max-width: 900px;
    padding: 0;
    background: #000;
    overflow: hidden;
}
.video-box video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
}
.video-box .modal-close {
    top: 8px;
    right: 16px;
    color: #fff;
    z-index: 2;
}

/* ── BIOGRAPHIE sur mobile ── */
@media (max-width: 768px) {
    .bio-content {
        flex-direction: column;
    }
    .bio-title {
        text-align: center;
    }
    .bio-text {
        max-width: none;
    }
    .bio-wrap::before,
    .bio-wrap::after {
        display: none;
    }
}

/* ── PAGE PROJET (timeline) ── */
#Projet {
    background: #d9d9d9;
    padding: 120px 6vw 70px;
}

.proj-title {
    font-family: "Inkfree", cursive;
    font-size: clamp(36px, 6vw, 80px);
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 55px;
}

/* axe central de la timeline */
.proj-grid {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.proj-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(26, 26, 26, 0.25);   /* axe neutre, pas de rouge */
}

.proj-item {
    position: relative;
    width: 50%;
    margin-bottom: 55px;
}

/* projets alternés gauche / droite */
.proj-item:nth-child(odd) {
    left: 0;
    padding-right: 45px;
    text-align: right;
}
.proj-item:nth-child(even) {
    left: 50%;
    padding-left: 45px;
    text-align: left;
}

/* pastille sur l'axe */
.proj-item::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #751617;
}
.proj-item:nth-child(odd)::after  { right: -8px; }
.proj-item:nth-child(even)::after { left: -8px; }

.proj-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border-radius: 16px;        /* bords arrondis */
    transition: transform 0.4s ease;
}
.proj-item img:hover {
    transform: scale(1.05);
}

.proj-item figcaption {
    font-family: "Inkfree", cursive;
    margin-top: 14px;
    color: #1a1a1a;
    font-size: 1.2rem;
}
.proj-item figcaption span {
    display: block;
    margin-top: 2px;
    font-size: 1rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    /* timeline sur un seul côté en mobile */
    .proj-grid::before {
        left: 7px;
    }
    .proj-item,
    .proj-item:nth-child(odd),
    .proj-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 35px;
        padding-right: 0;
        text-align: left;
    }
    .proj-item:nth-child(odd)::after,
    .proj-item:nth-child(even)::after {
        left: 1px;
    }
}

/* ── PAGE GALERIE ── */
#Galerie {
    background: #d9d9d9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 35px;
    overflow: hidden;
}

.gal-title {
    font-family: "Inkfree", cursive;
    font-size: clamp(36px, 6vw, 80px);
    text-align: center;
    color: #1a1a1a;
}

.gal-viewport {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;          /* place pour l'agrandissement au survol */
}

.gal-track {
    display: flex;
    gap: 45px;
    width: max-content;
    animation: gal-scroll 35s linear infinite;
}

/* défilement de gauche vers la droite */
@keyframes gal-scroll {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* pause quand la souris est sur le carrousel */
.gal-track:hover {
    animation-play-state: paused;
}

.gal-item {
    flex: 0 0 auto;
    text-align: center;
}

.gal-item img {
    width: clamp(240px, 30vw, 380px);    /* Augmenter carré*/
    height: clamp(240px, 30vw, 380px);
    display: block;
    object-fit: cover;
    cursor: pointer;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

/* survol */
.gal-item img:hover {
    transform: scale(1.15);
}

.gal-item figcaption {
    font-family: "Inkfree", cursive;
    margin-top: 14px;
    font-size: 1.3rem;
    color: #1a1a1a;
}

/* ── LIGHTBOX ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 250;
    padding: 30px;
}
.lightbox.open {
    display: flex;
}

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

.lightbox p {
    font-family: "Inkfree", cursive;
    color: #d9d9d9;
    margin-top: 18px;
    font-size: 1.5rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 32px;
    font-size: 2.6rem;
    line-height: 1;
    color: #d9d9d9;
    cursor: pointer;
}

/* ── PAGE CONTACT ── */
#Contact {
    background: #751617;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 6vw 70px;
}

.contact-wrap {
    width: 100%;
    max-width: 1100px;
    display: flex;
    gap: 60px;
}

.contact-left {
    flex: 1;
    border-right: 1px solid rgba(240, 236, 228, 0.25);
    padding-right: 50px;
}
.contact-right {
    flex: 1;
}

.contact-h {
    font-family: "Inkfree", cursive;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f0ece4;
    font-size: clamp(20px, 2.4vw, 30px);
    margin-bottom: 38px;
}

.contact-info {
    list-style: none;
}
.contact-info li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f0ece4;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    margin-bottom: 22px;
}
.contact-info svg {
    width: 22px;
    height: 22px;
    fill: #f0ece4;
    flex: 0 0 auto;
}

.contact-quote {
    margin-top: 45px;
    color: rgba(240, 236, 228, 0.85);
}
.contact-quote p {
    font-family: "Sedgwick Ave", cursive;
    font-size: 1.1rem;
}
.contact-quote span {
    font-family: "Sedgwick Ave", cursive;
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
}

.contact-title {
    font-family: "Inkfree", cursive;
    font-size: clamp(36px, 5vw, 70px);
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 45px;
}

.field {
    margin-bottom: 35px;
}
.field label {
    display: block;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.field input,
.field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #1a1a1a;
    padding: 8px 0;
    color: #f0ece4;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    outline: none;
    resize: vertical;
}
.field input:focus,
.field textarea:focus {
    border-bottom-color: #f0ece4;
}

.contact-submit {
    display: block;
    margin-left: auto;
    background: #111;
    color: #f0ece4;
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    font-family: "Inkfree", cursive;
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.contact-submit:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .contact-wrap {
        flex-direction: column;
        gap: 45px;
    }

    .contact-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(240, 236, 228, 0.25);
        padding-bottom: 35px;
    }
    .contact-title,
    .contact-h {
        text-align: center;
    }
}
/* ── FOOTER ── */
#footer {
    background: #1a1a1a;
    color: #d9d9d9;
    padding: 45px 6vw;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    width: 90px;
    height: auto;
    border-radius: 12px;
    background: #fff;            /* Logo sur font sombre */
    padding: 7px;
    flex: 0 0 auto;
}

.footer-name {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: bold;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 10px;
}

.footer-desc {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(217, 217, 217, 0.85);
    max-width: 600px;
}

/* ── FOOTER mobile ── */
@media (max-width: 768px)
{
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-desc {
        max-width: none;
    }

}
