/* ============================================
   Florent GILLES - Portfolio Website Styles
   ============================================ */

/* ============================================
   FONTS: Poppins (corps de texte) & Acumin Pro (titres)
   ============================================ */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Acumin Pro';
    src: url('../fonts/acumin-pro/Acumin-RPro.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Acumin Pro';
    src: url('../fonts/acumin-pro/Acumin-ItPro.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Acumin Pro';
    src: url('../fonts/acumin-pro/Acumin-BdPro.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Acumin Pro';
    src: url('../fonts/acumin-pro/Acumin-BdItPro.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* CSS Variables */
:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --color-bg-contact: #efece6;
    --color-text: #000000;
    --color-text-light: #666666;
    --color-text-muted: #888888;
    --color-border: #e0e0e0;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-heading: 'Acumin Pro', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-size-base: 16px;
    --line-height: 1.7;
    --max-width: 1200px;
    --header-height: 80px;
}

/* ============================================
   i18n: affichage conditionnel selon la langue active
   ============================================ */
html[data-lang="fr"] [data-i18n="en"] {
    display: none;
}

html[data-lang="en"] [data-i18n="fr"] {
    display: none;
}

/* ============================================
   PAGE TRANSITION (fade to/from white)
   ============================================ */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.page-transition-overlay.is-hidden {
    opacity: 0;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
}

em, i {
    font-style: italic;
}

strong, b {
    font-weight: 600;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background-color: var(--color-bg);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -0.5px;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: var(--font-size-base);
    font-weight: 300;
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link.active {
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switch-wrapper {
    position: relative;
    margin-left: 4px;
}

.lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background-color: var(--color-bg);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.lang-switch:hover {
    border-color: var(--color-text);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 160px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 1100;
}

.lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-primary);
    font-size: 13px;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    border-radius: 2px;
}

.lang-option:hover {
    background-color: var(--color-bg-alt);
}

.lang-option.active {
    font-weight: 600;
}

.lang-flag {
    font-size: 16px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* ============================================
   MAIN CONTENT AREAS
   ============================================ */
main {
    min-height: calc(100vh - var(--header-height));
}

.page-section {
    padding: 60px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-title {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -1px;
    font-family: var(--font-heading);
    margin-bottom: 40px;
}

/* ============================================
   PAGE 1: BIO
   ============================================ */
.bio-container {
    display: grid;
    grid-template-columns: 1fr 285px;
    gap: 60px;
    align-items: start;
}

.bio-content {
    padding-right: 20px;
}

.bio-text {
    margin-bottom: 0;
}

.bio-text p {
    margin-bottom: 1.5em;
    color: var(--color-text);
    text-align: justify;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

.book-title {
    font-style: italic;
    color: var(--color-text);
}

.bio-photo {
    position: relative;
}

.bio-photo img,
.bio-photo .placeholder-image {
    width: 100%;
    max-width: 285px;
    height: 360px;
    object-fit: cover;
    object-position: center top;
}

/* ============================================
   PAGE 2 & 3: PROJECT PAGES (shared structure)
   ============================================ */
.banner {
    width: 100%;
    height: calc(650px - 0.5cm);
    overflow: hidden;
    margin-bottom: 0;
}

.banner img,
.banner .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center calc(50% - 2cm);
}

.project-header {
    padding: 50px 40px 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.project-header-inner {
    max-width: calc(900px + 4cm);
    margin: 0 auto;
}

.project-title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 0;
    font-family: var(--font-heading);
}

.project-subtitle {
    font-size: 36px;
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.3;
    margin-top: 0;
}

.project-content {
    padding: 0 40px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.project-content > p {
    margin-bottom: 1.5em;
    color: var(--color-text);
    max-width: calc(900px + 4cm);
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.project-note {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 2em;
    max-width: calc(900px + 4cm);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.project-status {
    font-weight: 600;
    margin-bottom: 2em;
    max-width: calc(900px + 4cm);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.project-status.contact-note {
    font-weight: 300;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel-section {
    padding: 40px 0;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 1cm;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 36.6667%; /* 33.3333% zoomed by 10% so only the centered photo shows in full */
    margin-right: 0;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.carousel-slide img,
.carousel-slide .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text);
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

.carousel-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================
   EXCERPT BLOCK
   ============================================ */
.excerpt-block {
    padding: 40px;
    margin: 40px auto;
    max-width: calc(900px + 4cm);
    border-left: 3px solid var(--color-border);
    padding-left: 30px;
}

.excerpt-block h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.excerpt-block p {
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    text-align: justify;
}

/* ============================================
   PAGE 4: CONTACT
   ============================================ */
.contact-page {
    background-color: var(--color-bg-contact);
    min-height: calc(100vh - var(--header-height));
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 15px;
}

.contact-header p {
    color: var(--color-text-light);
    font-size: 15px;
}

.contact-form {
    background-color: var(--color-bg);
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
}

.form-group label .required {
    color: var(--color-text-muted);
    font-weight: 300;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    padding: 14px 50px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 2px solid var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.form-note {
    margin-top: 20px;
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 30px 40px;
    text-align: center;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ============================================
   PLACEHOLDER IMAGES
   ============================================ */
.placeholder-image {
    background-color: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-image.portrait {
    background: linear-gradient(135deg, #d0d0d0 0%, #a0a0a0 100%);
}

.placeholder-image.landscape {
    background: linear-gradient(135deg, #c5c5c5 0%, #8a8a8a 100%);
}

.placeholder-image::after {
    content: attr(data-placeholder-text);
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
    padding: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .bio-container {
        grid-template-columns: 1fr 240px;
        gap: 40px;
    }
    
    .carousel-slide {
        flex: 0 0 55%; /* 50% zoomed by 10% */
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 20px;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid var(--color-border);
        width: 100%;
        text-align: center;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .lang-switch-wrapper {
        margin: 15px 0 5px;
    }
    
    .lang-menu {
        right: auto;
        left: 50%;
        transform: translate(-50%, -6px);
    }
    
    .lang-menu.open {
        transform: translate(-50%, 0);
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .page-section {
        padding: 40px 20px;
    }
    
    .bio-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bio-photo img,
    .bio-photo .placeholder-image {
        max-width: 100%;
        height: 300px;
    }
    
    .banner {
        height: calc(400px - 0.5cm);
    }
    
    .project-header {
        padding: 30px 20px 20px;
    }
    
    .project-title {
        font-size: 32px;
    }
    
    .page-title {
        font-size: 32px;
        margin-bottom: 24px;
    }
    
    .project-content {
        padding: 0 20px 30px;
    }
    
    .carousel-container {
        margin: 0 1cm;
    }
    
    .carousel-slide {
        flex: 0 0 110%; /* 100% zoomed by 10% */
        margin-right: 0;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .excerpt-block {
        padding: 25px;
        padding-left: 20px;
    }
    
    .contact-container {
        padding: 40px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .banner {
        height: calc(280px - 0.5cm);
    }
    
    .project-title {
        font-size: 26px;
    }
    
    .page-title {
        font-size: 26px;
    }
    
    .bio-photo .placeholder-image {
        height: 240px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* Confirmation Message */
.confirmation-message {
    display: none;
    text-align: center;
    padding: 40px;
    background-color: var(--color-bg);
}

.confirmation-message.show {
    display: block;
}

.confirmation-message h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.confirmation-message p {
    color: var(--color-text-light);
}
