/* --- CONFIGURATION --- */
:root {
    --orange: #d64933;
    --vert-fonce: #28645A;
    --vert-clair: #daf7dc;
    --jaune: #F9DB6D;
    --gris-texte: rgb(65, 65, 65);
    --blanc: #ffffff;
    --font-titre: 'Vickey', serif;
    --font-titre-bold: 'Vickey-Bold', serif;
    --font-corps: 'Futura-Book', sans-serif;
    --font-corps-bold: 'Futura-Bold', sans-serif;
    --transition: 0.3s ease;
}
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--orange) transparent;
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--orange);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #cc5200; /* Orange plus foncé au survol */
    cursor:pointer;
}


/* --- FONTS --- */
@font-face { font-family: 'Vickey'; src: url('https://juliettekiani.com/font/Vickey.woff2') format('woff2');font-display: swap; }
@font-face { font-family: 'Vickey-Bold'; src: url('https://juliettekiani.com/font/Vickey-Bold.woff2') format('woff2');font-display: swap; }
@font-face { font-family: 'Futura-Bold'; src: url('https://juliettekiani.com/font/Futura-Bold.woff2') format('woff2');font-display: swap; }
@font-face { font-family: 'Futura-Book'; src: url('https://juliettekiani.com/font/Futura-Book.woff2') format('woff2');font-display: swap; }

/* --- BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-corps); color: var(--gris-texte); line-height: 1.6; background:var(--blanc)}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- HEADER --- */
.splash-container { height: 100vh; max-width: 100vw; display: flex; justify-content: center; align-items: center; position: relative; background: url('https://juliettekiani.com/portfolio/juliette-kiani-graphiste-illustratrice-independant-freelance-bxl-bruxelles-brussels.avif') no-repeat center center/cover; z-index: 1000; }

.splash-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.1); }

.splash-content { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }

.splash-logo { width: 300px; max-width: 80%; height: auto; }

.splash-nav { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }

.splash-btn { padding: 10px 25px; letter-spacing: 1px; background: var(--orange); font-size:16px; color: var(--vert-clair); border: none; border-radius: 50px; font-family: var(--font-corps); text-transform: capitalize; cursor: pointer; transition: 0.3s; }

.splash-btn:hover { background: var(--vert-fonce); color: var(--vert-clair); }

.splash-scroll-text { position: absolute; bottom: 20px; color: var(--vert-fonce); font-family: var(--font-corps-bold); letter-spacing: 2px; }


.main-header { position: sticky; top: 0; z-index: 900; background: #28645A; display: flex; justify-content: space-between; padding: 15px 40px; }

.logo { height: 50px; width: auto; }
.main-nav ul {  display: flex; gap: 30px; list-style: none; }
.main-nav a { font-family: var(--font-corps); font-weight:600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 2px; color: var(--vert-clair);}
.main-nav a:hover, .main-nav a.active { color: var(--jaune); }

/* --- MOBILE MENU --- */
.burger-menu { display: none; flex-direction: column; gap: 5px; }
.burger-menu span { width: 25px; height: 3px; background: var(--vert-clair); transition: var(--transition); }
@media (max-width: 768px) {
    .burger-menu { display: flex; z-index: 101; }
    .main-nav { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--vert-fonce); display: flex; justify-content: center; align-items: center; transition: var(--transition); }
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; text-align: center; gap: 40px; }
    .main-nav a { color: var(--vert-clair); font-size: 1.5rem; }
}
.burger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.open span:nth-child(2) {
    opacity: 0;
}
.burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* --- FILTRES --- */
.filters-section { padding: 40px 20px; text-align: center; }
.filters-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.filter-btn { padding: 8px 16px; border: 1px solid var(--vert-fonce); color: var(--vert-fonce); font-family: var(--font-corps); text-transform: capitalize; font-size: 0.8rem; border-radius: 50px; transition: var(--transition); letter-spacing: 1px;}
.filter-btn:hover, .filter-btn.active { background: var(--vert-fonce); color: var(--vert-clair); }

/* --- GRILLE --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; padding: 20px 40px 80px; max-width: 1600px; margin: 0 auto; }
.client-card {     padding:40px 0 6px 0; background: var(--blanc); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition); position: relative; cursor: pointer; }
.client-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* CARTE MEDIA & NAV */
.card-media { position: relative; height: 360px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s; }

/* CARTE INFOS */
.card-info { padding: 20px; text-align: center; }
.card-info .project-title { display: none;}
.client-name { font-family: var(--font-titre-bold); color: var(--vert-fonce); font-size: 1.13rem; margin-bottom: 5px; }
.project-title { font-family: var(--font-corps); color: var(--orange); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- MODALE --- */
.modal { border: none; padding: 0; background: transparent; width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
.modal::backdrop { background: rgba(40, 100, 90, 0.95); }
.modal-wrapper { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--blanc); width: 96%; max-width: 1200px; max-height: 90vh; overflow-y: auto; border-radius: 12px; padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.close-modal { position: absolute; top: 6px; right: 20px; font-size: 2.3rem; opacity:.64;color: var(--orange); z-index: 10; outline: none;border: none;background: transparent;}
.close-modal:hover { opacity:1;}
.close-modal:focus,
.close-modal:active { outline: none; box-shadow: none;}


.modal-header { margin-bottom: 40px; padding-bottom: 10px; }
.modal-header h2 { font-family: var(--font-titre-bold); font-size: 1.8rem; color: var(--vert-fonce); }
.tags-container { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.modal-tag { background: var(--orange); color: var(--vert-clair); padding: 4px 10px; font-size: 0.8rem; text-transform: capitalize; letter-spacing:1px; border-radius: 50px;}

.modal-actions { margin: 20px 0; display: flex; gap: 15px; flex-wrap: wrap; }
.btn { padding: 10px 20px; text-transform: uppercase; font-family: var(--font-corps); font-size: 0.9rem; transition: var(--transition); border-radius: 50px; display: inline-block;letter-spacing:1px;  }
.btn-primary { background: var(--vert-fonce); color: var(--vert-clair); border: 1px solid var(--vert-fonce); }
.btn-primary:hover { background: var(--orange); border-color: var(--orange); }
.btn-secondary { border: 1px solid var(--gris-texte); color: var(--gris-texte); }
.btn-secondary:hover { background: var(--jaune); border-color: var(--jaune); }
/* LISTE PROJETS MODALE */
.modal-projects-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 60px !important;
    margin: 40px auto 50px !important;
    padding: 0 40px !important;
    max-width: 1200px !important;
}

.modal-project-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    width: 100% !important;
}

.modal-project-info {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

.modal-project-info h4 {
    color: var(--orange) !important;
    font-family: var(--font-titre-bold) !important;
    font-size: 1.4rem !important;
    margin: 0 0 10px 0 !important;
    font-weight: 600 !important;
    display: block !important;
}

.modal-project-info p {
    font-size: 1rem !important;
    color: #888 !important;
    margin: 0 !important;
    display: block !important;
}

.modal-project-images {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

.modal-project-img-wrapper {
    width: 100% !important;
    overflow: hidden !important;
    display: block !important;
}


.modal-project-img-wrapper img,
.modal-project-img-wrapper video,
.modal-project-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.modal-project-images .modal-project-img-wrapper:only-child {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important; /* Horizontal */
    align-items: center !important;     /* Vertical */
    max-width: 680px !important;
    margin: 0 auto !important;
}


@media (min-width: 768px) {
    .modal-header h2 {
        float: left;
        margin-top: 19px;
    }
    .tags-container {
        float: right;
        margin-top: 26px;
    }
}

.media-target {
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease-in-out;
}


        .contact-container {
            max-width: 800px;
            margin: 64px auto;
            background: var(--blanc);
            border-radius: 30px;
            padding: 60px;
            box-shadow: 0 10px 40px rgba(40, 100, 90, 0.15);
            animation: contact-fadeIn 0.8s ease-out;
        }

        @keyframes contact-fadeIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .contact-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .contact-h1 {
            font-family: var(--font-titre-bold);
            font-size: 2.6rem;
            color: var(--vert-fonce);
            margin: 0 0 15px 0;
        }

        .contact-subtitle {
            font-size: 1.2rem;
            color: var(--gris-texte);
            margin: 0;
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 25px;
            max-width: 524px;
    margin: auto;
        }

        .contact-field {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .contact-label {
            font-family: var(--font-corps-bold);
            font-size: 1.05rem;
            color: var(--vert-fonce);
        }

        .contact-required {
            color: var(--orange);
        }

        .contact-input,
        .contact-select,
        .contact-textarea {
            font-family: var(--font-corps);
            font-size: 1rem;
            padding: 15px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            background: var(--blanc);
            color: var(--gris-texte);
            transition: all var(--transition);
        }

        .contact-input:focus,
        .contact-select:focus,
        .contact-textarea:focus {
            outline: none;
            border-color: var(--vert-fonce);
            box-shadow: 0 0 0 3px rgba(40, 100, 90, 0.1);
        }

        .contact-select {
            cursor: pointer;
        }

        .contact-textarea {
            resize: vertical;
            min-height: 120px;
        }

        .contact-dynamic-fields {
            display: flex;
            flex-direction: column;
            gap: 25px;
            margin-top: 10px;
        }

        .contact-info-box {
            background: var(--jaune);
            padding: 20px;
            border-radius: 12px;
            border-left: 5px solid var(--orange);
            font-size: 0.95rem;
            margin-top: 10px;
        }

        .contact-buttons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .contact-btn {
            flex: 1;
            padding: 18px 30px;
            font-size: 1.1rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all var(--transition);
            text-decoration: none;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .contact-btn-email {
            background: var(--orange);
            color: var(--blanc);
            box-shadow: 0 4px 15px rgba(214, 73, 51, 0.3);
        }

        .contact-btn-email:hover {
            background: var(--vert-fonce);
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(40, 100, 90, 0.4);
        }

        .contact-btn-whatsapp {
            background: #25D366;
            color: var(--blanc);
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
        }

        .contact-btn-whatsapp:hover {
            background: #20BA5A;
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
        }

        .contact-hidden {
            display: none;
        }
/* Container */
.crea-container {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5; /* protège contre les widgets fixed */
}

/* Badge cliquable */
.crea-badge {
    
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255,255,255,.9);
  backdrop-filter: blur(5px);
  color: #1a1a1a;
  padding: 10px 18px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  transition: transform .4s cubic-bezier(.23,1,.32,1),
              box-shadow .4s cubic-bezier(.23,1,.32,1),
              background-color .3s;
  cursor: pointer;
  pointer-events: auto; /* force le clic */
}

/* Texte */
.crea-text {
  font-weight: 600;
  color: #000; 
}

/* Icône */
.crea-icon {
  font-size: 16px;
  display: inline-block;
  animation: lightning-strike 4s infinite;
}

/* Hover */
.crea-badge:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  background-color: #fff;
  color: #000;
  border-color: gold;
}

/* Animations */
@keyframes lightning-strike {
  0%, 85% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  88% {
    transform: scale(1.5) translateY(-2px);
    opacity: .7;
  }
  90% {
    transform: scale(1.2) translateY(0);
    opacity: 1;
  }
  92% {
    transform: scale(1.4) translateY(-1px);
    opacity: .8;
  }
  95% {
    transform: scale(1);
    opacity: 1;
  }
}



        /* Les blocs blancs individuels */
        .legal-block {
            background-color: var(--blanc);
            padding: 13px 64px 64px 64px;
            margin-bottom: 72px;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(40, 100, 90, 0.15);
            scroll-margin-top: 120px;
            animation: legal-fadeIn 0.6s ease-out;
        }

        @keyframes legal-fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .legal-block:nth-child(1) { animation-delay: 0.1s; }
        .legal-block:nth-child(2) { animation-delay: 0.2s; }
        .legal-block:nth-child(3) { animation-delay: 0.3s; }

        /* Titres */
        .legal-block h1 {
            font-family: var(--font-titre-bold);
            font-size: 2.8rem;
            color: var(--vert-fonce);
            text-align: center;
            margin: 0 0 40px 0;
        }

        .legal-block h2 {
            font-family: var(--font-titre);
            font-size: 2rem;
            color: var(--vert-fonce);
            border-bottom: 3px solid var(--jaune);
            padding-bottom: 15px;
            margin: 0 0 25px 0;
        }

        .legal-block h3 {
            font-family: var(--font-corps-bold);
            font-size: 1.3rem;
            color: var(--vert-fonce);
            margin: 25px 0 10px 0;
        }

        /* Paragraphes */
        .legal-block p {
            font-size: 1.05rem;
            margin-bottom: 15px;
            text-align: justify;
        }

        /* Liens */
        .legal-block a {
            color: var(--orange);
            text-decoration: underline;
            font-weight: 500;
            transition: all var(--transition);
        }

        .legal-block a:hover {
            color: var(--vert-fonce);
            opacity: 0.8;
        }

        /* Détails (encadré coloré) */
        .legal-details {
            background-color: var(--vert-clair);
            padding: 25px;
            border-radius: 15px;
            border-left: 5px solid var(--vert-fonce);
            margin-bottom: 20px;
        }

        .legal-details p {
            margin-bottom: 15px;
        }

        .legal-details p:last-child {
            margin-bottom: 0;
        }

        .legal-details strong {
            font-family: var(--font-corps-bold);
            color: var(--vert-fonce);
        }

        /* Responsive */
        @media (max-width: 768px) {
    .modal-projects-list {
        padding: 0 !important;
    }
    .modal-project-images {
        grid-template-columns: 1fr !important;
    }
    .modal-project-img-wrapper {
        width: 100% !important;
        margin: 0 auto !important;
    }
            .apropos-image-section {
              margin-bottom: 6px;

        }
            .legal-body {
                padding: 40px 15px;
            }


            .legal-block {
                margin-bottom: 25px;
            }

            .legal-block h1 {
                font-size: 2rem;
            }

            .legal-block h2 {
                font-size: 1.6rem;
            }

            .legal-block h3 {
                font-size: 1.1rem;
            }

            .legal-block p {
                font-size: 1rem;
            }

            .legal-details {
                padding: 20px;
            }
        }


/* Style du Footer */
.main-footer {

    padding: 40px 20px 20px 20px;
    font-family: var(--font-corps);
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Icones Réseaux Sociaux */
.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials img {
    width: 32px; /* Ajustez la taille selon vos besoins */
    height: auto;
    transition: transform var(--transition), opacity var(--transition);
}

.footer-socials a:hover img {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Texte et Copyright */
.footer-bottom {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-link {
    color: var(--orange);
    text-decoration: none;
    transition: color var(--transition);
    font-family: var(--font-corps-bold);
    letter-spacing: 1.13px;
}
.footer-link:hover {
    color: var(--orange);
}

/* Style de la signature crea-site */
.crea-container {
    margin-top: 10px;
    margin-bottom:26px;
}







        .apropos-container {
            max-width: 1200px;
            margin: 64px auto;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(40, 100, 90, 0.15);
            animation: apropos-fadeIn 0.8s ease-out;
            padding: 50px 26px;
        }
        @keyframes apropos-fadeIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .apropos-header {
            text-align: center;
        }

        .apropos-h1 {
            font-family: var(--font-titre-bold);
            font-size: 2.6rem;
            text-align:center;
            color: var(--orange);
            line-height: 1.2;
            animation: apropos-slideDown 0.8s ease-out;
            margin:auto;
        }

        @keyframes apropos-slideDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .apropos-subtitle {
            font-family: var(--font-corps);
            font-size: 1.5rem;
            color: var(--orange);
            margin: 0;
            animation: apropos-slideDown 0.8s ease-out 0.2s backwards;
        }

        .apropos-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            align-items: start;
        }

        .apropos-image-section {
            position: relative;
            overflow: hidden;
              margin-bottom: 120px;
            padding: 60px;
        }

        .apropos-image-section img {
                width: 70%;
    margin: auto;
            height: auto;
            display: block;
            transition: transform 0.6s var(--transition);
            border-radius:999px;
        }
        .apropos-content {
            padding: 60px;
        }

        .apropos-section {
            opacity: 0;
            animation: apropos-slideIn 0.8s ease-out forwards;
            text-align:left;
        }

        @keyframes apropos-slideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .apropos-h2 {
            font-family: var(--font-titre);
            font-size: 2.2rem;
            color: var(--orange);
            margin: 0 0 25px 0;
            position: relative;
            display: inline-block;
            padding-bottom: 10px;
        }

        .apropos-h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 80px;
            height: 4px;
            background: var(--orange);
            border-radius: 2px;
        }

        .apropos-p {
            font-size: 1.1rem;
            color: var(--gris-texte);
            margin: 0 0 20px 0;
        }

        .apropos-highlight {
            background: var(--jaune);
            padding: 30px;
            border-radius: 20px;
            margin: 30px 0 0 0;
            border-left: 5px solid var(--orange);
        }

        .apropos-highlight .apropos-p {
            color: var(--gris-texte);
            font-family: var(--font-corps-bold);
            margin-bottom: 0;
        }

        .apropos-grid-bottom {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            border-top: 1px solid rgba(40, 100, 90, 0.1);
        }

        .apropos-interests-section {
            padding: 60px;
        }

        .apropos-interests {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-top: 25px;
        }

        .apropos-interest-tag {
            background: var(--vert-fonce);
            color: var(--blanc);
            padding: 12px 24px;
            border-radius: 30px;
            font-size: 1rem;
            font-family: var(--font-corps);
            transition: all var(--transition);
        }

        .apropos-interest-tag:hover {
            background: var(--orange);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(214, 73, 51, 0.3);
        }

        .apropos-cta-section {
            padding: 60px;
            border-left: 1px solid rgba(40, 100, 90, 0.1);
        }

        .apropos-cta-text {
            font-size: 1.2rem;
            margin-bottom: 35px;
            color: var(--orange);
        }

        .apropos-btn {
            display: inline-block;
            padding: 16px 45px;
            background: var(--orange);
            color: var(--blanc);
            text-decoration: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-family: var(--font-corps);
            transition: all var(--transition);
            box-shadow: 0 4px 15px rgba(214, 73, 51, 0.3);
            margin: 10px 10px 10px 0;
        }

        .apropos-btn:hover {
            background: var(--vert-fonce);
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(40, 100, 90, 0.4);
        }

        .apropos-btn-secondary {
            background: var(--vert-fonce);
            box-shadow: 0 4px 15px rgba(40, 100, 90, 0.3);
        }

        .apropos-btn-secondary:hover {
            background: var(--orange);
            box-shadow: 0 6px 25px rgba(214, 73, 51, 0.4);
        }

        @media (max-width: 968px) {
            .apropos-grid,
            .apropos-grid-bottom {
                grid-template-columns: 1fr;
            }

            .apropos-image-section,
            .apropos-content,
            .apropos-interests-section,
            .apropos-cta-section {
                padding: 40px;
            }

            .apropos-h1 {
                font-size: 2.5rem;
            }

            .apropos-h2 {
                font-size: 1.8rem;
            }

            .apropos-cta-section {
                border-left: none;
                border-top: 1px solid rgba(40, 100, 90, 0.1);
            }
        }

        @media (max-width: 768px) {
                    .apropos-container,.contact-container {
            margin: 64px 13px;

        }
.contact-container {
padding: 26px;}
                    .legal-block {
            background-color: var(--blanc);
            padding: 9px 40px 40px 40px;}

            .filter-btn {
    padding: 8px 9px;}

.filters-container {
    gap: 8px;}
            .apropos-body {
                padding: 30px 15px;
            }
    .portfolio-grid {

    padding: 20px 13px 80px 13px!important;}
}
            .apropos-h1 {
                font-size: 2rem;
            }

            .apropos-subtitle {
                font-size: 1.1rem;
            }

            .apropos-image-section,
            .apropos-content,
            .apropos-interests-section,
            .apropos-cta-section {
                padding: 30px;
            }

            .apropos-h2 {
                font-size: 1.6rem;
            }

            .apropos-p {
                font-size: 1rem;
            }

            .apropos-interests {
                gap: 10px;
            }

            .apropos-interest-tag {
                font-size: 0.9rem;
                padding: 10px 20px;
            }

            .apropos-btn {
                display: block;
                margin: 10px 0;
                text-align: center;
            }
        }





        @media (max-width: 768px) {
            .apropos-image-section{
                margin-bottom:13px;
            }
            .contact-body {
                padding: 30px 15px;
            }

            .contact-container {
                padding: 40px 30px;
            }

            .contact-h1 {
                font-size: 2.5rem;
            }

            .contact-subtitle {
                font-size: 1rem;
            }

            .contact-buttons {
                flex-direction: column;
            }
        }

        .main-header { 
    position: sticky; 
    top: 0; 
    z-index: 900; 
    background: #28645A; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; /* AJOUTER */
    padding: 15px 40px; 
    flex-wrap: wrap; /* AJOUTER pour responsive */
    gap: 20px; /* AJOUTER */
}

.filters-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 10px; 
    order: 2; /* AJOUTER pour contrôler l'ordre sur mobile */
}

.legal-wrapper h2 {
    margin-top: 39px;
     margin-bottom:39px;
}

.legal-wrapper {
    margin: auto;
    max-width: 920px;
    padding: 64px 13px;
}
.center{
    margin: auto;
    max-width: 924px;
        text-align: center;
}
body.error-400,body.error-401,body.error-403,body.error-404,body.error-500body.error-502{
    font-family: var(--font-corps);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Backgrounds spécifiques par page */
body.error-400 {
    background: linear-gradient(135deg, var(--vert-clair) 0%, var(--blanc) 100%);
}

body.error-401 {
    background: linear-gradient(135deg, var(--jaune) 0%, var(--vert-clair) 100%);
}

body.error-403 {
    background: linear-gradient(135deg, #fff5e6 0%, var(--vert-clair) 100%);
}

body.error-404 {
    background: linear-gradient(135deg, var(--vert-clair) 0%, var(--jaune) 50%, var(--blanc) 100%);
}

body.error-500 {
    background: linear-gradient(135deg, #ffe6e6 0%, var(--vert-clair) 100%);
}

body.error-502 {
    background: linear-gradient(135deg, var(--blanc) 0%, var(--vert-clair) 50%, var(--jaune) 100%);
}

body.error-503 {
    background: linear-gradient(135deg, var(--jaune) 0%, var(--blanc) 50%, var(--vert-clair) 100%);
}

/* ==============================================
   FORMES DÉCORATIVES EN ARRIÈRE-PLAN
   ============================================== */

.bg-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: var(--orange);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    background: var(--vert-fonce);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: 15%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: var(--jaune);
    border-radius: 50%;
    top: 60%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ==============================================
   CONTENEUR PRINCIPAL
   ============================================== */

.error-container {
    text-align: center;
    padding: 40px;
    max-width: 650px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   CODE D'ERREUR
   ============================================== */

.error-code {
    font-family: var(--font-titre-bold);
    font-size: 120px;
    margin-bottom: 20px;
    line-height: 1;
}

/* Couleurs spécifiques */
.error-400 .error-code,
.error-403 .error-code,
.error-500 .error-code,
.error-503 .error-code {
    color: var(--orange);
}

.error-401 .error-code,
.error-404 .error-code,
.error-502 .error-code {
    color: var(--vert-fonce);
}

/* Animations spécifiques */
.error-400 .error-code {
    animation: pulse 2s ease-in-out infinite;
}

.error-401 .error-code {
    animation: shake 3s ease-in-out infinite;
}

.error-403 .error-code {
    animation: glow 2s ease-in-out infinite;
}

.error-404 .error-code {
    animation: bounce 2s ease-in-out infinite;
}

.error-500 .error-code {
    animation: glitch 3s ease-in-out infinite;
}

.error-502 .error-code {
    animation: fadeInOut 2s ease-in-out infinite;
}

.error-503 .error-code {
    animation: wobble 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(214, 73, 51, 0.3); }
    50% { text-shadow: 0 0 20px rgba(214, 73, 51, 0.5); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes glitch {
    0%, 90%, 100% { transform: translateX(0); }
    92% { transform: translateX(-3px); }
    94% { transform: translateX(3px); }
    96% { transform: translateX(-2px); }
    98% { transform: translateX(2px); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* ==============================================
   TITRE & MESSAGE
   ============================================== */

.error-title {
    font-family: var(--font-titre);
    font-size: 32px;
    margin-bottom: 15px;
}

/* Couleurs spécifiques */
.error-400 .error-title,
.error-401 .error-title,
.error-404 .error-title {
    color: var(--orange);
}

.error-403 .error-title,
.error-500 .error-title,
.error-502 .error-title,
.error-503 .error-title {
    color: var(--vert-fonce);
}

.error-message {
    font-size: 18px;
    color: var(--gris-texte);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ==============================================
   BOUTON RETOUR ACCUEIL
   ============================================== */

.btn-home {
    display: inline-block;
    padding: 15px 40px;
    color: var(--blanc);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    transition: all var(--transition);
}

/* Couleurs spécifiques */
.error-400 .btn-home,
.error-403 .btn-home,
.error-500 .btn-home,
.error-503 .btn-home {
    background: var(--vert-fonce);
    box-shadow: 0 4px 15px rgba(40, 100, 90, 0.2);
}

.error-401 .btn-home,
.error-404 .btn-home,
.error-502 .btn-home {
    background: var(--orange);
    box-shadow: 0 4px 15px rgba(214, 73, 51, 0.2);
}

/* Hover states */
.error-400 .btn-home:hover,
.error-403 .btn-home:hover,
.error-500 .btn-home:hover,
.error-503 .btn-home:hover {
    background: var(--orange);
    box-shadow: 0 6px 20px rgba(214, 73, 51, 0.3);
}

.error-401 .btn-home:hover,
.error-404 .btn-home:hover,
.error-502 .btn-home:hover {
    background: var(--vert-fonce);
    box-shadow: 0 6px 20px rgba(40, 100, 90, 0.3);
}

.btn-home:hover {
    transform: translateY(-2px);
}

/* ==============================================
   ICÔNES ANIMÉES - 400 (Cercles rotatifs)
   ============================================== */

.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon::before,
.icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--jaune);
    border-radius: 50%;
}

.icon::before {
    border-top-color: transparent;
    border-left-color: transparent;
}

.icon::after {
    border-bottom-color: transparent;
    border-right-color: transparent;
    animation: rotate 3s linear infinite reverse;
}

/* ==============================================
   ICÔNES ANIMÉES - 401 (Cadenas)
   ============================================== */

.lock-icon {
    width: 70px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.lock-body {
    width: 70px;
    height: 50px;
    background: var(--vert-fonce);
    border-radius: 8px;
    position: absolute;
    bottom: 0;
    animation: lockBounce 2s ease-in-out infinite;
}

.lock-shackle {
    width: 40px;
    height: 35px;
    border: 6px solid var(--vert-fonce);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    position: absolute;
    top: 0;
    left: 15px;
    animation: lockBounce 2s ease-in-out infinite;
}

.lock-keyhole {
    width: 8px;
    height: 12px;
    background: var(--jaune);
    border-radius: 50% 50% 0 0;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.lock-keyhole::after {
    content: '';
    width: 4px;
    height: 10px;
    background: var(--jaune);
    position: absolute;
    top: 10px;
    left: 2px;
}

@keyframes lockBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==============================================
   ICÔNES ANIMÉES - 403 (Panneau interdit)
   ============================================== */

.forbidden-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    position: relative;
}

.forbidden-circle {
    width: 90px;
    height: 90px;
    border: 5px solid var(--orange);
    border-radius: 50%;
    position: absolute;
    animation: rotateCircle 4s linear infinite;
}

@keyframes rotateCircle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.forbidden-line {
    width: 70px;
    height: 5px;
    background: var(--orange);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 3px;
}

.hand-icon {
    width: 35px;
    height: 40px;
    background: var(--vert-fonce);
    border-radius: 15px 15px 5px 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: wave 1.5s ease-in-out infinite;
}

.hand-icon::before {
    content: '';
    width: 8px;
    height: 15px;
    background: var(--vert-fonce);
    border-radius: 5px;
    position: absolute;
    top: -8px;
    left: 5px;
}

.hand-icon::after {
    content: '';
    width: 8px;
    height: 15px;
    background: var(--vert-fonce);
    border-radius: 5px;
    position: absolute;
    top: -8px;
    right: 5px;
}

@keyframes wave {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(-10deg); }
}

/* ==============================================
   ICÔNES ANIMÉES - 404 (Boussole)
   ============================================== */

.compass-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.compass-outer {
    width: 100px;
    height: 100px;
    border: 4px solid var(--vert-fonce);
    border-radius: 50%;
    position: absolute;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.compass-inner {
    width: 70px;
    height: 70px;
    border: 3px solid var(--jaune);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.compass-needle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 40px solid var(--orange);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    animation: needleSwing 3s ease-in-out infinite;
}

@keyframes needleSwing {
    0%, 100% { transform: translate(-50%, -70%) rotate(-15deg); }
    50% { transform: translate(-50%, -70%) rotate(15deg); }
}

.compass-dot {
    width: 12px;
    height: 12px;
    background: var(--vert-fonce);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.compass-marker {
    width: 3px;
    height: 10px;
    background: var(--gris-texte);
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
}

.compass-marker:nth-child(2) {
    transform: translateX(-50%) rotate(90deg);
    left: auto;
    right: 5px;
    top: 50%;
}

.compass-marker:nth-child(3) {
    transform: translateX(-50%) rotate(180deg);
    bottom: 5px;
    top: auto;
}

.compass-marker:nth-child(4) {
    transform: translateX(-50%) rotate(270deg);
    left: 5px;
    top: 50%;
}

/* ==============================================
   ICÔNES ANIMÉES - 500 (Engrenages)
   ============================================== */

.gear-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.gear {
    width: 60px;
    height: 60px;
    position: absolute;
    background: var(--vert-fonce);
    border-radius: 10%;
    animation: rotateCW 4s linear infinite;
}

.gear::before,
.gear::after {
    content: '';
    position: absolute;
    background: var(--vert-fonce);
}

.gear::before {
    width: 100%;
    height: 20px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.gear::after {
    width: 20px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.gear-1 {
    top: 0;
    left: 0;
}

.gear-2 {
    width: 45px;
    height: 45px;
    bottom: 0;
    right: 0;
    background: var(--orange);
    animation: rotateCCW 3s linear infinite;
}

.gear-2::before,
.gear-2::after {
    background: var(--orange);
}

.gear-2::before {
    height: 15px;
}

.gear-2::after {
    width: 15px;
}

@keyframes rotateCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.sparks {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--jaune);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.spark:nth-child(1) {
    top: -20px;
    left: 0;
    animation-delay: 0s;
}

.spark:nth-child(2) {
    top: 0;
    right: -20px;
    animation-delay: 0.5s;
}

.spark:nth-child(3) {
    bottom: -20px;
    left: 0;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ==============================================
   ICÔNES ANIMÉES - 502 (Connexion)
   ============================================== */

.connection-icon {
    width: 120px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.server {
    width: 40px;
    height: 50px;
    background: var(--vert-fonce);
    border-radius: 5px;
    position: absolute;
}

.server-1 {
    left: 0;
    top: 15px;
}

.server-2 {
    right: 0;
    top: 15px;
}

.server::before {
    content: '';
    width: 20px;
    height: 3px;
    background: var(--jaune);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.server::after {
    content: '';
    width: 20px;
    height: 3px;
    background: var(--jaune);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.connection-line {
    width: 40px;
    height: 3px;
    background: var(--orange);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.connection-break {
    width: 8px;
    height: 8px;
    background: var(--blanc);
    border: 2px solid var(--orange);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-break 1.5s ease-in-out infinite;
}

@keyframes pulse-break {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

.signal-wave {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: wave-signal 2s ease-out infinite;
    opacity: 0;
}

.signal-wave:nth-child(2) {
    animation-delay: 0.5s;
}

.signal-wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes wave-signal {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ==============================================
   ICÔNES ANIMÉES - 503 (Maintenance)
   ============================================== */

.maintenance-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.toolbox {
    width: 70px;
    height: 50px;
    background: var(--vert-fonce);
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.toolbox::before {
    content: '';
    width: 40px;
    height: 8px;
    background: var(--jaune);
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px 4px 0 0;
}

.toolbox::after {
    content: '';
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.wrench {
    width: 35px;
    height: 8px;
    background: var(--orange);
    border-radius: 4px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    animation: wrenchMove 2s ease-in-out infinite;
    transform-origin: bottom right;
}

.wrench::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 3px solid var(--orange);
    border-radius: 50%;
    position: absolute;
    right: -8px;
    top: -2px;
}

@keyframes wrenchMove {
    0%, 100% { transform: translateX(-50%) rotate(-45deg); }
    50% { transform: translateX(-50%) rotate(-25deg); }
}

.dots {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--vert-fonce);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
    .modal-wrapper {
    padding:26px;}
    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-message {
        font-size: 16px;
    }

    .error-container {
        padding: 20px;
    }

    .bg-shape {
        opacity: 0.05;
    }
}
.mt-20{
       margin-top:26px;
    }
    .infos-legales{
        text-decoration: underline;
    }