/* ============================================================
   PORTFOLIO LEA MOUA — Style principal
   Couleurs : #AA261C (rouge) / #FBFBFB (blanc) / #0F0B15 (noir)
   Typos : Medusa / Lorimer No 2 Condensed / Pixel Twist
   ============================================================ */

/* === FONTS (3 polices uniquement) === */
@font-face {
    font-family: 'Medusa';
    src: url('../fonts/vraie-medusa.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lorimer';
    src: url('../fonts/vraie-lorimer.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pixel';
    src: url('../fonts/slkscr.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font classes */
.font-medusa   { font-family: 'Medusa', 'Georgia', serif; }
.font-lorimer  { font-family: 'Lorimer', 'Helvetica Neue', Arial, sans-serif; }
.font-pixel    { font-family: 'Pixel', 'Courier New', monospace; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.85em; }

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: 'Lorimer', 'Helvetica Neue', Arial, sans-serif;
    background-color: #FBFBFB;
    color: #0F0B15;
    line-height: 1.4;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === PAPER TEXTURE (réservé à la lettre about) === */
.paper-texture {
    position: relative;
}

.paper-letter {
    background-color: #FBFBFB;
    background-image: url('../img/papier_fond.png');
    background-size: 600px;
    background-repeat: repeat;
}

/* === BORDER (style moodboard) === */
.dashed-border {
    border: 1px solid #0F0B15;
    position: relative;
}

/* === DECORATIONS (assets svg disposés aléatoirement) === */
.deco {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    opacity: 0.92;
}

.deco--top-right { top: 40px; right: 60px; }
.deco--top-left  { top: 40px; left: 60px; }
.deco--bottom-right { bottom: 40px; right: 60px; }
.deco--bottom-left  { bottom: 40px; left: 60px; }

@media (max-width: 768px) { .deco { display: none; } }


/* === STICKY HEADER (seule navbar) === */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #FBFBFB;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.sticky-header.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
}

/* Logo (image) — gauche */
.sticky-header__logo {
    display: inline-flex;
    align-items: center;
}

.sticky-header__logo-img {
    height: 48px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .sticky-header__logo-img { height: 36px; }
}

.sticky-header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.sticky-header__nav a {
    font-family: 'Lorimer', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #AA261C;
    transition: color 0.2s;
}

.sticky-header__nav a:hover {
    color: #0F0B15;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

/* Le bouton contacter ne se souligne pas (c'est un bouton plein) */
.sticky-header__nav a.btn--contact:hover { text-decoration: none; }

.sticky-header__nav a.active {
    color: #0F0B15;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

.sticky-header__nav a.btn--contact.active {
    text-decoration: none;
    background: #0F0B15;
}

/* Sticky dropdown */
.sticky-header__dropdown { position: relative; }

.sticky-header__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FBFBFB;
    border: 1px solid #0F0B15;
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    margin-top: 8px;
}

.sticky-header__dropdown:hover .sticky-header__dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.sticky-header__dropdown-menu a {
    display: block;
    padding: 6px 16px;
    font-size: 0.8rem;
}

.sticky-header__dropdown-menu a:hover {
    background: #0F0B15;
    color: #FBFBFB;
}

/* Contact button */
.btn--contact {
    background: #AA261C;
    color: #FBFBFB !important;
    padding: 8px 20px;
    border: none;
    transition: background 0.3s;
}

.btn--contact:hover { background: #0F0B15; }

/* === PAGE LANDING (zone d'entrée 100vh, vide sauf titre + bg + visuel) === */
.page-landing {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 80px;
    overflow: hidden;
}

.page-landing__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-landing__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 11, 21, 0.25);
}

.page-landing__visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.page-landing__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-landing__content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.page-landing__title {
    font-family: 'Lorimer', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #AA261C;
    line-height: 1.05;
    font-style: italic;
}

/* Ombre portée quand il y a une image de fond (lisibilité) */
.page-landing--with-bg .page-landing__title,
.page-landing--with-bg .contact-title {
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* === COULEUR DES TITRES DE PAGE (choisie depuis le backend) ===
   Tout le titre (1ère lettre incluse) suit le choix. */
.title-color--dark .section-title__initial,
.title-color--dark .section-title__rest { color: #0F0B15; }

.title-color--white .section-title__initial,
.title-color--white .section-title__rest { color: #FBFBFB; }

.page-landing__subtitle {
    margin-top: 16px;
    font-size: 1.05rem;
    color: #FBFBFB;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-landing:not(.page-landing--with-bg) .page-landing__subtitle {
    color: #0F0B15;
}

/* Texte d'intro centré au-dessus de la grille (archives) */
.page-intro {
    text-align: center;
    max-width: 700px;
    margin: 40px auto 20px;
    padding: 0 24px;
    font-size: 1rem;
    line-height: 1.5;
    color: #0F0B15;
}

/* Bottom mosaic (zone configurable backend, format natif de l'image) */
.bottom-mosaic {
    width: 100%;
    margin-top: 60px;
    padding: 0 0 60px;
}

.bottom-mosaic__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Si l'inner contient une image : pas de fond ni bordure */
.bottom-mosaic__inner:has(img) {
    background: transparent;
    border: none;
}

/* Si l'inner est vide (placeholder) : bordure légère et hauteur min */
.bottom-mosaic__inner:not(:has(img)) {
    background: rgba(170, 38, 28, 0.04);
    border: 1px solid rgba(170, 38, 28, 0.25);
    min-height: 200px;
}

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

.bottom-mosaic__placeholder {
    color: #AA261C;
    opacity: 0.5;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .page-landing { padding: 0 40px; }
    .bottom-mosaic { padding: 0 40px 40px; }
}

/* === HERO SECTION (welcome landing index.php) === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 60px;
    position: relative;
    background: #FBFBFB;
}

.hero__content {
    width: 100%;
    max-width: 1400px;
    text-align: center;
    padding: 0 20px;
}

.hero__title {
    margin-bottom: 80px;
    line-height: 1;
}

.hero__title-welcome {
    display: block;
    font-family: 'Lorimer', sans-serif;
    font-style: italic;
    font-size: clamp(3rem, 8vw, 6.5rem);
    color: #0F0B15;
    letter-spacing: -0.01em;
    margin-bottom: -0.2em;
}

.hero__title-portfolio {
    display: inline-block;
    font-size: clamp(5rem, 13vw, 11rem);
    color: #AA261C;
    font-style: italic;
    letter-spacing: -0.02em;
}

.hero__year {
    font-family: 'Lorimer', sans-serif;
    font-size: 0.22em;
    font-style: normal;
    vertical-align: baseline;
    margin-left: 0.15em;
    color: #AA261C;
}

.hero__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    border-top: 1px solid rgba(15, 11, 21, 0.15);
    padding-top: 16px;
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

.hero__info-left,
.hero__info-center,
.hero__info-right {
    flex: 1;
}

.hero__detail {
    font-size: 0.95rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__role {
    font-size: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

.hero__info-right { text-align: right; }
.hero__info-left { text-align: left; }

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.4;
}

.hero__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

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

.hero__content { position: relative; z-index: 1; }
.hero__info { z-index: 1; }

/* === HOME HERO (image hero accueil après scroll) === */
.home-hero {
    position: relative;
    width: 100%;
    padding: 0;
    margin-bottom: 0;
}

.home-hero__img,
.home-hero__placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #f0eeec;
}

.home-hero__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero__caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

/* Légende blanche (par défaut) — sur image foncée */
.home-hero__caption--light {
    color: #FBFBFB;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Légende noire — sur image claire */
.home-hero__caption--dark {
    color: #0F0B15;
    text-shadow: none;
}

.home-hero__caption p {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .home-hero { padding: 0; }
    .home-hero__caption { left: 16px; bottom: 12px; }
}

/* === PLACEHOLDER (éléments en attente) === */
.placeholder-text {
    color: #AA261C;
    opacity: 0.6;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

/* === SECTION CITATION === */
.quote-section {
    padding: 80px 60px;
}

.quote-section__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.quote-section__images {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.quote-image-placeholder {
    width: 200px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(170, 38, 28, 0.05);
}

.quote-section__text {
    font-size: clamp(1.4rem, 3vw, 1.3rem);

    font-style: italic;
    line-height: 1.5;
    color: #0F0B15;
}

.quote-section__text .font-medusa {
    font-style: italic;
}

.quote-section__text--centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* === SECTION TITLE (mixed typo) === */
.section-title {
    font-family: 'Lorimer', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 40px;
    color: #AA261C;
    position: relative;
}

.section-title__initial {
    font-size: 1.15em;
    font-style: italic;
    margin-right: 0.05em;
}

.section-title__rest {
    font-family: 'Lorimer', sans-serif;
}

/* === FEATURED PROJECTS === */
.featured-projects {
    padding: 80px 0;
    position: relative;
}

/* === PROJECTS GRID === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
}

.projects-grid--full {
    padding: 0;
}

.project-card {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 16/10;
    background: #f0eeec;
}

.project-card--full {
    aspect-ratio: 16/9;
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.project-card:hover .project-card__img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.project-card__placeholder {
    width: 100%;
    height: 100%;
    background: #f0eeec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card__placeholder-inner {
    text-align: center;
    color: #0F0B15;
}

.project-card__placeholder-inner .font-medusa {
    display: block;
    font-size: 2rem;
    color: #AA261C;
    margin-bottom: 8px;
}

.project-card__placeholder-inner .font-pixel {
    color: #0F0B15;
    opacity: 0.5;
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    padding: 30px;
    background: rgba(15, 11, 21, 0.55);
    color: #FBFBFB;
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__title {
    font-family: 'Lorimer', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.1;
    margin: 0 0 14px;
    color: #FBFBFB;
}

.project-card__tags-line {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    margin: 0 0 10px;
    color: #FBFBFB;
}

.project-card__year {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin: 0;
    opacity: 0.85;
}

/* legacy : conserver mais inutilisé */
.project-card__meta { display: none; }
.project-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
    background: rgba(170, 38, 28, 0.8);
    color: #FBFBFB;
    padding: 4px 12px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.tag--large {
    padding: 6px 16px;
    font-size: 0.75rem;
}

/* === STATS (bande rouge pleine largeur) === */
.stats-section {
    padding: 50px 80px;
    background: #AA261C;
    color: #FBFBFB;
    position: relative;
    z-index: 1;
}

.stats-section--about {
    background: #AA261C;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 0;
    border: none !important;
    flex: 1;
    background: transparent;
}

.stat-card__number {
    display: block;
    font-family: 'Lorimer', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    margin-bottom: 6px;
    color: #FBFBFB;
}

.stat-card__label {
    color: #FBFBFB;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}

.stat-card--large { padding: 40px 50px; }

.stat-card--large .stat-card__number {
    font-size: clamp(3rem, 6vw, 5rem);
}

/* === MARQUEE BAND === */
.marquee-band {
    overflow: hidden;
    background: #AA261C;
    padding: 14px 0;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.marquee-text {
    font-size: 1.2rem;
    color: #FBFBFB;
    padding: 0 8px;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === FOOTER === */
.site-footer {
    background: #FBFBFB;
    color: #AA261C;
    border-top: 1px solid rgba(15, 11, 21, 0.15);
    position: relative;
    height: 36px;
    flex-shrink: 0;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    line-height: 1;
    height: 100%;
}

.site-footer__text {
    color: #AA261C;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.site-footer__links {
    display: flex;
    gap: 24px;
}

.site-footer__links a {
    color: #AA261C;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__links a:hover {
    color: #0F0B15;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .site-footer__inner { padding: 0 24px; }
}

/* === ABOUT — CITATION (au-dessus du board) === */
.about-quote {
    text-align: center;
    padding: 40px 80px 20px;
}

.about-quote p {
    color: #AA261C;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
}

/* === ABOUT BOARD (texte mosaïque à gauche + 3 photos à droite) === */
.about-board {
    position: relative;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: start;
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 80px 60px;
}

/* Mosaïque colonne gauche — 12 sous-colonnes, cartes de tailles variables */
.about-board__sections {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 16px;
    row-gap: 28px;
    align-items: start;
}

.about-card {
    /* Texture papier : taille fixe + position variable par carte
       pour éviter l'effet "même image", et cadrage bas pour éviter
       la zone supérieure plus sombre de la photo. */
    background-image: url('../img/papier_fond.png');
    background-repeat: no-repeat;
    background-size: 900px auto;
    background-position: 50% 60%;
    background-color: #FBFBFB;
    padding: 18px 22px;
    box-shadow: 2px 3px 12px rgba(15, 11, 21, 0.05);
    position: relative;
}

/* Décoration SVG (croix rouge) dans les coins des cartes */
.about-card__deco {
    position: absolute;
    width: 28px;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.about-card__deco--br { bottom: -14px; right: -14px; }
.about-card__deco--tl { top: -14px; left: -14px; }

/* Chaque carte affiche une zone différente de la texture (jamais le haut sombre) */
.about-card--bio       { background-position: 8% 48%;  }
.about-card--parcours  { background-position: 72% 62%; }
.about-card--softwares { background-position: 25% 88%; }
.about-card--contact   { background-position: 88% 52%; }
.about-card--cv        { background-position: 45% 78%; }

.about-card__title {
    color: #AA261C;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.about-card__body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #0F0B15;
}

.about-card__body ul,
.about-card__body ol {
    padding-left: 16px;
    margin: 0;
}

/* Positions mosaïque — rangées explicites */
.about-card--bio       { grid-column: 1 / 13; grid-row: 1; }
.about-card--parcours  { grid-column: 2 / 10; grid-row: 2; }
.about-card--softwares { grid-column: 2 / 6;  grid-row: 3 / span 2; }
.about-card--contact   { grid-column: 6 / 11; grid-row: 3; align-self: start; }
.about-card--cv        {
    grid-column: 7 / 10;
    grid-row: 4;
    align-self: start;
    padding: 12px 20px;
}

.about-card--cv .about-card__title { margin-bottom: 0; }

/* Titre "MON CV" cliquable */
.about-card__title--link {
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.about-card__title--link:hover {
    color: #0F0B15;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Mosaïque 3 photos à droite (collage décalé) */
.about-board__photos {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 30px;
    position: relative;
}

.about-photo {
    overflow: hidden;
    background: #f0eeec;
    box-shadow: 2px 4px 16px rgba(15, 11, 21, 0.12);
}

.about-photo img,
.about-photo__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo 1 : street, en haut à gauche du bloc */
.about-photo--1 {
    grid-column: 1 / 8;
    grid-row: 3 / 13;
    z-index: 2;
}

/* Photo 2 : portrait vertical, grande, à droite */
.about-photo--2 {
    grid-column: 8 / 13;
    grid-row: 1 / 14;
    z-index: 1;
}

/* Photo 3 : street, en bas, décalée */
.about-photo--3 {
    grid-column: 2 / 9;
    grid-row: 12 / 22;
    z-index: 3;
}

.about-photos-credit {
    grid-column: 8 / 13;
    grid-row: 14;
    text-align: right;
    font-size: 0.95rem;
    font-style: italic;
    color: #0F0B15;
    opacity: 0.7;
    margin-top: 10px;
}

.about-photo__placeholder {
    width: 100%;
    height: 100%;
    background: rgba(170, 38, 28, 0.05);
}

@media (max-width: 900px) {
    .about-board {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 40px 40px;
    }
    .about-quote { padding: 30px 40px 0; }
    /* Sections en colonne simple sur mobile */
    .about-board__sections { grid-template-columns: 1fr; }
    .about-card--bio,
    .about-card--parcours,
    .about-card--softwares,
    .about-card--contact,
    .about-card--cv {
        grid-column: 1;
        grid-row: auto;
    }
    /* Photos en pile simple sur mobile */
    .about-board__photos {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 12px;
    }
    .about-photo--1 { grid-column: 1; grid-row: auto; aspect-ratio: 4/3; }
    .about-photo--2 { grid-column: 2; grid-row: auto; aspect-ratio: 3/4; }
    .about-photo--3 { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16/9; }
    .about-photos-credit { grid-column: 1 / -1; grid-row: auto; }
}

/* === SKILLS === */
.skills-section {
    padding: 80px 60px;
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-card {
    padding: 30px;
    background: #FBFBFB;
    transition: transform 0.3s ease;
    box-shadow: 3px 4px 12px rgba(15, 11, 21, 0.08);
}

.skill-card:hover { transform: translateY(-4px) rotate(-1deg); }

.skill-card__icon {
    font-size: 2.5rem;
    color: #AA261C;
    margin-bottom: 12px;
}

.skill-card__name {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.skill-card__years {
    color: #AA261C;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.skill-card__desc {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.5;
}

/* === PROJECTS PAGE === */
.projects-hero {
    padding: 120px 60px 60px;
    text-align: center;
}

.projects-hero__inner {
    max-width: 800px;
    margin: 0 auto;
}

.projects-hero__visual {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(170, 38, 28, 0.05);
    margin-bottom: 40px;
}

.projects-hero__title {
    font-family: 'Lorimer', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #AA261C;
    margin-bottom: 30px;
}

.projects-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 30px 0;
    color: #AA261C;
}

.filter-btn {
    padding: 0 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
    text-decoration: none;
    color: #AA261C;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    position: relative;
    opacity: 0.55;
}

.filter-btn:not(:last-child)::after {
    content: '/';
    position: absolute;
    right: -5px;
    color: #AA261C;
    opacity: 0.4;
}

.filter-btn:hover,
.filter-btn--active {
    opacity: 1;
    color: #AA261C;
}

.filter-btn:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.filter-btn--active {
    font-style: normal;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.projects-grid-section { padding: 0; }

.projects-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    font-size: 1.1rem;
    opacity: 0.6;
}

/* === PROJECT DETAIL === */
.project-detail {
    padding: 80px 0 40px;
    position: relative;
}

.project-detail__inner {
    width: 100%;
    margin: 0 auto;
}

/* Texte (titre, meta, back) contraint, description pleine largeur */
.project-detail__back,
.project-detail__title,
.project-detail__meta {
    max-width: 1200px;
    padding-left: 60px;
    padding-right: 60px;
    margin-left: auto;
    margin-right: auto;
}

.project-detail__description {
    padding-left: 40px;
    padding-right: 40px;
}

.project-detail__back {
    display: inline-block;
    margin-bottom: 40px;
    color: #AA261C;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s;
}

.project-detail__back:hover { opacity: 0.7; }

.project-detail__title {
    font-family: 'Lorimer', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #AA261C;
    margin-bottom: 8px;
    text-align: center;
}

.project-detail__meta {
    display: block;
    margin-bottom: 40px;
    color: #0F0B15;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
}

/* Description en une seule colonne */
.project-detail__description {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 50px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.project-detail__description p { margin-bottom: 0.8em; }

/* Video embed responsive (hero + gallery) */
.video-embed {
    position: relative;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Vidéo principale : mêmes marges que le contenu texte (titre, meta) */
.project-detail__main-video {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 60px;
}

.project-detail__main-video .video-embed {
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    .project-detail__main-video { padding: 0 24px; }
}

/* Médias projet en mosaïque (1 grande / 2 côte à côte / répété), edge-to-edge */
.project-detail__media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 40px;
}

.media-item {
    overflow: hidden;
    background: #f0eeec;
}

.media-item--full {
    grid-column: 1 / -1;
}

.media-item--half {
    aspect-ratio: 4/3;
}

.media-item--full:not(.video-embed) {
    aspect-ratio: 16/9;
}

.media-item.video-embed {
    aspect-ratio: 16/9;
}

.media-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .project-detail__media { grid-template-columns: 1fr; }
    .media-item--half { grid-column: 1 / -1; }
}

.media-item__img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0eeec;
}

.gallery-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-item__img {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0eeec;
}

/* Project navigation */
.project-nav {
    border-top: 2px solid #0F0B15;
    padding: 40px 60px;
}

.project-nav__inner {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.project-nav__link {
    transition: color 0.2s;
}

.project-nav__link:hover {
    color: #AA261C;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.project-nav__link .font-pixel {
    display: block;
    margin-bottom: 4px;
}

.project-nav__link .font-medusa {
    font-size: 1.4rem;
}

.project-nav__link--next { text-align: right; }

/* === ARCHIVES === */
.archives-hero {
    padding: 120px 60px 60px;
    text-align: center;
}

.archives-hero__inner {
    max-width: 600px;
    margin: 0 auto;
}

.archives-hero__visual {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(170, 38, 28, 0.05);
    margin-bottom: 30px;
}

.archives-hero__title {
    font-family: 'Lorimer', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #AA261C;
}

.project-card--archive .project-card__placeholder--archive {
    background: #f0eeec;
}


/* === CONTACT PAGE === */
.contact-landing {
    background: #FBFBFB;
}

.contact-landing__paper { display: none; }

.contact-section {
    padding: 120px 80px 80px;
    background: #FBFBFB;
}

.contact-title {
    margin-bottom: 40px;
}

.contact-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #FBFBFB url('../img/papier_fond.png') center / cover no-repeat;
    border: 1px solid rgba(170, 38, 28, 0.4);
    padding: 40px;
}

.contact-card__inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr;
    gap: 30px 40px;
    align-items: start;
}

.contact-card__intro {
    color: #0F0B15;
    grid-column: 1;
    grid-row: 1;
}

.contact-card__intro p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-card__form {
    width: 100%;
    grid-column: 2;
    grid-row: 1 / span 2;
}

.contact-card__info {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
}

.contact-card__info p {
    color: #AA261C;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.contact-card__word {
    display: block;
    font-size: 0.9rem;
    color: #0F0B15;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card__word:hover {
    color: #AA261C;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form__group {
    margin-bottom: 20px;
}

.contact-form__group label {
    display: block;
    margin-bottom: 8px;
    color: #AA261C;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
}

.contact-form__group input,
.contact-form__group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #AA261C;
    background: #FBFBFB;
    font-size: 0.9rem;
    color: #0F0B15;
    transition: border-color 0.2s;
    font-family: inherit;
}

.contact-form__group input::placeholder,
.contact-form__group textarea::placeholder {
    color: rgba(15, 11, 21, 0.35);
}

.contact-form__group input:focus,
.contact-form__group textarea:focus {
    outline: none;
    border-color: #0F0B15;
}

.contact-form__group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__submit {
    display: inline-block;
    padding: 12px 36px;
    background: #AA261C;
    color: #FBFBFB;
    border: none;
    cursor: pointer;
    letter-spacing: 0.15em;
    font-size: 0.78rem;
    transition: background 0.3s;
    margin-top: 8px;
}

.contact-form__submit:hover { background: #0F0B15; }

@media (max-width: 768px) {
    .contact-section { padding: 40px 40px; }
    .contact-card { padding: 24px; }
    .contact-card__inner { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 30px; }
    .contact-card__intro { grid-row: 1; grid-column: 1; }
    .contact-card__form  { grid-row: 2; grid-column: 1; }
    .contact-card__info  { grid-row: 3; grid-column: 1; }
    .contact-form__row { grid-template-columns: 1fr; }
}

/* Success / Error */
.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-success__title {
    font-size: 2rem;
    color: #AA261C;
    margin-bottom: 12px;
}

.contact-success .btn {
    display: inline-block;
    margin-top: 20px;
}

.contact-error {
    background: rgba(170, 38, 28, 0.1);
    color: #AA261C;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #AA261C;
}

/* === SCROLL ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero { padding: 0 24px; }
    .hero__info { flex-direction: column; gap: 16px; text-align: center; bottom: 30px; padding-left: 24px; padding-right: 24px; }
    .hero__info-right { text-align: center; }

    .sticky-header__inner { padding: 10px 20px; }
    .sticky-header__nav { gap: 14px; }
    .sticky-header__nav a { font-size: 0.75rem; }
    .sticky-header__logo-img { height: 40px; }

    .quote-section { padding: 40px 24px; }
    .quote-section__inner { flex-direction: column; }
    .quote-section__images { justify-content: center; }
    .quote-image-placeholder { width: 140px; height: 180px; }

    .projects-grid { grid-template-columns: 1fr; }

    .stats-grid { flex-direction: column; gap: 20px; }
    .stat-card { padding: 20px; }

    .about-hero { padding: 100px 24px 60px; }
    .about-hero__content { grid-template-columns: 1fr; gap: 30px; }
    .about-letter { transform: rotate(-1deg); padding: 30px 24px 70px; }
    .about-letter__collage { width: 140px; height: 110px; bottom: -20px; right: -10px; }
    .about-photos__item:nth-child(even),
    .about-photos__item:nth-child(odd) { transform: none; }

    .skills-grid { grid-template-columns: 1fr; }

    .project-detail { padding: 100px 24px 60px; }
    .gallery-grid { grid-template-columns: 1fr; }

    .project-nav { padding: 24px; }
    .project-nav__inner { flex-direction: column; gap: 20px; }
    .project-nav__link--next { text-align: left; }

    .site-footer__band { flex-direction: column; gap: 12px; text-align: center; }

    .contact-section { padding: 0 24px 60px; }
    .contact-section__inner { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
    .contact-form__row { grid-template-columns: 1fr; }
    .contact-hero { padding: 100px 24px 40px; }
}

@media (max-width: 480px) {
    .hero__title-welcome { font-size: 2.8rem; }
    .hero__title-portfolio { font-size: 5rem; }
}
