/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */

:root {
    --color-sand: #E0C097;
    --color-teal: #6BA292;
    --color-dark: #3B2F2F;
    --color-light: #DDEBE6;
    --bg-main: var(--color-dark);
    --text-main: var(--color-light);
    --text-secondary: rgba(221, 235, 230, 0.7);
    --text-muted: rgba(221, 235, 230, 0.5);
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1300px;
    --border-radius: 12px;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ==========================================================================
   2. TYPOGRAPHIE & STRUCTURE GLOBALE
   ========================================================================== */

h1, h2, h3, h4 { 
    font-family: var(--font-display); 
    font-weight: 800; 
    line-height: 1.1; 
}

h1 { color: var(--color-sand); }
h2 { color: var(--text-main); }
.accent-text { color: var(--color-teal); }
.accent-link { color: var(--color-teal); text-decoration: underline; }

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

.container { 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 2rem; 
}

.container--narrow {
    max-width: 800px;
}

.section { 
    padding: clamp(5rem, 12vh, 10rem) 0; 
}

/* ==========================================================================
   3. ARRIÈRE-PLANS & EFFETS VISUELS
   ========================================================================== */

.bg-grain {
    position: fixed; 
    inset: 0; 
    z-index: -1; 
    pointer-events: none; 
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.mesh-background { 
    position: fixed; 
    inset: 0; 
    z-index: -2; 
    overflow: hidden; 
}

.mesh-layer { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(120px); 
    opacity: 0.4; 
    will-change: transform; 
}

.layer-1 {
    width: 60vw; 
    height: 60vw; 
    top: -10%; 
    left: -10%;
    background: radial-gradient(circle, var(--color-teal), transparent 70%);
    animation: float 20s infinite alternate ease-in-out;
}

.layer-2 {
    width: 50vw; 
    height: 50vw; 
    bottom: -10%; 
    right: -10%;
    background: radial-gradient(circle, var(--color-sand), transparent 70%);
    animation: float 25s infinite alternate-reverse ease-in-out;
}

@keyframes float { 
    0% { transform: translate(0,0); } 
    100% { transform: translate(60px, 40px); } 
}

/* ==========================================================================
   4. NAVIGATION (NAVBAR & MENU)
   ========================================================================== */

.navbar {
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 1.5rem 0; 
    z-index: 9999 !important; 
    transition: all 0.4s var(--ease-smooth);
}

.navbar.scrolled {
    background: rgba(59, 47, 47, 0.9);
    backdrop-filter: blur(12px); 
    padding: 1rem 0;
    border-bottom: 1px solid rgba(221, 235, 230, 0.05);
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-img { 
    height: 45px; 
    width: auto; 
    display: block; 
    transition: transform 0.3s ease; 
}

.nav-logo:hover .logo-img { 
    transform: scale(1.05); 
}

.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 3rem; 
}

.nav-link {
    text-decoration: none; 
    color: var(--text-main); 
    font-weight: 500;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.85rem; 
    transition: color 0.3s;
}

.nav-link:hover { 
    color: var(--color-sand); 
}

.hamburger {
    display: none; 
    flex-direction: column; 
    justify-content: space-between;
    width: 30px; 
    height: 20px; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    z-index: 10001;
}

.hamburger span { 
    width: 100%; 
    height: 2px; 
    background-color: var(--color-sand); 
    transition: 0.3s; 
}

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed; 
    inset: 0; 
    background-color: var(--color-dark);
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 9000; 
    transform: translateY(-100%); 
    transition: 0.6s var(--ease-smooth);
}

.mobile-menu-overlay.active { 
    transform: translateY(0); 
}

.mobile-nav-links { 
    list-style: none; 
    text-align: center; 
}

.mobile-link {
    font-family: var(--font-display); 
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    font-weight: 800; 
    color: var(--color-sand); 
    text-decoration: none;
    text-transform: uppercase; 
    display: block; 
    margin: 1.5rem 0;
}

.nav-link.active {
    color: var(--color-teal) !important;
    position: relative;
}

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

.mobile-link.mobile-active {
    color: var(--color-sand) !important;
    font-weight: 800;
    border-left: 4px solid var(--color-teal);
    padding-left: 15px;
}

/* ==========================================================================
   5. BOUTONS & ÉLÉMENTS UI
   ========================================================================== */

.btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 1rem 2.5rem; 
    border-radius: 50px; 
    text-decoration: none;
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-size: 0.85rem; 
    transition: all 0.3s ease;
}

.btn--primary { 
    background: var(--color-teal); 
    color: white; 
    box-shadow: 0 10px 30px rgba(107, 162, 146, 0.3); 
}

.btn--primary:hover { 
    background: #5a8c7d;
    transform: translateY(-2px); 
    box-shadow: 0 15px 40px rgba(107, 162, 146, 0.4); 
}

.btn--outline { 
    border: 2px solid var(--color-sand); 
    color: var(--color-sand); 
    background: transparent; 
}

.btn--outline:hover { 
    background: var(--color-sand); 
    color: var(--color-dark); 
}

.btn-secondary {
    display: inline-flex; 
    align-items: center; 
    gap: 12px;
    padding: 14px 32px; 
    border: 1px solid var(--color-teal);
    color: var(--color-teal); 
    text-decoration: none;
    font-family: var(--font-display); 
    font-weight: 600;
    text-transform: uppercase; 
    font-size: 0.9rem; 
    border-radius: 50px; 
    transition: all 0.3s ease;
}

.btn-secondary:hover { 
    background-color: var(--color-teal); 
    color: var(--color-dark); 
    transform: translateY(-3px); 
}

.btn-secondary svg { 
    transition: transform 0.3s ease; 
}

.btn-secondary:hover svg { 
    transform: translateX(5px); 
}

.btn--submit {
    background-color: var(--color-teal) !important;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif !important; 
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 40px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn--submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.view-more-container { 
    text-align: center; 
    margin-top: 4rem; 
}

/* ==========================================================================
   6. ACCUEIL & HERO
   ========================================================================== */

.hero {
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    position: relative;
    background-image: linear-gradient(rgba(59, 47, 47, 0.85), rgba(59, 47, 47, 0.85)), url('assets/img/Background-Titre-Pa-Design.jpg');
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
}

.hero-title { 
    font-size: clamp(2rem, 5vw, 2.6rem) !important; 
    text-transform: uppercase; 
    margin-bottom: 1.5rem; 
    color: var(--color-sand);
}

.hero-subtitle { 
    font-size: 1.2rem; 
    max-width: 650px; 
    margin-bottom: 3rem; 
    border-left: 4px solid var(--color-teal); 
    padding-left: 1.5rem; 
}

.hero-actions { 
    display: flex; 
    align-items: center; 
    gap: 2rem; 
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.hero-content h1 {
    font-size: 3rem;
}

.hero-content p {
    font-size: 2rem;
    line-height: 1.2;
}

.hero-content, 
.project-hero .hero-content {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

/* ==========================================================================
   7. PROJETS (LISTING & GRILLES)
   ========================================================================== */

.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
}

.project-card { 
    display: block;
    position: relative;
}

.project-image-wrapper {
    position: relative; 
    overflow: hidden; 
    height: 300px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: var(--border-radius); 
    transition: all 0.4s var(--ease-smooth);
}

.project-info { 
    margin-top: 1.5rem; 
    display: flex;
    flex-direction: column;
    width: 100% !important;
    box-sizing: border-box;
}

.project-card:nth-child(odd) .project-info {
    align-items: flex-start;
    text-align: left;
}

.project-card:nth-child(even) .project-info {
    align-items: flex-end;
    text-align: right;
}

.project-info h4 { 
    font-size: 1.4rem; 
    color: var(--color-sand); 
    margin-bottom: 0.4rem; 
    font-family: var(--font-display);
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 0;
}

.project-info p {
    margin: 0;
    font-size: 0.9rem; 
    color: var(--text-secondary); 
}

.project-category {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    background-color: var(--color-teal);
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.project-card:hover .project-category {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.4);
}

.project-card:nth-child(odd) .project-category { align-self: flex-start; }
.project-card:nth-child(even) .project-category { align-self: flex-end; }

/* Spécifique Accueil - Services/Projets */
.visual-web { background-color: var(--color-teal); }
.visual-brand { background-color: var(--color-sand); }
.visual-video { background-color: var(--color-light); }

.project-image-wrapper h3 { 
    font-size: 3rem; 
    position: relative; 
    z-index: 10; 
    transition: transform 0.4s var(--ease-smooth); 
}

.visual-web h3 { color: white; }
.visual-brand h3 { color: var(--color-dark); }
.visual-video h3 { color: var(--color-dark); }

#services .project-card:hover .project-image-wrapper {
    transform: translateY(-10px);
    border-color: var(--color-teal);
    background-image: url('assets/img/stardust.png') !important;
    background-repeat: repeat !important;
    background-blend-mode: multiply !important;
    background-size: auto !important;
}

#services .project-card:hover h3 {
    transform: scale(1.1);
}

#projets h2 {
    margin-bottom: 3.5rem !important;
}

#projets .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

#projets .project-image-wrapper {
    height: 350px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

#projets .project-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
}

#projets .project-card:hover img { 
    transform: scale(1.1);
}

#projets a.project-link {
    text-decoration: none;
}

/* ==========================================================================
   8. PORTFOLIO PAGE
   ========================================================================== */

.hero-small {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    width: 100%;
    overflow: hidden;
    color: var(--color-sand);
}

.hero-small::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/img/Background-Section-Graphic-Design.jpg'); 
    background-size: cover;
    background-attachment: fixed; 
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-small::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 36, 32, 0.85);
    z-index: -1;
}

.hero-small h1 {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 2.6rem);
    text-transform: uppercase;
    color: var(--color-sand);
    margin-bottom: 1rem;
    font-weight: 800;
    z-index: 1;
}

.hero-small p {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    color: var(--color-light);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
    margin-top: 4rem;
}

.filter-btn {
    background: rgba(221, 235, 230, 0.05);
    border: 1px solid rgba(224, 192, 151, 0.2);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    cursor: pointer;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.4s var(--ease-smooth);
}

.filter-btn:hover {
    background: rgba(224, 192, 151, 0.1);
    border-color: var(--color-sand);
    transform: translateY(-2px);
    color: var(--color-sand);
}

.filter-btn.active {
    background: var(--color-sand);
    border-color: var(--color-sand);
    color: var(--color-dark);
    box-shadow: 0 10px 20px rgba(224, 192, 151, 0.2);
}

.filter-btn.active::after {
    display: none;
}

.portfolio-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 5%;
    padding: 100px 0;
    overflow: visible !important;
    align-items: start;
}

.portfolio-grid .project-card {
    position: relative;
    margin-bottom: 300px;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: visible !important;
}

.portfolio-grid .project-image-wrapper {
    position: relative;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1;
    transition: transform 0.5s ease;
}

.portfolio-grid .project-card:nth-child(odd) .project-image-wrapper {
    -webkit-mask-image: linear-gradient(to right, black 40%, transparent 90%);
    mask-image: linear-gradient(to right, black 40%, transparent 90%);
}

.portfolio-grid .project-card:nth-child(even) .project-image-wrapper {
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent 90%);
    mask-image: linear-gradient(to left, black 40%, transparent 90%);
}

.portfolio-grid .project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-smooth);
}

.portfolio-grid .project-card:hover .project-image-wrapper img {
    transform: scale(1.1);
}

.portfolio-grid .project-info {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 60%;
    pointer-events: none;
}

.portfolio-grid .project-info h4 {
    font-size: clamp(1.8rem, 2vw, 2.8rem);
    color: var(--color-sand);
    line-height: 1.2;
    text-transform: uppercase;
    font-family: var(--font-display);
}

.portfolio-grid .project-info p {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 10px;
    color: var(--text-main);
    opacity: 0.8;
}

.portfolio-grid .project-card:nth-child(odd) .project-info {
    left: 65%;
    text-align: left;
}

.portfolio-grid .project-card:nth-child(even) .project-info {
    right: 65%;
    text-align: right;
}

/* ==========================================================================
   9. PROJET DÉTAILLÉ & GALERIE
   ========================================================================== */

.project-hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a1614;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 35%), linear-gradient(to bottom, rgba(26, 22, 20, 0.2) 0%, rgba(26, 22, 20, 0.6) 50%, rgba(26, 22, 20, 0.95) 100%);
    z-index: 2;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.detail-block {
    margin-bottom: 4rem;
}

.detail-block h3 {
    font-family: 'Syne', sans-serif;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.detail-block h3 {
    margin-bottom: 1rem;
}

.detail-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

.detail-block p a {
    color: var(--color-teal);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.detail-block p a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-teal);
    transition: width 0.3s ease;
}

.detail-block p a:hover {
    color: var(--color-sand);
}

.detail-block p a:hover::after {
    width: 100%;
}

.client-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(15px);
    position: sticky;
    top: 120px;
}

.client-info {
    margin-bottom: 2rem;
}

.client-info:last-child { margin-bottom: 0; }

.client-info span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    margin-bottom: 0.8rem;
}

.client-info h4 {
    font-size: 1.5rem;
    color: var(--color-light);
}

.client-info ul {
    list-style: none;
    padding: 0;
}

.client-info ul li {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.client-info ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

.gallery-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
}

.gallery-layout img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.img-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.project-page .section {
    padding-top: 4rem; 
    padding-bottom: 2rem;
}

.project-details {
    padding-bottom: 0 !important;
}

.project-gallery {
    padding-top: 2rem !important;
}

.project-page .gallery-layout {
    margin-top: 0;
}

/* ==========================================================================
   10. PAGE SERVICES
   ========================================================================== */

.service-block {
    position: relative;
    margin-bottom: 150px;
}

.service-number {
    position: absolute;
    top: -50px;
    left: -20px;
    font-family: 'Syne', sans-serif;
    font-size: 12rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    line-height: 1;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch; 
    position: relative;
    z-index: 1;
}

.service-content.inverse {
    direction: rtl;
}
.service-content.inverse .service-info,
.service-content.inverse .service-visual {
    direction: ltr;
}

.service-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.service-info h2 {
    font-size: 3rem;
    color: var(--color-teal);
    margin-bottom: 25px;
    line-height: 1.1;
    margin-top: 0;
}

.service-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.service-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
    color: var(--color-sand);
}

.service-list li::before {
    content: "→";
    margin-right: 15px;
    color: var(--color-teal);
}

.service-visual {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.5s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    display: block;
    transition: transform 0.8s ease, filter 0.6s ease;
}

.service-block:hover .service-visual {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.service-block:hover .service-visual img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ==========================================================================
   11. CONTACT
   ========================================================================== */

.contact-modern-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    padding-bottom: 100px;
}

.contact-visual {
    flex: 0.8;
    position: relative;
    padding-right: 50px;
}

.photo-container {
    position: relative;
    z-index: 1;
}

.floating-photo {
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 75%, 
        rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 75%, 
        rgba(0,0,0,0) 100%);
}

.contact-visual:hover .floating-photo {
    transform: scale(1.05);
}

.contact-form-container {
    flex: 1.2;
    z-index: 2;
}

.contact-intro h2 {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--color-sand);
}

.minimal-form {
    margin-top: 40px;
}

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

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group .bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--color-primary);
    transition: 0.4s ease all;
}

.input-group input:focus ~ .bar,
.input-group textarea:focus ~ .bar {
    width: 100%;
}

.status-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: var(--color-teal);
    color: white;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.status-notification.show {
    transform: translateY(0);
}

.status-notification.error {
    background: #e74c3c;
}

.status-icon {
    font-size: 1.2rem;
}

.contact-info-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.info-item {
    text-decoration: none;
    text-align: center;
}

.info-item .label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 5px;
}

.info-item .value {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--color-sand);
    font-size: 1.2rem;
}

/* ==========================================================================
   12. PAGES LÉGALES
   ========================================================================== */

.legal-text h3 {
    margin: 2rem 0 1rem;
    color: var(--color-teal);
    font-size: 1.3rem;
}

.legal-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.legal-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    list-style-type: square;
}

.legal-separator {
    margin: 4rem 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   13. FOOTER GLOBAL
   ========================================================================== */

#main-footer { 
    width: 100%; 
    color: var(--color-sand); 
}

.footer-cta-content {
    position: relative; 
    padding: 160px 0; 
    text-align: center;
    background-image: url('assets/img/iStock-1307017356-1.jpg');
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    overflow: hidden;
}

.footer-overlay { 
    position: absolute; 
    inset: 0; 
    background-color: rgba(59, 47, 47, 0.85); 
    z-index: 1; 
}

.footer-text-rel { 
    position: relative; 
    z-index: 2; 
}

.footer-text-rel h2 { 
    font-size: 2.5rem; 
    margin-bottom: 1rem;
    color: var(--color-sand);
}

.footer-text-rel p { 
    color: var(--color-light); 
    margin-bottom: 2rem; 
}

#main-footer .footer-text-rel a.btn-primary {
    display: inline-block;
    background-color: var(--color-teal);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(107, 162, 146, 0.3);
    border: none;
    cursor: pointer;
}

#main-footer .footer-text-rel a.btn-primary:hover {
    background-color: #5a8c7d;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(107, 162, 146, 0.4);
}

#main-footer .footer-text-rel a.btn-primary:active {
    transform: translateY(-1px);
}

.footer-bottom { 
    background-color: var(--color-dark); 
    padding: 30px 0; 
    position: relative; 
    z-index: 3; 
}

.footer-bottom-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.9rem; 
    opacity: 0.8; 
}

.footer-links { 
    display: flex; 
    gap: 20px; 
}

.footer-links a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    transition: color 0.3s; 
}

.footer-links a:hover { 
    color: var(--color-teal); 
}

/* ==========================================================================
   14. UTILITAIRES & ANIMATIONS
   ========================================================================== */

.reveal-text, 
.reveal-up { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: 0.8s var(--ease-smooth); 
}

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

.reveal-left { 
    transform: translateX(-80px); 
    opacity: 0; 
    transition: all 1s var(--ease-smooth);
}

.reveal-right { 
    transform: translateX(80px); 
    opacity: 0; 
    transition: all 1s var(--ease-smooth);
}

.reveal-left.is-visible, 
.reveal-right.is-visible { 
    transform: translateX(0); 
    opacity: 1; 
}

/* ==========================================================================
   15. VIDÉO & CAROUSEL
   ========================================================================== */

.project-hero.video-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-bg {
    width: 110vw; 
    height: 61.87vw; 
    min-height: 110vh;
    min-width: 195.55vh;
    filter: contrast(1.05) brightness(0.9);
}

.project-hero.video-hero .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.project-video-carousel h3 {
    margin-bottom: 2rem;
    color: var(--color-sand);
    font-family: var(--font-display);
    text-transform: uppercase;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 10px; 
    box-sizing: border-box;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: var(--border-radius);
}

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

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

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

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999; 
    background: rgba(26, 26, 26, 0.9); 
    backdrop-filter: blur(4px);
    color: var(--color-sand);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto; 
}

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

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

.carousel-nav:hover {
    background: var(--color-teal);
}

/* ==========================================================================
   16. BLOG
   ========================================================================== */

.blog-grid {
    display: grid !important;
    /* Crée 3 colonnes égales si possible, sinon s'adapte */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 50px !important;
}

.blog-card {
    max-width: 100%; /* Empêche de déborder */
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-teal);
}

.blog-card h2 {
    font-family: var(--font-display);
    color: var(--color-sand);
    font-size: 1.5rem;
    margin: 15px 0;
}

.article-body h3 {
    font-family: 'Syne', sans-serif;
    color: var(--color-sand);
    margin: 40px 0 20px 0;
    font-size: 1.8rem;
}

.article-body p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.article-body ul {
    margin: 25px 0;
}

.article-body li {
    margin-bottom: 15px;
    padding-left: 10px;
}

/* ==========================================================================
   17. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

.mobile-break { display: none; }

/* Desktop Large & Specifics */
@media (min-width: 1025px) {
    .portfolio-grid .project-card:nth-child(odd) {
        align-items: flex-start;
    }
    .portfolio-grid .project-card:nth-child(even) {
        transform: translateY(400px);
        align-items: flex-end;
    }
}

/* Tablet / Small Desktop */
@media (max-width: 1024px) {
    .nav-menu, .nav-cta { display: none !important; }
    .hamburger { display: flex !important; }
    .portfolio-grid { grid-template-columns: 1fr !important; gap: 60px !important; }
    .portfolio-grid .project-info { text-align: left !important; position: relative; left: 0 !important; transform: none; }
    .project-details.container,
    .project-gallery.container {
        width: 100%;
        padding-left: 25px !important;
        padding-right: 25px !important;
        box-sizing: border-box;
    }
    .project-gallery img {
        max-width: 100%;
        height: auto;
    }
}

/* Tablet Specific (Services) */
@media (max-width: 992px) {
    .service-content, .service-content.inverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }
    .service-visual {
        height: 350px;
    }
    .service-number {
        font-size: 8rem;
    }
    .service-info h2 {
        font-size: 2.2rem;
    }
}

/* Mobile & Tablet Portrait */
@media (max-width: 768px) {
    /* Contact Page Adjustments */
    .contact-modern-wrapper { flex-direction: column; }
    .contact-visual { order: -1; max-width: 300px; }
    .minimal-form .input-row { grid-template-columns: 1fr; gap: 0; }
    .contact-info-footer { flex-direction: column; gap: 30px; }

    /* Video Carousel Adjustments */
    .carousel-nav { display: none; }

    /* General Layout Adjustments */
    .mobile-break { display: block; }

    .hero, .hero-small {
        padding-top: 100px !important;
        min-height: auto !important;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-content {
        text-align: left !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    .hero-title, .hero-content h1, .hero-small h1 { 
        font-size: 1.4rem !important; 
        text-align: left !important;
        line-height: 1.2 !important;
        width: 100% !important;
        margin-top: 20px !important;
    }

    .hero-subtitle p, .hero-content p, .hero-small p {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
        text-align: left !important;
        margin-top: 10px !important;
    }

    .details-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }
    .client-card {
        width: 100% !important;
        position: static !important;
        padding: 25px !important;
        margin-top: 20px !important;
    }
    .project-page .section {
        padding: 40px 0 !important;
    }
    .project-hero {
        padding: 0 40px !important;
    }
    .projects-grid, #recent-projects-container, .expertise-grid { 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        padding: 0 !important;
    }
    .project-card h3, .expertise-card h3, .visual-brand h3 {
        font-size: 1.4rem !important;
        letter-spacing: 0px !important;
        word-break: break-all !important;
    }
    .project-card {
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto !important;
    }   
    .portfolio-grid .project-info {
        width: 100%;
        .carousel-nav {
            width: 40px;
            height: 40px;
            background: var(--color-teal);
            color: #1a1a1a;
            opacity: 1 !important;
            visibility: visible !important;
        }
        .carousel-nav.prev {
            left: 15px;
        }
        .carousel-nav.next {
            right: 15px;
        }
    }

    .portfolio-grid .project-info h4 {
        font-size: 1.5rem !important; 
        white-space: normal !important; 
        overflow-wrap: break-word;
        max-width: 100%;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        margin-top: 25px !important;
    }
    .hero-actions .btn {
        width: 100% !important;
        text-align: center !important;
    }
    .filter-btn {
        padding: 8px 15px !important;
        font-size: 0.9rem !important;
    }

    .img-group {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .project-details.container,
    .project-gallery.container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}