/* -----------------------------------------------------------
   POLICES LOCALES
----------------------------------------------------------- */
@font-face {
    font-family: 'Monotype Corsiva';
    src: url('font/Monotype-Corsiva-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Monotype Corsiva';
    src: url('font/Monotype-Corsiva-Regular-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Monotype Corsiva';
    src: url('font/Monotype-Corsiva-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Monotype Corsiva';
    src: url('font/Monotype-Corsiva-Bold-Italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/* -----------------------------------------------------------
   RESET & VARIABLES
----------------------------------------------------------- */
:root {
    --bg-concrete: #f5f5f5;
    --text-ink: #1a1a1a;

    --accent-yellow: #FFD700;
    --accent-cyan: #00E5FF;
    --accent-pink: #FF00FF;

    --font-title: 'Anton', sans-serif;
    --font-marker: 'Permanent Marker', cursive;
    --font-body: 'Roboto Condensed', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-concrete);
    color: var(--text-ink);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: 100px;
}

/* Texture Grain / Noise */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { width: 100%; height: auto; display: block; }

/* -----------------------------------------------------------
   TYPOGRAPHY & UTILITIES
----------------------------------------------------------- */
h1, h2, h3 {
    font-family: var(--font-title);
    text-transform: uppercase;
    line-height: 0.9;
}

.container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
}

/* -----------------------------------------------------------
   1. HEADER
----------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: #b0b0b0;
    border-bottom: 2px solid #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.logo-container img {
    height: 70px;
    width: auto;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.2));
    display: block;
}

.header-slogan {
    font-family: 'Monotype Corsiva', cursive;
    color: #000;
    font-size: 1.7rem;
    font-weight: bold;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    pointer-events: none;
    text-shadow: none;
    z-index: 1001;
}

@media(max-width: 900px) {
    .header-slogan {
        font-size: 1rem;
        width: 50%;
        line-height: 1.2;
    }
}

.menu-toggle {
    font-size: 2rem;
    cursor: pointer;
    color: #000;
    display: none;
    z-index: 2000;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    height: 100%;
}

.nav-links a {
    font-family: var(--font-title);
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #000;
    text-shadow: none;
    position: relative;
    top: 2px;
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

.header-contact {
    border: 2px solid #000;
    padding: 8px 20px;
    transition: 0.3s;
}
.header-contact:hover {
    background: #000;
    color: #fff !important;
    text-shadow: none !important;
}

/* --- MENU LATERAL (SIDEBAR) --- */
@media(max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: #b0b0b0;
        border-left: 2px solid #000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding: 0;
        z-index: 3000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .nav-links.active {
        transform: translateX(0);
    }
}

/* -----------------------------------------------------------
   2. SECTION PORTFOLIO (GRID)
----------------------------------------------------------- */
.portfolio-main {
    padding: 60px 0 100px;
    min-height: 80vh;
}

.portfolio-header {
    margin-bottom: 40px;
    text-align: center;
}

.portfolio-logo-big {
    height: 120px;
    width: auto;
    margin: 0 auto 20px;
    display: block;
}

.portfolio-header h1 {
    font-size: 5.5rem;
    color: #000;
    margin-bottom: 10px;
}

.portfolio-header h1.page-title {
    font-size: clamp(2rem, 6vw, 3rem);
}

.portfolio-header p {
    font-family: var(--font-marker);
    font-size: 1.7rem;
    color: #666;
    font-weight: bold;
    transform: rotate(-1deg);
    display: inline-block;
}

.hero-text-slot {
    margin-top: 20px;
    font-size: clamp(1rem, 4vw, 1.6rem);
    font-weight: bold;
    font-family: 'Monotype Corsiva', cursive;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    border-left: 4px solid var(--accent-pink);
    background: rgba(255,255,255,0.5);
    text-align: center;
}

.category-separator {
    font-family: var(--font-title);
    font-size: 3.2rem;
    color: #000;
    margin: 60px 0 30px 0;
    padding-bottom: 10px;
    border-bottom: 4px solid var(--accent-yellow);
    display: inline-block;
    text-transform: uppercase;
}

.page-title {
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 6vw, 3rem);
    color: #000;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--accent-yellow);
    display: inline-block;
}

/* --- SYSTÈME DE GRILLE --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Grille responsive plus robuste */
    gap: 30px;
    margin-bottom: 50px;
}

.slot-card {
    background: #fff; /* Fond blanc pour uniformiser */
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 420px; /* Hauteur FIXE totale de la carte */
    overflow: hidden; /* Empêche tout débordement */
    transition: transform 0.2s, box-shadow 0.2s;
}

.slot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.image-wrapper {
    width: 100%;
    height: 260px; /* Hauteur FIXE de l'image */
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cadre proprement (ou contain selon préférence) */
    transition: transform 0.3s;
}

.slot-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.card-text-slot {
    padding: 15px;
    height: 160px; /* Hauteur FIXE du bloc texte (420 - 260) */
    background: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Cache le surplus de texte */
}

.card-text-slot h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: #000;
    text-transform: uppercase;
    
    /* Troncature du titre sur 2 lignes max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    flex-shrink: 0; /* Empêche le titre d'être écrasé */
}

.card-text-slot p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
    
    /* Troncature du texte restant */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Nombre de lignes visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -----------------------------------------------------------
   3. CONTACT FORM
----------------------------------------------------------- */
.contact-section {
    padding: 60px 0 100px;
    min-height: 80vh;
    display: flex;
    justify-content: center;
}

.form-wrapper {
    width: 100%;
    max-width: 700px;
    background: transparent;
}

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

.form-group label {
    display: block;
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #000;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    border: 3px solid #000;
    background: #fff;
    outline: none;
    transition: 0.3s;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-pink);
    box-shadow: 5px 5px 0px var(--accent-pink);
}

button[type="submit"] {
    width: 100%;
    padding: 20px;
    font-family: var(--font-title);
    font-size: 1.5rem;
    text-transform: uppercase;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background: var(--accent-yellow);
    color: #000;
    box-shadow: 5px 5px 0px #000;
    transform: translateY(-3px);
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.error-message {
    background: #f44336;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

/* -----------------------------------------------------------
   4. FOOTER
----------------------------------------------------------- */
footer {
    background-color: #b0b0b0;
    padding: 80px 20px;
    text-align: center;
    border-top: 4px solid var(--accent-pink);
    color: #111;
}

.footer-logo-img {
    height: 150px;
    width: auto;
    margin: 0 auto 30px;
    display: block;
}

.footer-phone {
    display: block;
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 4rem);
    color: #111;
    margin-bottom: 20px;
}
.footer-phone:hover { color: var(--accent-cyan); }

.footer-links a {
    font-size: 1.2rem;
    color: #555;
    margin: 0 15px;
}
.footer-links a:hover { color: var(--accent-pink); }

.copyright {
    margin-top: 50px;
    font-size: 0.9rem;
    color: #444;
    font-family: monospace;
}

/* -----------------------------------------------------------
   5. LIGHTBOX DÉTAILLÉE (image + texte complet + slider)
----------------------------------------------------------- */
#lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    overflow-y: auto;
    padding: 60px 20px 50px;
    cursor: pointer;
}

.lightbox-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    cursor: default;
}

.lightbox-close {
    position: fixed;
    top: 12px;
    right: 18px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.2s;
}
.lightbox-close:hover {
    background: #fff;
    color: #000;
}

/* Image simple */
#lightbox-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

/* Slider galerie */
#lightbox-slider {
    position: relative;
}
#slider-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    border: 2px solid #fff;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}
.slider-btn:hover { background: rgba(255,255,255,0.2); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.85rem;
    font-family: var(--font-body);
}

/* Bloc texte sous l'image */
.lightbox-text {
    background: #fff;
    padding: 22px 28px 26px;
}
.lightbox-text h3 {
    font-family: var(--font-title);
    font-size: 1.7rem;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1.1;
}
.lightbox-text p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #333;
    white-space: pre-wrap;
}
