/*
Theme Name: Corentin Thirion
Theme URI: www.corentin-thirion.be
Description: child theme edit by Baraque Graffik
Author: Corentin Thirion
Author URI: www.corentin-thirion.be
Version: 1.0
Text Domain: corentin-thirion-child
Template: twentytwentyfive
*/
/* Définition de tes alias (plus faciles à lire et à écrire dans ton CSS) */
:root {
    --bg-color: var(--wp--preset--color--custom-gris-fonc);
    --text-color: var(--wp--preset--color--custom-blanc);
    --border-color: var(--wp--preset--color--custom-gris-accent);
    --accent-color: var(--wp--preset--color--custom-jaune); 
    --text-color-gray: var(--wp--preset--color--custom-texte);
}

/* Écrasement des variables FSE quand le mode clair est actif */
/* On utilise :root au lieu de body pour rester au plus haut niveau */
:root[data-theme="light"] {
    --wp--preset--color--custom-noir-texte: #ffffff !important;
    --wp--preset--color--custom-blanc: #181818 !important;
    --wp--preset--color--custom-texte: #555555 !important;
    --wp--preset--color--custom-gris-fonc: #f4f4f4 !important;
    --wp--preset--color--custom-gris-accent: #cccccc !important;
    --wp--preset--color--custom-color-2: #ffffff !important;
}
/*--- CURSOR STYLE ---*/
@media (pointer: fine) {
    body, a, button, input, select, textarea {
        cursor: none !important;
    }

    .magic-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 18px;
        height: 18px;
        background-color: #ffee00;
        border-radius: 50%;
        pointer-events: none;
        z-index: 1000001;
        will-change: transform, width, height;
        transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                    height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                    background-color 0.3s ease;
        mix-blend-mode: difference;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .magic-cursor.is-hovering {
        width: 60px;
        height: 60px;
        background-color: #ffffff;
    }

    /* Texte contextuel dans le curseur */
    .magic-cursor .cursor-text {
        font-family: var(--wp--preset--font-family--archivo-black), 'Archivo Black', sans-serif;
        font-size: 0;
        color: #000;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        white-space: nowrap;
        transition: font-size 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .magic-cursor.is-hovering .cursor-text {
        font-size: 8px;
    }
}
/* --- HEADER STICKY BLUR --- */
header.wp-block-template-part {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    align-self: flex-start;
}

html, body, .wp-site-blocks {
    overflow-x: clip; 
}

/* Pour le logo et les liens du header */
header.wp-block-template-part a:focus,
.wp-block-site-logo a:focus,
/* Pour tes icônes personnalisées (menu et contact) */
.custom-icon-link:focus,
.theme-toggle-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Optionnel : Si tu veux enlever l'outline sur absolument TOUS 
   les liens d'images de ton site au clic */
a:focus img, 
a:focus svg {
    outline: none !important;
}

.is-blurred-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(5, 5, 5, 0.90) !important; 
}

/* --- BOUTON DARK/LIGHT MODE --- */
.theme-toggle-btn {
    cursor: pointer;
    font-size: 1.5rem; 
    color: var(--text-color) !important;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.theme-toggle-btn:hover {
    color: var(--accent-color) !important;
    transform: rotate(15deg); 
}

/* 1. État par défaut (Mode Sombre) : */
.theme-toggle-btn .theme-icon-moon {
    display: none;
}
.theme-toggle-btn .theme-icon-sun {
    display: inline-block;
}

/* 2. État Actif (Mode Clair) : */
:root[data-theme="light"] .theme-toggle-btn .theme-icon-sun {
    display: none;
}
:root[data-theme="light"] .theme-toggle-btn .theme-icon-moon {
    display: inline-block;
}
/* NAVIGATION */
/* Suppression du soulignement natif de WP et ajout de la transition de couleur */
.main-nav-custom .wp-block-navigation-item__content {
    text-decoration: none !important;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease !important;
}

/* Texte en jaune au survol et sur la page courante */
.main-nav-custom .wp-block-navigation-item__content:hover,
.main-nav-custom .current-menu-item .wp-block-navigation-item__content {
    color: var(--accent-color) !important;
}

/* Création de la ligne animée */
.main-nav-custom .wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

/* Animation de la ligne au survol */
.main-nav-custom .wp-block-navigation-item__content:hover::after {
    width: 100%;
}

/* Ligne affichée sur l'état actif (Page courante) */
.main-nav-custom .current-menu-item .wp-block-navigation-item__content::after {
    width: 100%;
}
/* --- BOUTONS --- */
/* Transition fluide sur tous les boutons natifs du FSE */
.wp-element-button:not(.no-hover), 
.wp-block-button__link:not(.no-hover) {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: transform, box-shadow;
}


.wp-element-button:not(.no-hover):hover, 
.wp-block-button__link:not(.no-hover):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 238, 0, 0.15);
}

.hover-border-yellow {
    border: 1px solid transparent !important; /* Bordure invisible au repos */
    background-color: transparent !important; /* Si tu veux un bouton fantôme */
    transition: border-color 0.3s ease !important;
}

.hover-border-yellow:hover {
    border-color: var(--accent-color) !important;
    transform: none; /* Annule le soulèvement si tu ne veux QUE la bordure */
    box-shadow: none;
}

/* --- CARTES ET GROUPES (Flexbox) --- */
/* Classe utilitaire à ajouter manuellement sur tes blocs via l'éditeur FSE */
.hover-card {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
    will-change: transform;
    overflow: hidden; /* Garde les images à l'intérieur lors du scale */
}

.card-hover-yellow {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, border-color, box-shadow;
}

.card-hover-yellow:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 10px 30px rgba(255, 238, 0, 0.1) !important;
    transform: translateY(-5px);
}

.card-icones {
    color:var(--accent-color);
    font-size: 3.3rem;
}

/* Icône SVG souris */
.mouse-scroll-animation svg {
    width: 32px;
    height: 32px;
    display: block;
    margin: 0 auto; 
}


.mouse-scroll-animation .mouse-wheel {
    animation: scrollWheelBounce 1.5s infinite ease-in-out;
}

@keyframes scrollWheelBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}
/* Colorer toutes les listes (numérotées et à puces) en jaune */
.wp-block-list li::marker {
    color: var(--accent-color);
    font-weight: bold;
}

/* =========================================
   STRUCTURE DE LA GRILLE (Béton armé)
========================================= */

/* 1. Le conteneur de base de la grille */
.project-grid {
    display: grid !important;
    gap: .85rem !important; /* Espace généreux entre les cartes */
    width: 100% !important;
    align-items: stretch; /* Force toutes les cartes à avoir la même hauteur */
}

/* 2. Colonnes selon l'attribut data-columns */
.project-grid-container[data-columns="2"] .project-grid { grid-template-columns: repeat(2, 1fr) !important; }
.project-grid-container[data-columns="3"] .project-grid { grid-template-columns: repeat(3, 1fr) !important; }
.project-grid-container[data-columns="4"] .project-grid { grid-template-columns: repeat(4, 1fr) !important; }

/* Responsive — data-columns="3" : 3 → 2 → 1 */
@media (max-width: 1024px) {
    .project-grid-container[data-columns="3"] .project-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
    .project-grid-container[data-columns="3"] .project-grid { grid-template-columns: 1fr !important; }
}

/* Responsive — data-columns="4" : 4 → 3 → 2 → 1 */
@media (max-width: 1200px) {
    .project-grid-container[data-columns="4"] .project-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 992px) {
    .project-grid-container[data-columns="4"] .project-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
    .project-grid-container[data-columns="4"] .project-grid { grid-template-columns: 1fr !important; }
}

/* 3. Sécurité pour le contenu des cartes au filtrage Ajax */
.project-card-digital,
.project-card-photo {
    width: 100%;
    margin: 0;
}

.project-grid-container.custom-grid-instance {
    width: 100% !important;
    flex: 1 1 100% !important; /* Indispensable pour contrer le is-layout-flex de FSE */
    display: block;
}

.project-grid {
    display: grid !important;
    gap: 2rem !important;
    width: 100% !important;
}

/* Sécurité sur les cartes elles-mêmes */
.project-card-digital,
.project-card-photo {
    width: 100% !important;
    margin: 0 !important;
}

/* Style des sous-filtres pour les différencier des catégories parentes */
.project-filters .filter-btn,
.project-sub-filters .filter-btn {
    background-color: transparent !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
    border-width: 1px !important;
    border-style: solid !important;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.039), 0.9rem);;
    border-radius: 4px;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    padding-top:12px;
    padding-bottom: 12px;
    padding-left:30px;
    padding-right:30px;
    font-family: var(--wp--preset--font-family--inter);
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important; 
}

.project-filters .filter-btn:hover,
.project-sub-filters .filter-btn:hover {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    transform: none !important;
}

.project-filters .filter-btn.is-active,
.project-sub-filters .filter-btn.is-active {
    background-color: var(--accent-color) !important;
    color: var(--bg-color) !important;
    border-color: var(--accent-color) !important;
}

.project-sub-filters .close-sub-filters {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}
.project-sub-filters .close-sub-filters:hover {
    background-color: var(--accent-color) !important;
    color: var(--bg-color) !important;
}
/* --- ADAPTATION DES COLONNES SELON LE LAYOUT --- */


/*  VIGNETTE DIGITALE */
.project-card-digital {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    height: 100%; /* S'assure que toutes les cartes ont la même hauteur */
}

.project-card-digital:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* Zone Image */
.digital-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #1f1f1f;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.digital-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.digital-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.9rem;
    font-style: italic;
}

/* Zone Texte et Badges */
.digital-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pousse le texte pour remplir la carte */
}

/* Les fameuses "pilules" pour les tags */
.digital-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.digital-badge {
    background-color: rgba(255, 238, 0, 0.1); /* Fond jaune transparent */
    color: var(--accent-color); /* Texte jaune */
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.digital-title {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.digital-client {
    color: var(--text-color-gray);
    font-size: 0.9rem;
    margin: 0;
    margin-top: auto; /* Aligne toujours le nom du client tout en bas */
}
/* --- VIGNETTE PHOTO / VIDEO --- */
.project-card-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: flex-end; /* Texte en bas */
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a;
    text-decoration: none !important;
    transition: transform 0.3s ease;
    will-change: transform;
}

.project-card-photo:hover {
    transform: scale(1.03); /* Léger grossissement au survol */
}

.photo-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.project-card-photo:hover .photo-image {
    transform: scale(1.05); /* L'image à l'intérieur zoome légèrement */
}

/* Overlay assombrissant pour lire le texte */
.photo-overlay {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.photo-title {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}


.photo-overlay {
    /* On transforme l'overlay en flexbox pour empiler le titre et les badges */
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Espace entre le titre et les pilules */
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.photo-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.photo-badge {
    background-color: rgba(255, 238, 0, 0.15); /* Fond jaune légèrement transparent */
    color: var(--accent-color); /* Texte jaune */
    font-size: 0.65rem; /* Un poil plus petit pour rester élégant sur l'image */
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px); /* Effet verre dépoli sur la photo */
    -webkit-backdrop-filter: blur(4px);
}

/* Le Gros Bouton Play Central jaune (Adapté pour la carte unifiée) */
.project-card-photo .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    font-size: 3rem;
    color: var(--accent-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.project-card-photo:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    color: #ffffff;
}

/* --- ICÔNE ET LABEL VERROUILLÉ --- */
.card-lock-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 238, 0, 0.4);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card-locked-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.85;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    color: inherit;
    border-radius: 50%;
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    line-height: 1;
}
/* Adapte la couleur du compteur quand le bouton est actif/survolé */
.filter-btn.is-active .filter-count,
.filter-btn:hover .filter-count {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Style du lien avec icône */
.custom-icon-link {
    display: inline-flex;
    align-items: center; /* Aligne parfaitement l'icône et le texte */
    gap: 10px; 
    font-size: 1rem; 
    text-decoration: none !important;
    transition: color 0.3s ease;
}
/* --- BOÎTES D'INFORMATIONS (Gauche) --- */
.contact-info-boxes {
    display: row;
	gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Le design de base : Carré + Bordure Jaune */
.contact-info-boxes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Espace entre l'email et le téléphone */
}

/* Suppression des <br> indésirables s'il y en a dans l'éditeur */
.contact-info-boxes br {
    display: none;
}

.contact-box-square {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem; /* Padding réduit pour affiner la boîte */
    background-color: var(--bg-color, #1a1a1a); /* Utilise un gris très foncé si ton fond de page est noir absolu */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none !important;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-box-square:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.contact-box-square i {
    font-size: 2rem;
    color: var(--accent-color); /* L'icône en jaune */
}

.contact-box-square div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}
/* =========================================
   FORMULAIRE DE CONTACT (Forminator)
========================================= */

/* 1. L'espacement des lignes et colonnes */
.forminator-custom-form .forminator-row {
    margin-bottom: 1.5rem !important;
}

/* 2. Les Labels (Étiquettes au-dessus des champs) */
.forminator-custom-form .forminator-label {
    color: var(--text-color) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* L'astérisque obligatoire */
.forminator-custom-form .forminator-required {
    color: var(--accent-color) !important;
}

/* 3. Les Champs (Inputs et Textarea) */
.forminator-custom-form .forminator-input,
.forminator-custom-form .forminator-textarea {
    width: 100% !important;
    background-color: transparent !important; /* Transparence pour se fondre dans la page */
    border: 1px solid var(--border-color) !important;
    color: var(--text-color) !important;
    padding: 14px 18px !important;
    border-radius: 4px !important; /* Léger arrondi comme tes boîtes */
    font-family: inherit !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

/* Effet au clic (Focus) */
.forminator-custom-form .forminator-input:focus,
.forminator-custom-form .forminator-textarea:focus {
    outline: none !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 1px var(--accent-color) !important; /* Halo jaune */
    background-color: rgba(255, 238, 0, 0.03) !important; /* Très léger fond jaune pour marquer l'activité */
}

/* 4. Le Menu Déroulant "Type de projet" (Select2 de Forminator) */
.forminator-custom-form .select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    height: auto !important;
    padding: 12px 18px !important;
    transition: all 0.3s ease !important;
}

/* Rendre le placeholder bien visible (Ex: "Type de projet") */
.forminator-custom-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-color-gray) !important; /* Gris clair élégant */
    opacity: 1 !important;
}

/* Couleur du texte sélectionné */
.forminator-custom-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-color) !important;
    line-height: normal !important;
    padding: 0 !important;
}

/* La petite flèche du menu */
.forminator-custom-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 15px !important;
}

.forminator-custom-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-color) transparent transparent transparent !important;
}

/* Focus sur le Select */
.forminator-custom-form .select2-container--open .select2-selection--single {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 1px var(--accent-color) !important;
}

/* L'intérieur du menu déroulant (quand il est ouvert) */
.select2-container .select2-dropdown {
    background-color: #000000 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
}

.select2-container .select2-results__options {
    background-color: #000000 !important;
}

.select2-container .select2-results__option {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}

.select2-container .select2-results__option--highlighted[aria-selected],
.select2-container .select2-results__option[aria-selected="true"] {
    background-color: #333333 !important;
    color: #ffffff !important;
}

.forminator-custom-form .select2-container .select2-selection--single {
    background-color: #000000 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
}

.forminator-custom-form .select2-container .select2-selection--single .select2-selection__placeholder {
    color: var(--placeholder-color, #aaaaaa) !important; 
}

.forminator-custom-form .select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--text-color, #ffffff) !important;
    padding-left: 15px !important;
}

.forminator-custom-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-color, #ffffff) transparent transparent transparent !important;
}
.forminator-custom-form .select2-container--focus .select2-selection--single,
.forminator-custom-form .select2-container--open .select2-selection--single {
    border-color: var(--accent) !important;
    box-shadow: inset 0 0 0 1px var(--accent) !important;
    outline: none !important;
}
/* 5. Messages d'erreur de validation (Lisibles sur fond sombre) */
.forminator-custom-form .forminator-has_error .forminator-input,
.forminator-custom-form .forminator-has_error .forminator-textarea,
.forminator-custom-form .forminator-has_error .select2-selection {
    border-color: #ff6b6b !important; /* Un rouge corail/pastel beaucoup plus doux */
}

.forminator-custom-form .forminator-error-message {
    color: #ff6b6b !important; /* Rouge corail */
    font-size: 0.85rem !important;
    margin-top: 8px !important;
    font-weight: 500 !important;
}

/* 6. Le Bouton d'Envoi (Aligné à droite) */
.forminator-custom-form .forminator-button-submit {
    background-color: transparent !important;
    color: var(--accent-color) !important;
    border: 1px solid var(--accent-color) !important;
    padding: 14px 32px !important;
    font-family: var(--wp--preset--font-family--archivo-black), sans-serif !important; 
    font-size: 1rem !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease !important;
    border-radius: 4px !important;
    width: auto !important;
    margin-top: 1rem !important;
    
    /* LA MAGIE POUR L'ALIGNER À DROITE : */
    display: block !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.forminator-custom-form .forminator-button-submit:hover {
    background-color: var(--accent-color) !important;
    color: #000000 !important; /* Texte noir sur fond jaune */
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(255, 238, 0, 0.2) !important;
}
/* FOOTER */
.custom-icon-link i {
    font-size: 1.6rem; 
    color: var(--accent-color); 
    transition: transform 0.3s ease;
}
.custom-icon-social {
	text-decoration: none !important;
}
.custom-icon-social i {
    font-size: 1.6rem; 
    color: #fff; 
    transition: transform 0.3s ease;
}
.custom-icon-social i:hover,
.custom-icon-link:hover {
    color: var(--accent-color); 
}

.custom-icon-link:hover i {
    transform: translateX(5px);
}


/* ==========================================
   GALERIE MASONRY  [galerie_masonry]
========================================== */

/* Grille — CSS Grid (remplace CSS columns pour un remplissage ligne par ligne) */
.ct-masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .85rem;
    width: 100%;
    align-items: start;
}

@media (max-width: 1200px) { .ct-masonry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .ct-masonry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .ct-masonry-grid { grid-template-columns: 1fr; } }

/* Item */
.ct-masonry-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background-color: #1a1a1a;
    text-decoration: none !important;
    min-height: 180px;
}

.ct-masonry-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.ct-masonry-item:hover img {
    transform: scale(1.04);
}

/* Icône play sur les vignettes vidéo */
.ct-item-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: var(--accent-color);
    z-index: 2;
    pointer-events: none;
    transition: transform 0.3s ease, color 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.ct-masonry-item:hover .ct-item-play-icon {
    transform: translate(-50%, -50%) scale(1.12);
    color: #ffffff;
}

/* Caption overlay */
.ct-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--text-color);
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ct-masonry-item:hover .ct-item-caption {
    opacity: 1;
}

/* Filtres — réutilise les classes existantes */
.ct-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
}

/* Étend les styles filter-btn aux filtres galerie */
.ct-gallery-filters .filter-btn {
    background-color: transparent !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
    border-width: 1px !important;
    border-style: solid !important;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.039), 0.9rem);
    border-radius: 4px;
    letter-spacing: inherit !important;
    padding: 12px 30px;
    font-family: var(--wp--preset--font-family--inter);
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.ct-gallery-filters .filter-btn:hover {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    transform: none !important;
}

.ct-gallery-filters .filter-btn.is-active {
    background-color: var(--accent-color) !important;
    color: var(--bg-color) !important;
    border-color: var(--accent-color) !important;
}

/* Spinner de chargement */
.ct-gallery-loading {
    display: none;
    justify-content: center;
    padding: 2rem;
}

.ct-gallery-loading.is-loading {
    display: flex;
}

.ct-gallery-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: ctSpin 0.7s linear infinite;
}

@keyframes ctSpin { to { transform: rotate(360deg); } }

/* Pagination */
.ct-gallery-pagination {
    text-align: center;
    margin-top: 2rem;
}

/* Message d'erreur */
.ct-gallery-error {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-color-gray);
    padding: 2rem;
}

/* =========================================
   LIGHTBOX
========================================= */
.ct-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.ct-lightbox.is-active {
    display: flex;
}

.ct-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 90vw;
    max-height: 90vh;
}

.ct-lightbox-img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.25s ease;
}

/* Lecteur vidéo dans la lightbox */
.ct-lightbox-video-player {
    width: min(900px, 88vw);
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    display: block;
    background: #000;
}

@media (max-width: 768px) {
    .ct-lightbox-video-player { width: 95vw; }
}

.ct-lightbox-caption {
    color: var(--text-color-gray);
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

.ct-lightbox-counter {
    color: var(--text-color-gray);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Bouton fermer */
.ct-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.ct-lightbox-close:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Boutons nav précédent / suivant */
.ct-lightbox-prev,
.ct-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.ct-lightbox-prev { left: 1.25rem; }
.ct-lightbox-next { right: 1.25rem; }

.ct-lightbox-prev:hover,
.ct-lightbox-next:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .ct-lightbox-prev { left: 0.5rem; }
    .ct-lightbox-next { right: 0.5rem; }
    .ct-lightbox-prev,
    .ct-lightbox-next { width: 40px; height: 40px; font-size: 1.5rem; }
}

/* ==========================================
   ANIMATIONS AU SCROLL & CHARGEMENT
   Respecte prefers-reduced-motion
========================================== */
@media (prefers-reduced-motion: no-preference) {

    /* --- Héro : animation au chargement de page --- */
    @keyframes heroFadeUp {
        from { opacity: 0; transform: translateY(22px); }
        to   { opacity: 1; transform: translateY(0);    }
    }
    .hero-animate {
        animation: heroFadeUp 0.85s cubic-bezier(0.25, 1, 0.5, 1) both;
    }

    /* --- Reveal au scroll : état initial --- */
    .reveal {
        opacity: 0;
        transform: translateY(52px) scale(0.97);
        transition:
            opacity   0.85s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: opacity, transform;
    }
    .reveal.from-left  { transform: translateX(-48px) scale(0.97); }
    .reveal.from-right { transform: translateX(48px)  scale(0.97); }

    /* --- Reveal au scroll : état visible --- */
    .reveal.is-visible {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

/* Fix : post-content comme enfant flex (template mariage)
   Sans width:100%, la hauteur du wrapper embed tombe à 0 (padding-top:56.25% × 0). */
.is-layout-flex > .wp-block-post-content {
    width: 100%;
    min-width: 0;
}

/* RESPONSIVE MEDIA QUERY */
/* Mode responsive (mobile) */
@media (max-width: 768px) {
    .contact-info-boxes {
        grid-template-columns: 1fr;
    }
    .contact-box-square {
        aspect-ratio: auto;
        padding: 2rem;
    }
}

/* --- RESPONSIVE HEADER --- */
/* Sur mobile : logo + burger + contact en une ligne compacte */
@media (max-width: 600px) {
    /* Logo réduit */
    .wp-block-site-logo img {
        width: 80px !important;
    }

    /* Supprime l'espace gauche entre nav et bouton contact */
    .main-nav-custom .wp-block-buttons {
        padding-left: 0.5rem !important;
    }

    /* Bouton contact compact */
    .main-nav-custom .wp-block-button__link {
        font-size: 0.7rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        padding-right: 0.75rem !important;
        padding-left: 0.75rem !important;
        white-space: nowrap;
    }

    /* Toggle thème légèrement réduit */
    .theme-toggle-btn {
        font-size: 1.2rem !important;
        padding: 0.25rem !important;
    }
}

/* --- FORMULAIRE MOT DE PASSE (Projets protégés) --- */
.post-password-form {
    padding: 2rem 0;
    max-width: 480px;
}
.post-password-form p:first-child {
    color: var(--text-color-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.post-password-form label {
    display: block;
    color: var(--text-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.post-password-form input[type="password"] {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    padding: 0.75rem 1rem;
    font-family: var(--wp--preset--font-family--inter);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
    box-sizing: border-box;
}
.post-password-form input[type="password"]:focus {
    border-color: var(--accent-color);
}
.post-password-form input[type="submit"] {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    padding: 0.75rem 2rem;
    font-family: var(--wp--preset--font-family--archivo-black), serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.post-password-form input[type="submit"]:hover {
    opacity: 0.85;
}

/* =========================================
   GRADIENTS JAUNE RÉUTILISABLES
   Ajouter ces classes dans l'éditeur FSE
========================================= */

/* Fond dégradé jaune subtil (sections, cards) */
.gradient-accent {
    background: linear-gradient(135deg, rgba(255,238,0,.08) 0%, rgba(255,238,0,.02) 100%) !important;
}

/* Fond dégradé jaune plus intense (CTA bands) */
.gradient-accent-strong {
    background: linear-gradient(135deg, rgba(255,238,0,.14) 0%, rgba(255,238,0,.04) 100%) !important;
}

/* Texte en dégradé jaune */
.gradient-text {
    background: linear-gradient(135deg, #ffee00 0%, #fff176 50%, #ffee00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bordure dégradée (via border-image) */
.border-gradient {
    border: 1px solid transparent !important;
    border-image: linear-gradient(135deg, var(--accent-color), rgba(255,238,0,.2)) 1 !important;
}

/* Bordure dégradée gauche (pour timelines, listes) */
.border-gradient-left {
    border-left: 2px solid transparent !important;
    border-image: linear-gradient(to bottom, var(--accent-color), transparent) 1 !important;
}

/* Glow jaune au hover sur n'importe quel élément */
.glow-hover {
    transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.glow-hover:hover {
    box-shadow: 0 12px 36px rgba(255, 238, 0, 0.15) !important;
    transform: translateY(-4px);
}

/* Radial glow subtil en fond de section */
.radial-glow {
    position: relative;
}
.radial-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255,238,0,.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   LABEL DE SECTION — tiret jaune avant titre
   Usage FSE : ajouter classe "slabel" sur un <p>
========================================= */
.slabel {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: var(--accent-color) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
}
.slabel::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-color);
    flex-shrink: 0;
}

/* =========================================
   CARD ICÔNES SERVICES (.card-icone)
   Box autour de l'icône Phosphor
========================================= */
.card-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 238, 0, 0.08);
    border: 1px solid rgba(255, 238, 0, 0.25);
    border-radius: 6px;
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.card-hover-yellow:hover .card-icone,
.hover-card:hover .card-icone {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-4px);
}

/* =========================================
   LIENS PORTFOLIO HOMEPAGE (.ct-porto)
   Style : lien avec flèche + hover accent
========================================= */
.ct-porto {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none !important;
}
.ct-porto:hover {
    border-color: var(--accent-color) !important;
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(255, 238, 0, 0.12);
}

/* Image dans la card portfolio */
.ct-porto .wp-block-cover,
.ct-porto .wp-block-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    margin: 0 !important;
}
.ct-porto .wp-block-cover img,
.ct-porto .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.ct-porto:hover .wp-block-cover img,
.ct-porto:hover .wp-block-image img {
    transform: scale(1.06);
}

/* Label du type (CAPTURE / PRODUCTION / etc.) */
.ct-porto-label {
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 4px !important;
}

/* Lien/flèche en bas de la card */
.ct-porto-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.ct-porto-link::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.ct-porto:hover .ct-porto-link {
    color: var(--accent-color) !important;
}
.ct-porto:hover .ct-porto-link::after {
    transform: translateX(5px);
}

/* =========================================
   TIMELINE À PROPOS (.ct-timeline)
   Bordure dégradée jaune → transparent
========================================= */
.ct-timeline {
    position: relative;
    padding-left: 28px !important;
}
.ct-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    border-radius: 1px;
}

/* Chaque élément de la timeline */
.ct-timeline-item {
    position: relative;
    padding-left: 24px !important;
    padding-bottom: 32px;
}
.ct-timeline-item::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: -22px;
    top: 4px;
    box-shadow: 0 0 0 3px rgba(255, 238, 0, 0.2);
}

/* Année en jaune */
.ct-timeline-year {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 5px !important;
}

/* =========================================
   TAGS PROJETS (.ct-pill)
========================================= */
.ct-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 238, 0, 0.08);
    color: var(--accent-color);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.ct-pill:hover {
    background: rgba(255, 238, 0, 0.2);
    color: var(--accent-color);
}

/* =========================================
   BOUTON RETOUR PROJETS (.ct-btn-back)
========================================= */
.ct-btn-back {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--text-color-gray) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 100px !important;
    padding: 8px 18px !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}
.ct-btn-back::before {
    content: '←';
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.ct-btn-back:hover {
    color: var(--text-color) !important;
    border-color: var(--accent-color) !important;
}
.ct-btn-back:hover::before {
    transform: translateX(-4px);
}

/* =========================================
   BOUTONS : FLÈCHE ANIMÉE
   Ajouter .btn-arrow sur un wp-block-button__link
========================================= */
.btn-arrow::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-arrow:hover::after {
    transform: translateX(5px);
}

/* =========================================
   HERO VIDÉO (préparation)
   Quand la vidéo Showreel sera en place
========================================= */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}
.hero-video-wrapper .hero-video-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
}

