/* ========================================
   FONTS - Articulat CF
   ======================================== */
@font-face {
    font-family: 'Articulat CF';
    src: url('../fonts/ArticulatCF-ExtraLight.woff2') format('woff2'),
         url('../fonts/ArticulatCF-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Articulat CF';
    src: url('../fonts/ArticulatCF-ExtraBold.woff2') format('woff2'),
         url('../fonts/ArticulatCF-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Articulat CF Normal';
    src: url('../fonts/ArticulatCF-Normal.woff2') format('woff2'),
         url('../fonts/ArticulatCF-Normal.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Articulat CF Normal', sans-serif;
    font-weight: normal;
    line-height: 1.6;
    color: #1c1e1c;
    background-color: #f2fcf7;
    overflow-x: hidden;
}

/* ========================================
   COLOR VARIABLES
   ======================================== */
:root {
    --color-white: #f2fcf7;
    --color-green: #6a7a58;
    --color-beige: #ddcca6;
    --color-blue: #5d757d;
    --color-black: #1c1e1c;
    --contact-maquette-bg: var(--color-blue);
    --contact-maquette-cream: #ddcca6;
    --contact-maquette-field-text: #263034;
    --contact-maquette-btn: #282828;
}

/* ========================================
   THEME: BLACK & WHITE (Homepage)
   ======================================== */
.theme-black-white {
    background-color: var(--color-black);
    color: var(--color-beige);
}

.theme-black-white .header {
    background-color: transparent;
    border-bottom: none;
}

.theme-black-white .nav-link {
    color: var(--color-beige);
}

.theme-black-white .nav-link.active,
.theme-black-white .nav-link:hover {
    color: var(--color-beige);
    opacity: 0.7;
}

.theme-black-white .section-title {
    color: var(--color-beige);
}

.theme-black-white .btn-primary {
    background-color: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-white);
}

.theme-black-white .btn-primary:hover {
    background-color: transparent;
    color: var(--color-beige);
}

.theme-black-white .btn-secondary {
    background-color: transparent;
    color: var(--color-beige);
    border: 2px solid var(--color-white);
}

.theme-black-white .btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.theme-black-white .page-title {
    color: var(--color-beige);
}

.theme-black-white .form-group label {
    color: var(--color-beige);
}

.theme-black-white input[type="text"],
.theme-black-white input[type="email"],
.theme-black-white input[type="tel"],
.theme-black-white textarea {
    border: none;
    color: var(--color-black);
    background-color: var(--color-white);
}

.theme-black-white input[type="text"]:focus,
.theme-black-white input[type="email"]:focus,
.theme-black-white input[type="tel"]:focus,
.theme-black-white textarea:focus {
    border: none;
    outline: none;
}

.theme-black-white input[type="range"] {
    accent-color: var(--color-white);
}

.theme-black-white .budget-value {
    color: var(--color-beige);
}

.theme-black-white.page-contact {
    background-color: var(--color-blue);
    color: var(--contact-maquette-cream);
    /* Remplir au moins la fenêtre : sans ça, body = hauteur du contenu → bande vide en bas */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.theme-black-white.page-contact main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.theme-black-white.page-contact main,
.theme-black-white.page-contact .contact-maquette,
.theme-black-white.page-contact .contact-maquette__inner {
    background-color: var(--color-blue);
}

.theme-black-white.page-contact .footer {
    border-top-color: rgba(221, 204, 166, 0.18);
    background-color: rgba(0, 0, 0, 0.08);
}

.page-contact .logo-link {
    flex-shrink: 0;
}

/* ========================================
   THEME: GREEN (Contact)
   ======================================== */
.theme-green {
    background-color: var(--color-white);
    color: var(--color-blue);
}

.theme-green .header {
    background-color: var(--color-white);
    border-bottom: none;
}

.theme-green .nav-link {
    color: var(--color-blue);
}

.theme-green .nav-link.active,
.theme-green .nav-link:hover {
    color: var(--color-blue);
    opacity: 0.8;
}

.theme-green .page-title {
    color: var(--color-blue);
}

.theme-green .btn-primary {
    background-color: var(--color-blue);
    color: var(--color-beige);
    border: 2px solid var(--color-blue);
}

.theme-green .btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-blue);
}

.theme-green .form-group label {
    color: var(--color-blue);
}

.theme-green input[type="text"],
.theme-green input[type="email"],
.theme-green input[type="tel"],
.theme-green textarea {
    border-color: var(--color-blue);
    color: var(--color-black);
}

.theme-green input[type="text"]:focus,
.theme-green input[type="email"]:focus,
.theme-green input[type="tel"]:focus,
.theme-green textarea:focus {
    border-color: var(--color-blue);
    outline-color: var(--color-blue);
}

.theme-green input[type="range"] {
    accent-color: var(--color-blue);
}

/* ========================================
   THEME: BLUE (Portfolio)
   ======================================== */
.theme-blue {
    background-color: var(--color-white);
    color: var(--color-blue);
}

.theme-blue .header {
    background-color: transparent;
    border-bottom: none;
    padding: 1rem 0;
}

.theme-blue .nav {
    align-items: flex-start;
}

.theme-blue .nav-link {
    color: var(--color-blue);
}

.theme-blue .nav-link.active,
.theme-blue .nav-link:hover {
    color: var(--color-blue);
    opacity: 0.8;
}

.theme-blue .page-title {
    color: var(--color-blue);
}

/* Nav CTA — même gabarit que l’accueil ; coins visibles sur fond clair */
.theme-blue .nav-button::before,
.theme-blue .nav-button::after,
.theme-blue .nav-button span::before,
.theme-blue .nav-button span::after {
    border-color: var(--color-blue);
}

.theme-blue .nav-button span {
    color: var(--color-blue);
}

/* Portfolio listing page — green background */
.theme-blue.page-portfolio {
    background-color: var(--color-green);
    color: var(--color-white);
}

.theme-blue.page-portfolio .nav-link {
    color: var(--color-white);
}

.theme-blue.page-portfolio .nav-link.active,
.theme-blue.page-portfolio .nav-link:hover {
    color: var(--color-white);
    opacity: 0.85;
}

.theme-blue.page-portfolio .page-title {
    color: var(--color-white);
}

.theme-blue.page-portfolio .nav-button::before,
.theme-blue.page-portfolio .nav-button::after,
.theme-blue.page-portfolio .nav-button span::before,
.theme-blue.page-portfolio .nav-button span::after {
    border-color: var(--color-white);
}

.theme-blue.page-portfolio .nav-button span {
    color: var(--color-white);
}

.theme-blue.page-portfolio .footer {
    border-top: 1px solid rgba(242, 252, 247, 0.2);
    background-color: rgba(28, 30, 28, 0.08);
}

.theme-blue.page-portfolio .footer-link,
.theme-blue.page-portfolio .footer-separator {
    color: var(--color-white);
}

.theme-blue.page-portfolio .footer-copyright {
    color: var(--color-white);
    opacity: 0.75;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    position: fixed;
    height: 60px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    position: relative;
    top: -20px;
}

.logo {
    height: 100px;
    width: auto;
    z-index:10;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    top: 10px;
    position: relative;
}

.nav-separator {
    color: inherit;
    opacity: 0.5;
    font-weight: 200;
}

.nav-link {
    text-decoration: none;
    font-weight: 200;
    font-size: 1rem;
    transition: opacity 0.3s ease;
    position: relative;
}

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

.nav-button {
    text-decoration: none;
    font-weight: 200;
    font-size: 0.875rem;
    padding: 10px 20px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
    margin-left: 1.5rem;
    margin-top: 4px;
}

.nav-button::before,
.nav-button::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--color-white);;
}

.nav-button::before {
    top: 0;
    left: 0px;
    border-right: none;
    border-bottom: none;
}

.nav-button::after {
    top: 0;
    right: 0px;
    border-left: none;
    border-bottom: none;
}

.nav-button span {
    position: relative;
    display: inline-block;
    color: var(--color-beige);
}

.nav-button span::before,
.nav-button span::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--color-white);
}

.nav-button span::before {
    bottom: -6px;
    left: -20px;
    border-right: none;
    border-top: none;
}

.nav-button span::after {
    bottom: -6px;
    right: -20px;
    border-left: none;
    border-top: none;

}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav {
        padding: 0 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .theme-black-white .nav-menu {
        background-color: var(--color-black);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .theme-blue.page-portfolio .nav-menu {
        background-color: var(--color-green);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-button {
        margin-left: 0;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: 'Articulat CF', sans-serif;
    font-weight: 200;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-beige);
    border-color: var(--color-black);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.hero-logo {
    width: clamp(300px, 40vw, 500px);
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

.hero-tagline {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
}

.tagline-line {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 600;
    font-size: clamp(3rem, 2vw, 1.5rem);
    line-height: 1em;
    margin: 0;
    color: var(--color-beige);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-scroll-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    border: none;
    background: transparent;
    color: var(--color-beige);
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    transition: all 0.3s ease;
    opacity: 0.6;
    padding: 0;
}

.hero-scroll-btn:hover {
    opacity: 1;
    transform: translateY(5px);
}

.hero-scroll-text {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 200;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.hero-scroll-btn svg {
    width: 20px;
    height: 20px;
    animation: scrollBounce 2s infinite;
    margin-bottom: 2px;
}

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

/* Animation scintillement pour la première forme (étoile) */
.hero-shape-1 {
    transform-origin: center;
    animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.01);
    }
    50% {
        transform: scale(0.99);
    }
    75% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}

/* Snow Canvas Effect */
.snow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-logo {
        width: clamp(250px, 60vw, 350px);
    }
    
    .hero-tagline {
        bottom: 2rem;
        left: 1.5rem;
    }
    
    .tagline-line {
        font-size: 1rem;
    }
    
    .hero-scroll-btn {
        bottom: 2rem;
        right: 1.5rem;
        gap: 0.5rem;
    }
    
    .hero-scroll-text {
        font-size: 0.75rem;
    }
    
    .hero-scroll-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 3rem;
    text-align: center;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    position: relative;
    padding: 5rem 0;
    background-color: #6a7a58;
}

.theme-black-white .about {
    background-color: #6a7a58;
}

.about .container {
    max-width: 1500px;
    
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    position: absolute;
    font-family: 'Articulat CF', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    z-index: 10;
}

.about-text-top {
    top: -25px;
    left: 0;
    writing-mode: horizontal-tb;
}

.about-text-right {
    top: 0px;
    right: -25px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

.about-text-left {
    bottom: 0px;
    left: -25px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    rotate: 180deg;
}

.about-bottom {
    border: 1px solid rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-top: 20px;
    gap: 20px;
    position: relative;
}

.about-star {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    opacity: 0.3;
}

.about-star-path {
    fill: #1c1e1c;
}

.about-name {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #1c1e1c;
    text-transform: uppercase;
    line-height: 0.9;
    flex-shrink: 0;
}

.about-name br {
    display: block;
    content: "";
    margin-top: 0.2em;
}

.about-skills {
    
    display: flex;
    flex-direction: column;
    flex: 1;
    line-height: 1.3;
    border-left: 1px solid rgba(0, 0, 0, 0.5);
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.skill-label {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 600;
    opacity : 0.9;
    font-size: 1.3rem;
    color: #1c1e1c;
    text-transform: uppercase;
    min-width: 170px;
    text-align: right;
}

.skill-diamonds {
    display: flex;
    gap: 4px;
    align-items: center;
}

.skill-star {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
    margin-top: -5px;
}

@media (max-width: 968px) {
    .about-text {
        font-size: 0.75rem;
    }
    
    .about-text-top {
        top: -30px;
    }
    
    .about-text-right {
        right: -40px;
    }
    
    .about-text-left {
        left: -40px;
    }
    
    .about-bottom {
        padding: 30px;
        gap: 30px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .about-star {
        width: 40px;
        height: 40px;
        left: 15px;
    }
    
    .about-name {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-left: 60px;
    }
    
    .about-skills {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(200, 200, 200, 0.5);
        padding-top: 20px;
        width: 100%;
    }
    
    .skill-item {
        justify-content: space-between;
    }
    
    .skill-label {
        min-width: auto;
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .about {
        padding: 3rem 0;
    }
    
    .about-text {
        font-size: 0.65rem;
    }
    
    .about-text-top {
        top: -20px;
    }
    
    .about-text-right {
        right: -30px;
    }
    
    .about-text-left {
        left: -30px;
        font-size: 0.6rem;
    }
    
    .about-bottom {
        padding: 20px;
        gap: 20px;
    }
    
    .about-star {
        width: 30px;
        height: 30px;
        left: 10px;
    }
    
    .about-name {
        font-size: 1rem;
        margin-left: 45px;
    }
    
    .skill-label {
        font-size: 0.65rem;
    }
    
    .skill-star {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   SERVICES / ACCORDION
   ======================================== */
.services-header {
    margin-bottom: 4rem;
}

.services-subtitle {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 200;
    font-size: 0.875rem;
    color: rgba(242, 252, 247, 0.6);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.services-title {
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-beige);
    text-transform: uppercase;
    margin: 0;
}

.accordion {
    max-width: 1200px;
    margin: 0 auto;
}

.accordion-item {
    border: none;
    border-top: 1px solid rgba(242, 252, 247, 0.1);
}

.accordion-item:last-child {
    border-bottom: 1px solid rgba(242, 252, 247, 0.1);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.accordion-header:hover {
    opacity: 0.8;
}

.accordion-number {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 200;
    font-size: 1rem;
    color: rgba(242, 252, 247, 0.6);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 50px;
}

.accordion-title {
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-beige);
    text-transform: uppercase;
    flex: 1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
    border-bottom: none;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 0 0 2rem 0;
    padding-left: calc(50px + 2rem);
}

.accordion-content p {
    font-family: 'Articulat CF Normal', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-beige);
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   PORTFOLIO INVITATION
   ======================================== */
.portfolio-invitation {
    background-color: rgba(28, 30, 28, 0.02);
}

.theme-black-white .portfolio-invitation {
    background-color: rgba(242, 252, 247, 0.02);
}

.portfolio-invitation-header {
    margin-bottom: 4rem;
}

.portfolio-invitation-subtitle {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 200;
    font-size: 0.875rem;
    color: rgba(242, 252, 247, 0.6);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.portfolio-invitation-title {
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-beige);
    text-transform: uppercase;
    margin: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 2rem;
    margin-bottom: 4rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-image.loaded {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image {
    animation-play-state: running;
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-invitation-content {
    text-align: center;
}

.portfolio-invitation-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: var(--color-beige);
}

/* ========================================
   CLIENTS SECTION
   ======================================== */
.clients {
    padding: 4rem 0;
}

.clients-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.clients-header {
    flex-shrink: 0;
    margin-bottom: 0;
}

.clients-subtitle {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 200;
    font-size: 0.875rem;
    color: rgba(242, 252, 247, 0.6);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.clients-title {
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-beige);
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
}

.clients-scroll-wrapper {
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.clients-scroll {
    display: flex;
    width: fit-content;
    animation: scrollClients 30s linear infinite;
}

.clients-logos {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
    flex-shrink: 0;
}

.client-logo {
    width: 120px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.client-logo:hover {
    opacity: 1;
}

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

@media (max-width: 968px) {
    .clients-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .clients-header {
        margin-bottom: 0;
    }
    
    .clients-scroll-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .clients-logos {
        gap: 2rem;
    }
    
    .client-logo {
        width: 80px;
        max-height: 40px;
    }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    background-color: var(--color-blue) !important;
    position: relative;
}

.theme-black-white .cta {
    background-color: rgba(242, 252, 247, 0.05);
}

.cta-header {
    margin-bottom: 4rem;
}

.cta-subtitle {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 200;
    font-size: 0.875rem;
    color: rgba(242, 252, 247, 0.6);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.cta-title {
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-beige);
    text-transform: uppercase;
    margin: 0;
}

.cta-content {
    text-align: center;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: var(--color-beige);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
 .bgtopo{
    width: 771px;
    height: 100%;
    background: url(../bg-topo.svg) repeat top left;
    position: absolute;
    left:0px;
    top:0px;
    background-size:contain;
    opacity:0.5;

}
.bgguillement{
    width: 400px;
    height: 400px;
    background: url(../images/Guillemets.svg) no-repeat;
    position: absolute;
    left:50%;
    margin-left:-150px;
    top:-50px;
    background-size:contain;
    opacity:0.5;

}

.contact-section {
    padding: 0;
    min-height: 0;
    background-color: transparent;
}

.page-contact .contact-section {
    padding: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Contact page — maquette split + formulaire souligné */
.contact-maquette {
    padding: 5.5rem 0 3rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 4rem);
    min-height: calc(100dvh - 4rem);
    background-color: var(--color-blue);
    color: var(--contact-maquette-cream);
}

.contact-maquette__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: min(1540px, 96vw);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
    flex: 1 1 auto;
    min-height: min(900px, calc(100dvh - 7rem));
    gap: 0;
}

.contact-maquette__form-side {
    padding-right: clamp(1.75rem, 3.5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-maquette__title {
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    font-size: 3em;
    line-height: 1.05;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--contact-maquette-cream);
    margin: 0 0 2.5rem;
}

.contact-maquette__form {
    width: 100%;
    max-width: 640px;
    gap: 1.75rem;
}

.contact-maquette__row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}

.contact-maquette__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-maquette__field label {
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--contact-maquette-cream);
    line-height: 1.2;
}

/* Ligne nom + email : hiérarchie maquette (petit label gras beige, valeur plus grande #3d5057) */
.contact-maquette__row2 .contact-maquette__field {
    gap: 0.42rem;
}

.contact-maquette__field input[type="text"],
.contact-maquette__field input[type="email"] {
    width: 100%;
    padding: 0.2rem 0 0rem 0;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--contact-maquette-cream);
    border-radius: 0;
    background: transparent;
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    font-size:  0.9em;
    letter-spacing: 0em;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--contact-maquette-field-text);
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.contact-maquette__field input::placeholder {
    color: var(--contact-maquette-field-text);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
}

.contact-maquette__field input:focus {
    outline: none;
    border-bottom-color: var(--contact-maquette-cream);
    opacity: 1;
}

/* Priorité sur .theme-black-white input (noir / fond blanc) + autofill */
.theme-black-white.page-contact .contact-maquette input[type="text"],
.theme-black-white.page-contact .contact-maquette input[type="email"] {
    color: var(--contact-maquette-field-text);
    background-color: transparent;
    -webkit-text-fill-color: var(--contact-maquette-field-text);
}

.theme-black-white.page-contact .contact-maquette input[type="text"]:-webkit-autofill,
.theme-black-white.page-contact .contact-maquette input[type="email"]:-webkit-autofill {
    -webkit-text-fill-color: var(--contact-maquette-field-text) !important;
    caret-color: var(--contact-maquette-field-text);
    box-shadow: 0 0 0 1000px var(--color-blue) inset !important;
    transition: background-color 99999s ease-out;
}

.theme-black-white.page-contact .contact-maquette textarea {
    color: var(--contact-maquette-field-text);
    background-color: transparent;
    -webkit-text-fill-color: var(--contact-maquette-field-text);
}

.theme-black-white.page-contact .contact-maquette textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--contact-maquette-field-text) !important;
    box-shadow: 0 0 0 1000px var(--color-blue) inset !important;
}

.contact-maquette__field--budget {
    margin-top: 0.25rem;
}

.contact-maquette__budget-row {
    margin-top: 0.15rem;
    color: var(--contact-maquette-cream);
}

.contact-maquette__budget-row .budget-value {
    font-family: 'Articulat CF Normal', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--contact-maquette-field-text);
    min-width: 5.5rem;
    text-align: right;
}

.contact-maquette__field--message textarea {
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.35rem 0 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(1.5em - 1px),
        rgba(221, 204, 166, 0.38) calc(1.5em - 1px),
        rgba(221, 204, 166, 0.38) 1.5em
    );
    background-attachment: local;
    font-family: 'Articulat CF Normal', sans-serif;
    font-size: 1rem;
    line-height: 1.5em;
    color: var(--contact-maquette-field-text);
    resize: vertical;
    min-height: calc(8 * 1.5em);
}

.contact-maquette__field--message textarea::placeholder {
    color: var(--contact-maquette-field-text);
    opacity: 0.55;
}

.contact-maquette__field--message textarea:focus {
    outline: none;
}

.contact-maquette__submit-wrap {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 640px;
    margin-top: 0.5rem;
}

.contact-maquette__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.75rem;
    border: none;
    cursor: pointer;
    overflow: visible;
    font-family: 'Articulat CF', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--contact-maquette-cream);
    background-color: var(--contact-maquette-btn);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-maquette__submit:hover {
    background-color: #3a3a3a;
}

.contact-maquette__submit:focus-visible {
    outline: 2px solid var(--contact-maquette-cream);
    outline-offset: 3px;
}

.contact-maquette__submit-icon {
    flex-shrink: 0;
    display: block;
    width: 28px;
    height: 28px;
    overflow: visible;
    opacity: 0.95;
}

.contact-maquette__divider {
    justify-self: flex-end;margin-top:60px;
    width: 1px;
    height: calc(100% - 60px);
    /* margin-top: 120px; */
    background-color: var(--contact-maquette-cream);
    opacity: 0.85;
}

.contact-maquette__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: clamp(1.25rem, 2.5vw, 3rem);
}

.contact-maquette__illu {
    position: relative;
    width: 100%;
    max-width: min(500px, 44vw);
    aspect-ratio: 1;
}

/* Très grands écrans (ex: 4K) : on autorise l'illustration jusqu'à 1000x1000 */
@media (min-width: 2560px) {
    .contact-maquette__illu {
        max-width: min(1000px, 44vw);
    }
}

.contact-maquette__illu .contact-maquette__aigle {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* [hidden] doit primer : sinon display:block ci-dessus affiche les deux GIF superposés */
.contact-maquette__illu .contact-maquette__aigle[hidden] {
    display: none !important;
}

.contact-form__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 968px) {
    .contact-maquette__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 1rem;
        gap: 2.5rem;
    }

    .contact-maquette__divider {
        display: none;
    }

    .contact-maquette__form-side {
        padding-right: 0;
        order: 2;
    }

    .contact-maquette__visual {
        order: 1;
        padding-left: 0;
    }

    .contact-maquette__illu {
        max-width: min(320px, 85vw);
    }

    .contact-maquette__row2 {
        grid-template-columns: 1fr;
    }

    .contact-maquette__form,
    .contact-maquette__submit-wrap {
        max-width: none;
    }
}

/* ========================================
   FORM STYLES
   ======================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form.contact-maquette__form {
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 200;
    font-size: 1rem;
}

.form-group label .required {
    color: var(--color-beige);
    opacity: 0.7;
    margin-left: 0.2rem;
}

.theme-black-white .form-group label .required {
    color: var(--color-beige);
}

.form-group input,
.form-group textarea {
    padding: 0.7rem;
    border: 2px solid;
    font-family: 'Articulat CF Normal', sans-serif;
    font-size: 1rem;
    background-color: var(--color-white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-width: 2px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    border: none;
}

.form-group textarea:focus {
    border: none;
    outline: none;
}

.budget-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.budget-wrapper input[type="range"] {
    flex: 1;
    height: 6px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: var(--color-beige);
    border:0;
    border-radius:5px;
    padding: 0;
    margin: 0;
}

.budget-wrapper input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 2px;
    cursor: pointer;
    background: currentColor;
    opacity: 0.3;
    border-radius: 0;
}

.budget-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: currentColor;
    cursor: pointer;
    margin-top: -3px;
    border: 2px solid currentColor;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.budget-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.15);
}

.budget-wrapper input[type="range"]::-moz-range-track {
    width: 100%;
    height: 2px;
    cursor: pointer;
    background: currentColor;
    opacity: 0.3;
    border-radius: 0;
    border: none;
}

.budget-wrapper input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: currentColor;
    cursor: pointer;
    border: 2px solid currentColor;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.budget-wrapper input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.15);
}

.theme-black-white .budget-wrapper input[type="range"]::-webkit-slider-track {
    background: var(--color-beige);
    opacity: 0.3;
}

.theme-black-white .budget-wrapper input[type="range"]::-webkit-slider-thumb {
    background: var(--color-white);
    border-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(242, 252, 247, 0.1);
}

.theme-black-white .budget-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 6px rgba(242, 252, 247, 0.15);
}

.theme-black-white .budget-wrapper input[type="range"]::-moz-range-track {
    background: var(--color-beige);
    opacity: 0.3;
}

.theme-black-white .budget-wrapper input[type="range"]::-moz-range-thumb {
    background: var(--color-white);
    border-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(242, 252, 247, 0.1);
}

.theme-black-white .budget-wrapper input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 0 0 0 6px rgba(242, 252, 247, 0.15);
}

/* Page contact : priorité sur les règles .theme-black-white ci-dessus (même zone de spécificité, ordre ultérieur) */
.theme-black-white.page-contact .contact-maquette .budget-wrapper input[type="range"] {
    flex: 1;
    height: 32px;
    background: transparent;
    border: 0;
    border-radius: 0;
    accent-color: var(--contact-maquette-cream);
}

.theme-black-white.page-contact .contact-maquette .budget-wrapper input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    background: rgba(221, 204, 166, 0.72);
    border-radius: 2px;
}

.theme-black-white.page-contact .contact-maquette .budget-wrapper input[type="range"]::-webkit-slider-track {
    height: 3px;
    background: rgba(221, 204, 166, 0.72);
    border-radius: 2px;
}

.theme-black-white.page-contact .contact-maquette .budget-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border-radius: 50%;
    background: var(--contact-maquette-cream);
    border: 2px solid var(--contact-maquette-cream);
    box-shadow: 0 0 0 2px rgba(93, 117, 125, 0.65);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-black-white.page-contact .contact-maquette .budget-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(221, 204, 166, 0.45);
}

.theme-black-white.page-contact .contact-maquette .budget-wrapper input[type="range"]::-moz-range-track {
    height: 3px;
    background: rgba(221, 204, 166, 0.72);
    border: none;
    border-radius: 2px;
}

.theme-black-white.page-contact .contact-maquette .budget-wrapper input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--contact-maquette-cream);
    border: 2px solid var(--contact-maquette-cream);
    box-shadow: 0 0 0 2px rgba(93, 117, 125, 0.65);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-black-white.page-contact .contact-maquette .budget-wrapper input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(221, 204, 166, 0.45);
}

.budget-value {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 200;
    font-size: 1.125rem;
    min-width: 100px;
    text-align: right;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio-section {
    padding: 5rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.portfolio-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.8;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(28, 30, 28, 0.1);
    background-color: rgba(28, 30, 28, 0.02);
}

.theme-black-white .footer {
    border-top: 1px solid rgba(242, 252, 247, 0.1);
    background-color: rgba(242, 252, 247, 0.02);
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-link {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 200;
    font-size: 0.875rem;
    color: var(--color-beige);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.theme-black-white .footer-link {
    color: var(--color-beige);
}

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

.footer-separator {
    font-family: 'Articulat CF', sans-serif;
    font-weight: 200;
    font-size: 0.875rem;
    color: var(--color-beige);
    opacity: 0.5;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.6;
    color: var(--color-beige);
    margin: 0;
}

/* ========================================
   SOCIAL MEDIA ICONS
   ======================================== */
.social-media {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 999;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-beige);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 1;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 968px) {
    .social-media {
        display: none;
    }
}


.about-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
}

.left-side {
    width: 50%;
    flex-shrink: 0;
    border: 1px solid black;
    padding: 40px;
    background: var(--color-green);
    box-shadow: 15px 15px 15px rgba(0, 0, 0, 0.1);
    position:relative;
    z-index:3;
}

.right-side {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.left-side-content-item {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    height: 100%;
    padding-left : 40px;
    color: var(--color-black);
}

@media (max-width: 968px) {
    .about-container {
        flex-direction: column;
    }
    
    .left-side,
    .right-side {
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .contact-section:not(.contact-maquette) {
        padding: 3rem 0;
    }

    .contact-maquette {
        padding: 4rem 0 2.5rem;
        min-height: calc(100dvh - 4rem);
    }
}

/* ========================================
   PROJECT SECTION
   ======================================== */
.project-section {
    padding: 0;
    /* margin-top: 60px; */
}

body.project-section-top-100 .project-section {
    margin-top: 150px;
}

.project-video {
    width: 100%;
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.project-video-iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

/* Layout en 2 colonnes pour les vidéos (premières 4) */
.project-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.project-videos-grid .project-video {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.project-videos-grid .project-video-iframe {
    height: 250px;
}

/* Dernière vidéo centrée */
.project-video:last-of-type:not(.project-videos-grid .project-video) {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .project-videos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .project-video {
        max-width: 100%;
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .project-video-iframe {
        height: 250px;
    }
    
    .project-videos-grid .project-video-iframe {
        height: 200px;
    }
}

.project-hero {
    width: 100%;
    margin-bottom: 0;
}

.project-hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.project-images {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
}

/* Marges entre les images pour la page ossa */
.project-ossa .project-image {
    margin-bottom: 10px;
}

.project-ossa .project-image:last-child {
    margin-bottom: 0;
}

.project-ossa .project-images-row {
    margin-bottom: 10px;
}

.project-ossa .project-images-row:last-child {
    margin-bottom: 0;
}

/* Images sur la même ligne */
.project-images-row {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 0;
    margin: 0;
    overflow: hidden;
}

.project-image-inline {
    width: 0;
    flex: 1;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 0;
}

@media (max-width: 768px) {
    .project-images-row {
        flex-direction: column;
    }
    
    .project-image-inline {
        width: 100%;
        flex: none;
    }
}

/* ========================================
   BEFORE/AFTER SLIDER
   ======================================== */
.before-after-slider {
    width: 100%;
    margin: 0;
    position: relative;
}

.before-after-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.before-after-container:active {
    cursor: grabbing;
}

.before-after-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.after-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    clip-path: inset(0 50% 0 0);
    z-index: 2;
    display: block;
}

.before-after-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.before-after-handle:hover {
    background-color: rgba(255, 255, 255, 1);
}

.handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 1);
}

.handle-circle svg {
    width: 20px;
    height: 20px;
    color: #1c1e1c;
}

.before-after-handle::before,
.before-after-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    transform: translateY(-50%);
}

.before-after-handle::before {
    left: -8px;
    border-width: 8px 8px 8px 0;
    border-color: transparent rgba(255, 255, 255, 0.9) transparent transparent;
}

.before-after-handle::after {
    right: -8px;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
}

/* ========================================
   GRANDS ÉCRANS (Full HD+ / QHD / 4K)
   Typo et largeurs utiles — les rem suivent html { font-size }.
   ======================================== */

@media (min-width: 1920px) {
    html {
        font-size: 112.5%;
    }

    .hero-logo {
        width: clamp(420px, 38vw, 720px);
    }

    .tagline-line {
        font-size: clamp(1.5rem, 2.25vw, 3.25rem);
    }

    .hero-scroll-text {
        font-size: 1rem;
    }

    .hero-scroll-btn svg {
        width: 24px;
        height: 24px;
    }

    section {
        padding: 6rem 0;
    }

    .section-title {
        font-size: clamp(2.25rem, 4.5vw, 4rem);
    }

    .page-title {
        font-size: clamp(2.75rem, 5.5vw, 5.25rem);
    }

    .about .container {
        max-width: 1750px;
    }

    .services-title,
    .portfolio-invitation-title,
    .clients-title,
    .cta-title {
        font-size: clamp(2.25rem, 4.5vw, 4rem);
    }

    .accordion {
        max-width: 1500px;
    }

    .accordion-title {
        font-size: clamp(1.65rem, 2.75vw, 2.5rem);
    }

    .accordion-content p {
        font-size: 1.125rem;
    }

    .portfolio-grid {
        max-width: 1500px;
        gap: 2.5rem;
    }

    .portfolio-invitation-content p,
    .cta-content p {
        font-size: 1.4rem;
    }

    .client-logo {
        width: 140px;
        max-height: 72px;
    }

    .contact-maquette__inner {
        max-width: min(1800px, 94vw);
    }

    .contact-maquette__form {
        max-width: min(720px, 100%);
    }

    .nav-link {
        font-size: 1.0625rem;
    }

    .nav-button {
        font-size: 0.9375rem;
    }

    .project-video {
        max-width: 780px;
    }

    .project-videos-grid {
        max-width: 1500px;
    }

    .project-video:last-of-type:not(.project-videos-grid .project-video) {
        max-width: 780px;
    }
}

@media (min-width: 2560px) {
    html {
        font-size: 125%;
    }

    .hero-logo {
        width: clamp(560px, 34vw, 900px);
    }

    .tagline-line {
        font-size: clamp(1.85rem, 2.5vw, 4rem);
    }

    section {
        padding: 7rem 0;
    }

    .about .container {
        max-width: 2000px;
    }

    .accordion,
    .portfolio-grid {
        max-width: 1750px;
    }

    .contact-maquette__inner {
        max-width: min(2100px, 92vw);
    }

    .contact-maquette__form {
        max-width: min(800px, 100%);
    }

    .section-title,
    .services-title,
    .portfolio-invitation-title,
    .clients-title,
    .cta-title {
        font-size: clamp(2.5rem, 4vw, 4.5rem);
    }

    .page-title {
        font-size: clamp(3rem, 5vw, 5.75rem);
    }

    .project-video {
        max-width: 900px;
    }

    .project-videos-grid {
        max-width: 1750px;
    }

    .project-video:last-of-type:not(.project-videos-grid .project-video) {
        max-width: 900px;
    }
}

@media (min-width: 3840px) {
    html {
        font-size: 137.5%;
    }

    .hero-logo {
        width: clamp(720px, 30vw, 1200px);
    }

    .tagline-line {
        font-size: clamp(2.25rem, 2.2vw, 4.75rem);
    }

    section {
        padding: 8rem 0;
    }

    .about .container {
        max-width: 2400px;
    }

    .accordion,
    .portfolio-grid {
        max-width: 2000px;
    }

    .contact-maquette__inner {
        max-width: min(2400px, 90vw);
    }

    .contact-maquette__form {
        max-width: min(920px, 100%);
    }

    .section-title,
    .services-title,
    .portfolio-invitation-title,
    .clients-title,
    .cta-title {
        font-size: clamp(2.75rem, 3.5vw, 5rem);
    }

    .page-title {
        font-size: clamp(3.25rem, 4.5vw, 6.5rem);
    }

    .project-video {
        max-width: 1040px;
    }

    .project-videos-grid {
        max-width: 2000px;
    }

    .project-video:last-of-type:not(.project-videos-grid .project-video) {
        max-width: 1040px;
    }
}
