:root {
    --main-bg: #000000;
    --accent-color: #d0ced2; 
    --text-light: #ffffff;
    --font-main: 'League Spartan', sans-serif;
    --f-unit: 16px;
    --f-button-bg: rgba(0, 0, 0, 0.4);
    --f-button-color: var(--accent-color);
    --f-button-hover-bg: rgba(0, 0, 0, 0.6);
}

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

html { 
    scroll-behavior: smooth; 
    padding-left: 10px; 
    padding-right: 10px;
    overflow-x: hidden;
}

body { 
    background-color: var(--main-bg);
    color: var(--text-light);
    font-family: var(--font-main);
    margin: 0;
    line-height: 1.6;
}

/* --- STRUCTURE --- */
.container { 
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.container-column { 
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}
.section-padding { padding: 75px 0; }
.bg-darker { background-color: #0a0a0a; }

/* --- HEADER & MENU --- */
.main-header { 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding: 20px 0; 
    position: sticky; 
    top: 0; 
    background: rgba(0,0,0,0.9); 
    z-index: 1000;
    overflow-x: hidden;
}
.main-header .container {
    display: flex;
    justify-content: space-between; /* Logo à gauche, Menu à droite */
    align-items: center;
    max-width: 100%;
}
.logo { 
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: auto;
    min-width: 0; /* Permet au flex de shrink */
    flex-shrink: 1;
}
.logo-link {
    display: flex;
    flex-shrink: 0;
}

.logo-img {
    height: 75px;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05); /* Petit effet au survol */
}

.logo-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;      /* Empêche le nom de "tomber" à la ligne */
    line-height: 1.1;
}
.designer-name {
    font-weight: 700;
    font-size: 1.5rem;
}
.designer-title {
    font-size: 0.8rem;
    color: var(--accent-color);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px; margin: 0;
}
.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
}
.nav-menu a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
}
.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
    transform-origin: center;
}
/* Hamburger to X animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- HERO --- */
.hero { 
    height: 85vh; 
    background: url("../images/plan_background-QnPn86p.jpg") no-repeat center center / cover; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-content h1 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin: 0;
    background-color: #000;
    opacity: 0.9;
}
.hero-content p {
    background-color: #000;
    opacity: 0.9;
    padding: 10px;
}

.btn-primary { 
    display: inline-block; 
    background: var(--accent-color); 
    color: #000; 
    padding: 15px 40px; 
    text-decoration: none; 
    font-weight: bold; 
    margin-top: 30px; 
    transition: 0.3s; 
    border: none; 
    cursor: pointer; 
    text-transform: uppercase; 
}

/* --- SECTIONS STYLE --- */
.section-title { 
    font-size: 2.2rem; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    margin-bottom: 50px; 
    border-left: 4px solid var(--accent-color); 
    padding-left: 20px; 
}

/* --- MISSION & PHILOSOPHY --- */
.mission-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}
.lead-text {
    font-size: 1.4rem;
    font-weight: 300;
}
.philosophy-box { 
    border-left: 1px solid var(--accent-color); 
    padding: 30px; 
    font-style: italic; 
    color: var(--accent-color); 
    background: rgba(255, 255, 255, 0.03); 
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px, 1fr));
    gap: 30px; 
}
.service-item {
    padding: 40px;
    background: #111;
    border: 1px solid #222;
    transition: 0.3s;
}
.service-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}
.service-icon { 
    font-size: 0.8rem; 
    color: var(--accent-color); 
    border: 1px solid var(--accent-color); 
    padding: 5px 10px; 
    display: inline-block; 
    margin-bottom: 20px; 
}

/* --- RÉALISATIONS --- */
.projects-grid {
   display: flex;
   flex-direction: column;
   gap: 60px; /* Bel espace entre les réalisations */
   max-width: 100%; /* Largeur optimale pour l'impact visuel */
   margin: 0 auto;
}

.project-card {
   position: relative;
   overflow: hidden;
   background: #0a0a0a;
   height: auto !important; /* On libère la hauteur */
   border: 1px solid #1a1a1a;
   border-radius: 12px;
   padding: 0; /* On laisse la grille toucher les bords en haut */
   margin-bottom: 30px;
   cursor: default; /* Le clic se fera sur les images maintenant */
}
.project-image { 
    width: 100%; height: 100%; 
    background-size: cover; background-position: center; 
    transition: 0.6s; filter: grayscale(30%); 
}
.project-card:hover .project-image {
    transform: scale(1.05);
    filter: grayscale(0);
}
.project-info { 
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px; 
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); 
}
/* 3. LE CSS POUR LA GRILLE  */
/* look "Facebook" pour Anabel : */
.project-images-grid {
   display: grid;
   grid-template-columns: 2fr 1fr;
   grid-template-rows: 200px 200px;
   gap: 4px;
   overflow: hidden;
}
.grid-item.large { 
    grid-row: span 2 !important; /* LA ligne cruciale */ 
}
.grid-item {
   position: relative;
   background: #222;
}
.grid-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   filter: grayscale(20%);
   transition: 0.4s;
}
.grid-item:hover img {
   filter: grayscale(0%);
   transform: scale(1.03);
}
.project-content {
   padding: 25px;
}
.project-content h3 {
   color: var(--accent-color);
   text-transform: uppercase;
   letter-spacing: 2px;
   font-size: 1.2rem;
   margin-bottom: 15px;
}
.more-images-overlay {
   position: absolute;
   top: 0; left: 0; width: 100%; height: 100%;
   background: rgba(0,0,0,0.6);
   color: white;
   display: flex; align-items: center; justify-content: center;
   font-size: 24px; font-weight: bold;
   pointer-events: none;
}
.description {
    transition: max-height 0.7s ease-in-out;
    overflow: hidden;
    margin-bottom: 10px;
    color: #ccc;
    line-height: 1.5em;
    position: relative;
}
/* L'effet de fondu sur la 2ème ligne quand c'est fermé */
.description.collapsed {
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
.description.collapsed::after {
    /* assure que la hauteur de base ici */
    max-height: 4.5em;
    /* "mange" la fin de la 2ème ligne */
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    /* cache le débordement */
    overflow: hidden;
}

.btn-see-more {
   background: none;
   border: none;
   color: var(--accent-color);
   font-family: var(--font-main);
   text-transform: uppercase;
   font-size: 0.8rem;
   font-weight: bold;
   cursor: pointer;
   padding: 0;
   letter-spacing: 1px;
}
.btn-see-more:hover {
   text-decoration: underline;
}

/* --- TÉMOIGNAGES --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-item { 
    background: rgba(255,255,255,0.02); padding: 40px; 
    border: 1px solid #1a1a1a; position: relative; 
}
.quote-icon { 
    font-size: 4rem; color: var(--accent-color); opacity: 0.2; 
    position: absolute; top: 10px; left: 20px; 
}
.client-name { 
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase; 
    font-size:0.8rem;
    display: block;
    margin-top: 20px; 
}

/* --- CONTACT --- */
#contact .container {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}
.contact-form-container {
    flex: 1;
    background: #0a0a0a;
    padding: 40px;
    border: 1px solid #1a1a1a;
    box-sizing: border-box;
}
.form-group {
    margin-bottom: 20px;
}
.form-group input, .form-group textarea { 
    width: 100%;
    padding: 15px;
    background: #111;
    border: 1px solid #333; 
    color: white;
    font-family: inherit;
    box-sizing: border-box;
}
.input-error {
    border: 2px solid #ff4d4d !important;
    background: #2a1111 !important; /* Un léger fond rouge sombre pour accentuer */
}

.error-asterisk {
    color: #ff4d4d !important;
    display: block; /* Pour que le message d'erreur s'affiche SOUS l'input */
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

/* --- FOOTER --- */
.main-footer { 
    background-color: #050505; padding: 60px 0 20px; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}
.footer-content { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 40px; margin-bottom: 40px; 
}
.footer-section h4 { 
    color: var(--accent-color); text-transform: uppercase; 
    letter-spacing: 2px; margin-bottom: 20px; 
}
.footer-section p { font-size: 0.9rem; opacity: 0.7; }
.footer-bottom { 
    text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); 
    font-size: 0.8rem; opacity: 0.5; 
}


/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }



/* --- RESPONSIVE 1100px --- */
@media (max-width: 1100px) {
    .mission-grid, .services-grid, .projects-grid, #contact .container {
        grid-template-columns: 1fr; gap: 40px;
    }
    #contact .container {
        flex-direction: column !important; /* Aligne verticalement */
        align-items: stretch !important;   /* Prend toute la largeur */
        gap: 40px;                         /* Espace entre le texte et le formulaire */
    }
    .contact-info {
        text-align: center;                /* Centre le texte pour un meilleur look mobile */
    }
    .contact-form-container {
        width: 100%;                       /* Le formulaire prend toute la place */
        padding: 30px 20px;                /* Ajustement du padding interne */
    }
}

/* --- RESPONSIVE 992px --- */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: #000; 
        flex-direction: column; 
        justify-content: center; 
        transition: 0.4s;
        z-index: 1050;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .nav-menu a {
        font-size: 1.5rem;
        padding: 10px 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    /* Header fix pour tablettes */
    .logo-img {
        height: 60px;
    }
    .designer-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
   /* Header fix pour mobile */
   .logo {
       gap: 10px;
   }
   .logo-img {
       height: 50px;
   }
   .designer-name {
       font-size: 1.1rem;
   }
   
   .project-images-grid {
     /*grid-template-columns: 1fr; /* Une seule colonne */
     /*grid-template-rows: 250px 150px 150px; /* Les images s'empilent */
     display: flex; /* On abandonne la grille complexe */
     flex-direction: column;
     gap: 8px;
     height: auto; /* On laisse la hauteur s'adapter aux photos */
   }
   .grid-item img {
     /*height: auto; /* L'image n'est plus forcée à 200px */
     width: 100%;
     max-width: 400px; /* On limite pour ne pas que ça soit immense */
     object-fit: contain; /* Affiche TOUTE la photo sans rien couper */
     /* OU garde object-fit: cover mais avec height: auto, le rognage sera minime */
   }

   .description.collapsed {
        /* Le fondu commence plus bas (75%) pour laisser 3 lignes pleines et la 4ème en fondu */
        mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    }
   .btn-see-more {
      padding: 12px 20px;
      display: block; /* Prend toute la largeur pour être facile à presser */
      width: 100%;
      text-align: center;
    }
    
   /* Amélioration texte sur mobile */
   .section-title {
       font-size: 1.5rem;
       letter-spacing: 2px;
   }
   .lead-text {
       font-size: 1.1rem;
   }
   .hero-content h1 {
       font-size: 2rem;
       letter-spacing: 3px;
   }
   .service-item {
       padding: 25px;
   }
}

/* --- RESPONSIVE MOBILE (petits écrans) --- */
@media (max-width: 480px) {
    html {
        padding-left: 0;
        padding-right: 0;
    }
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    .site-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .container, .container-column {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }
    .section-padding {
        padding: 40px 0;
    }
    
    /* Header mobile - FIX overflow iPhone */
    .main-header {
        padding: 8px 0;
        width: 100%;
    }
    .main-header .container {
        padding: 0 10px;
        gap: 8px;
        width: 100%;
        justify-content: space-between;
    }
    .logo {
        gap: 6px;
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 50px);
    }
    .logo-img {
        height: 36px;
        width: auto;
        flex-shrink: 0;
    }
    .logo-text {
        min-width: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .designer-name {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .designer-title {
        font-size: 0.55rem;
    }
    .menu-toggle {
        flex-shrink: 0;
        position: relative;
        z-index: 1100;
    }
    
    /* Contact form mobile fix */
    #contact .container {
        padding: 0 10px;
    }
    .contact-form-container {
        width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    .form-group {
        width: 100%;
    }
    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Hero mobile */
    .hero {
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .btn-primary {
        padding: 12px 25px;
        font-size: 0.85rem;
    }
    
    /* Sections mobile */
    .section-title {
        font-size: 1.3rem;
        letter-spacing: 1px;
        margin-bottom: 30px;
        padding-left: 15px;
    }
    .lead-text {
        font-size: 1rem;
    }
    .philosophy-box {
        padding: 20px;
        font-size: 0.95rem;
    }
    
    /* Services mobile */
    .service-item {
        padding: 20px;
    }
    .service-item h3 {
        font-size: 1rem;
    }
    
    /* Projets mobile */
    .project-content h3 {
        font-size: 1rem;
    }
    .project-content {
        padding: 15px;
    }
    
    /* Témoignages mobile */
    .testimonial-item {
        padding: 25px;
        font-size: 0.95rem;
    }
    .quote-icon {
        font-size: 2.5rem;
    }
    
    /* Contact mobile */
    .contact-form-container {
        padding: 20px 15px;
    }
    .form-group input, .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Empêche le zoom auto sur iOS */
    }
    
    /* Footer mobile */
    .main-footer {
        padding: 40px 0 15px;
    }
    .footer-section h4 {
        font-size: 0.9rem;
    }
}

