/* Variables de couleurs IPB-like */
:root {
    --dark-blue: #1A1F2E;            /* Plus profond et élégant */
    --medium-blue: #2B3A57;          /* Plus riche */
    --light-blue: #3A4F75;           /* Plus vibrant */
    --text-light: #F0F5FF;           /* Plus lumineux */
    --title-primary: #2c3e50;        /* Titres principaux */
    --title-secondary: #34495e;      /* Titres secondaires */
    --title-tertiary: #445566;       /* Titres tertiaires */
    --font-primary: 'Poppins', sans-serif;    /* Police titres et nav */
    --font-secondary: 'Inter', sans-serif;    /* Corps de texte */
    --primary-color: #2C3E50;    /* Bleu professionnel */
    --accent-color: #4D88FF;         /* Bleu accent plus dynamique */
    --accent-glow: rgba(77, 136, 255, 0.15); /* Lueur subtile */
    --text-color: #34495E;       /* Gris foncé élégant */
    --light-gray: #F5F6FA;       /* Gris clair subtil */
}

/* Style for body - Dégradé plus subtil et professionnel */
body {
    font-family: var(--font-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    cursor: auto;
    overflow-x: hidden;
    padding: 0;
    width: 100%;
}

h1, h2, h3, .topnav a {
    font-family: var(--font-primary);     /* Police Poppins pour titres */
}

h1 {
    text-align: center;                   /* Centrage */
    margin: 20px 0;                       /* Espacement vertical */
    font-weight: 500;                     /* Graisse moyenne */
    color: var(--text-light);             /* Tous les titres en clair */
}

h2 {
    text-align: center;                   /* Centrage */
    color: var(--text-light);             /* Tous les titres en clair */
}

h3 {
    text-align: center;                   /* Centrage */
    color: var(--text-light);             /* Tous les titres en clair */
}

p {
    text-align: center;
    font-size: 1.1em;
    font-family: 'Poppins', sans-serif;
}
 
/* Style the header - Header avec dégradé plus foncé */
.header {
    background: linear-gradient(135deg, #151d2b 0%, var(--dark-blue) 100%);
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.25);
    text-align: center;
    border-bottom: 1px solid rgba(77, 136, 255, 0.2); /* Bordure légèrement lumineuse */
}

/* Logo style */
.header img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.header img:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(77, 136, 255, 0.3));
}

/* Navigation principale - Navigation avec dégradé */
.topnav {
    background: linear-gradient(to right, #1a2130 0%, #2a3245 50%, #1a2130 100%);
    border-bottom: 1px solid rgba(77, 136, 255, 0.15);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 99;
    transition: all 0.3s ease-in-out;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Styles pour le menu WordPress */
.topnav ul {
  display: flex;                          /* Layout flexbox */
  list-style: none;                       /* Pas de puces */
  margin: 0;                             /* Reset marges */
  padding: 0;                            /* Reset padding */
  justify-content: center;                /* Centrage horizontal */
}

/* Amélioration des liens de navigation */
.topnav a {
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px; /* Meilleur espacement des lettres */
}

.topnav a:hover {
    color: #ffffff;
    background: rgba(77, 136, 255, 0.15); /* Fond hover avec couleur accent */
    border-radius: 4px;
    transform: translateY(-2px);
}

.topnav a.active {
    color: #0d47a1;                       /* Couleur lien actif */
}

.topnav a::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color); /* Ligne d'accent plus visible */
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent-color); /* Effet de lueur */
}

.topnav a:hover::after,
.topnav a.active::after {
    width: 100%;                         /* Largeur complète au hover */
}

/* Version mobile */
@media (max-width: 768px) {
    .header {
        padding: 1rem;                    /* Padding réduit */
    }
    
    .header img {
        max-width: 140px;                 /* Logo plus petit */
    }
}

@media screen and (max-width: 768px) {
    .column.middle {
        margin: 0 !important;
        padding: 1rem;
    }
}

@media screen and (max-width: 768px) {
    div#captioned-gallery {
        width: 98% !important;            /* Largeur presque pleine */
    }
}

/* Middle column - Fond uni plus professionnel */
.column.middle {
    background: var(--medium-blue);
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    margin: 0;
    padding: 1.5rem;
    max-width: 100%;
    color: var(--text-light);
    padding-bottom: 3.5rem;
}

/* Bouton retour en haut */
#myBtn {
  position: fixed;                        /* Position fixe */
  bottom: 30px;                          /* Distance bas */
  right: 30px;                           /* Distance droite */
  width: 50px;                           /* Largeur */
  height: 50px;                          /* Hauteur */
  background-color: rgba(0, 0, 0, 0.7);   /* Fond semi-transparent */
  border: none;                          /* Pas de bordure */
  border-radius: 50%;                    /* Forme ronde */
  cursor: pointer;                       /* Curseur pointer */
  display: flex;                         /* Layout flex */
  align-items: center;                   /* Centrage vertical */
  justify-content: center;               /* Centrage horizontal */
  opacity: 0;                           /* Invisible par défaut */
  visibility: hidden;                    /* Caché par défaut */
  transition: all 0.3s ease-in-out;      /* Animation */
  z-index: 999;                         /* Au dessus de tout */
}

#myBtn img {
  width: 25px;                           /* Largeur icône */
  height: 25px;                          /* Hauteur icône */
  transition: transform 0.3s ease;        /* Animation */
}

#myBtn.visible {
  opacity: 1;                            /* Visible */
  visibility: visible;                   /* Affiché */
  transform: translateY(0);              /* Position normale */
}

#myBtn:hover {
  background-color: rgba(0, 0, 0, 0.9);   /* Fond plus foncé */
  transform: translateY(-5px);            /* Léger déplacement */
}

#myBtn:hover img {
  transform: translateY(-2px);            /* Animation icône */
}

.footer {
    background: var(--dark-blue);
    color: var(--text-light);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); /* Ombre subtile vers le haut */
}

.topnav a i {
    margin-right: 5px;                   /* Espace après icône */
    font-size: 16px;                     /* Taille icône */
}

/* Animation hover optionnelle */
.topnav a:hover i {
    transform: translateY(-2px);          /* Déplacement vers le haut */
    transition: transform 0.3s ease;      /* Animation */
}

/* Contenu principal */
.site-content {
    flex: 1;                             /* Expansion */
    display: flex;                       /* Layout flex */
    flex-direction: column;              /* Direction verticale */
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* Hero Section - Style de base */
.hero {
    width: 100%;
    text-align: center;
    margin: 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, #2a3a55 100%);
    position: relative;
    overflow: hidden;
}

/* Hero Section - Front page uniquement */
body.home .hero {
    padding: 4rem 0 3rem; /* padding spécial UNIQUEMENT page d'accueil */
}

/* Effet de particules subtil pour le hero */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 30% 20%, rgba(77, 136, 255, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 70% 60%, rgba(77, 136, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero .container {
    max-width: 1200px;                   /* Largeur max */
    margin: 0 auto;                      /* Centrage */
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin: 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 300;
    margin: 15px 0;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;                 /* Titre plus petit */
    }
    
    .hero .tagline {
        font-size: 1rem;                 /* Sous-titre plus petit */
    }
}

/* Style des projets */
.projets-grid {
    display: grid;                       /* Layout grid */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Colonnes responsive */
    gap: 2rem;                          /* Espacement */
    margin: 2rem 0;                     /* Marges */
    padding: 0;                         /* Ajouté */
}

.projet-card {
    position: relative;                  /* Pour positionnement */
    width: 100%;                        /* Pleine largeur */
    max-width: 800px;                   /* Largeur max */
    margin: 0 auto 30px;                /* Marges */
    border-radius: 10px;                 /* Coins arrondis */
    overflow: hidden;                   /* Cache débordements */
    display: flex;                      /* Layout flex */
    flex-direction: column;             /* Direction verticale */
    align-items: center;                /* Centrage */
    background: linear-gradient(145deg, var(--light-blue) 0%, var(--medium-blue) 100%);
    color: var(--text-light);            /* Texte clair */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

.projet-image {
    position: relative;                  /* Pour ratio */
    width: 100%;                        /* Pleine largeur */
    padding-bottom: 56.25%;             /* Ratio 16:9 */
    overflow: hidden;                   /* Cache débordements */
}

.projet-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    /* Ajout du fallback pour WebP */
    background-image: linear-gradient(to bottom, 
        rgba(0, 157, 255, 0.1),
        rgba(0, 40, 70, 0.2)
    );
}

.projet-description {
    margin: 15px 0;                     /* Marges */
}

.projet-links {
    display: flex;                      /* Layout flex */
    gap: 1rem;                         /* Espacement */
    justify-content: center;            /* Centrage */
    margin-top: 1rem;                  /* Marge haute */
}

.github-link,
.projet-external-link {
    display: inline-block;              /* Affichage inline-block */
    padding: 10px 18px;                  /* Padding */
    border-radius: 6px;                 /* Coins arrondis */
    text-decoration: none;              /* Pas de soulignement */
    transition: all 0.3s ease;          /* Animation */
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    backdrop-filter: blur(5px);
}

.github-link:hover,
.projet-external-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(77, 136, 255, 0.3);
    color: white;
}

.projet-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3), 0 0 15px rgba(77, 136, 255, 0.2);
}

.projet-card img {
    max-width: 100%;                    /* Largeur max */
    height: auto;                       /* Hauteur auto */
    border-radius: 4px;                 /* Coins arrondis */
    margin-bottom: 1rem;                /* Marge bas */
}

.projet-meta {
    margin: 10px 0;                     /* Marges */
    font-size: 0.9em;                   /* Taille texte */
    color: var(--text-light);           /* Couleur texte */
}

.projet-meta .date {
    margin-right: 15px;                 /* Marge droite */
}

.category {
    display: inline-block;              /* Affichage inline-block */
    padding: 2px 8px;                   /* Padding */
    margin: 0 5px;                      /* Marges */
    background: var(--medium-blue);      /* Fond */
    color: white;                       /* Texte blanc */
    border-radius: 3px;                 /* Coins arrondis */
    font-size: 0.8em;                   /* Taille texte */
}

.projets-filter {
    margin-bottom: 20px;                /* Marge bas */
    text-align: right;                  /* Alignement droite */
}

.projets-filter select {
    padding: 8px;                       /* Padding */
    border-radius: 4px;                 /* Coins arrondis */
    border: 1px solid var(--medium-blue); /* Bordure */
    background: var(--light-blue);          /* Fond */
    color: var(--text-color);           /* Couleur texte */
}

.filter-select {
    padding: 8px 12px;                  /* Padding */
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;                 /* Coins arrondis */
    background: var(--light-blue);
    color: var(--text-light);            /* Texte clair */
    cursor: pointer;                    /* Curseur */
    margin-bottom: 20px;                /* Marge bas */
    width: 200px;                       /* Largeur */
}

.filter-select:hover {
    border-color: var(--dark-blue);      /* Couleur bordure hover */
}

.projet-category {
    background-color: var(--medium-blue); /* Fond */
    color: white;                        /* Texte blanc */
    padding: 5px 10px;                   /* Padding */
    border-radius: 4px;                  /* Coins arrondis */
    display: inline-block;               /* Affichage inline-block */
    margin-bottom: 10px;                 /* Marge bas */
    font-size: 0.9em;                    /* Taille texte */
    text-align: center;                  /* Centrage */
    width: fit-content;                  /* Largeur adaptative */
    margin: 0 auto 10px;                 /* Marges */
}

.projet-title {
    text-align: center;                  /* Centrage */
    margin: 15px 0;                      /* Marges */
    color: var(--text-light);            /* Titre en clair */
    font-size: 1.5em;                    /* Taille */
}

/* Ajustements responsive pour les projets */
@media screen and (max-width: 370px) {
    /* Reset complet pour le conteneur principal */
    .site-content {
        width: 100%;
        min-width: 320px;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    /* Ajustement de la colonne principale */
    .column.middle {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0.5rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Ajustement des titres sans casser la mise en page */
    h1, h2, .page-title {
        font-size: 1.3rem;
        padding: 0 5px;
        margin: 1rem 5px;
        width: auto;
        max-width: calc(100% - 10px);
        box-sizing: border-box;
    }

    /* Réinitialisation des marges pour les conteneurs */
    .projets-grid,
    .projet-card,
    .custom-gallery,
    .service-container {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }
}

.projets-filters {
    display: flex;                    /* Layout flex */
    gap: 1rem;                       /* Espacement */
    justify-content: center;         /* Centrage */
    margin: 2rem auto;              /* Marges */
    max-width: 600px;               /* Largeur max */
    padding: 0 1rem;                /* Padding */
}

.filter-select {
    padding: 8px 12px;              /* Padding */
    border-radius: 4px;             /* Coins arrondis */
    color: var(--text-light);        /* Couleur texte */
    cursor: pointer;                /* Curseur */
    min-width: 200px;              /* Largeur min */
    font-family: 'Inter', sans-serif; /* Police */
    box-shadow: 0 2px 8px rgb(0 0 0), inset 0 1px #0000000a;
}

.filter-select:hover {
    border-color: var(--dark-blue); /* Couleur bordure hover */
}

@media screen and (max-width: 600px) {
    .projets-filters {
        flex-direction: column;     /* Direction verticale */
        align-items: center;        /* Centrage */
        gap: 0.5rem;               /* Espacement */
    }

    .filter-select {
        width: 100%;               /* Pleine largeur */
        max-width: 300px;          /* Largeur max */
    }
}

.custom-gallery {
    display: flex;                 /* Layout flex */
    justify-content: center;       /* Centrage horizontal */
    align-items: center;          /* Centrage vertical */
    padding: 40px 20px;           /* Padding */
    max-width: 1200px;            /* Largeur max */
    margin: 0 auto;               /* Marges auto */
}

.lightbox-enabled {
    flex: 0 1 auto;               /* Flexibilité */
    max-width: 500px;             /* Largeur max */
    text-decoration: none;        /* Pas de soulignement */
    cursor: pointer;              /* Curseur */
    margin: 0 auto;               /* Marges auto */
}

/* Cache les images sans lightbox */
.no-lightbox {
    display: none !important;     /* Masquage forcé */
}

.custom-gallery figure {
    margin: 0;                    /* Pas de marges */
    position: relative;           /* Pour positionnement */
    overflow: hidden;             /* Cache débordements */
    border-radius: 8px;           /* Coins arrondis */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Ombre */
    background: #fff;             /* Fond blanc */
    height: 100%;                 /* Pleine hauteur */
}

.custom-gallery img {
    width: 100%;                  /* Pleine largeur */
    height: auto;                 /* Hauteur auto */
    display: block;               /* Affichage bloc */
    object-fit: contain;          /* Ajustement contenu */
    padding: 5px;                 /* Padding */
}

.custom-gallery figcaption {
    position: absolute;           /* Position absolue */
    bottom: 0;                    /* En bas */
    left: 0;                      /* À gauche */
    right: 0;                     /* À droite */
    background: rgba(0,0,0,0.8);  /* Fond semi-transparent */
    color: white;                 /* Texte blanc */
    padding: 8px;                 /* Padding */
    font-size: 0.9em;            /* Taille texte */
    text-align: center;           /* Centrage */
}

/* Style lightbox */
.sl-wrapper .sl-close {
    color: #fff !important;       /* Couleur bouton fermer */
    font-size: 36px !important;   /* Taille bouton */
    top: 20px !important;         /* Position haute */
    right: 20px !important;       /* Position droite */
}

.sl-overlay {
    background: rgba(0,0,0,0.9) !important; /* Fond overlay */
}

/* Responsive */
@media (max-width: 768px) {
    .custom-gallery {
        padding: 20px 20px 0;     /* Padding réduit */
    }
    
    .lightbox-enabled {
        width: 100%;              /* Pleine largeur */
        max-width: 100%;          /* Largeur max */
        margin-bottom: 20px;      /* Marge bas */
    }

    .custom-gallery figure {
        margin-bottom: 0;         /* Pas de marge bas */
    }
}

.content-spacing {
    height: 40px;                /* Espace après galerie */
}

/* Ajustement du menu mobile */
@media screen and (max-width: 768px) {
    .topnav {
        margin: 0;                /* Pas de marges */
        padding: 0;               /* Pas de padding */
    }

    .topnav ul {
        margin: 0;                /* Pas de marges */
        padding: 0;               /* Pas de padding */
    }

    .menu-toggle {
        margin: 0;                /* Pas de marges */
        padding: 10px;            /* Padding */
    }

    /* Supprime les espaces indésirables */
    .header {
        margin-bottom: 0;         /* Pas de marge bas */
    }

    .site-content {
        margin-top: 0;            /* Pas de marge haute */
    }
}

/* Amélioration du contraste - Version douce */
span.date {
    color: var(--text-light);            /* Dates en clair sur fond sombre */
}

.home.blog {
    color: #1a1a1a; /* Idem */
}

/* Cache visuellement les labels tout en les gardant pour les lecteurs d'écran */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Ajustement des marges pour plus de professionnalisme */
.column-middle {
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Style business pour le portfolio */
.projects-section {
    background: var(--light-gray);
    padding: 2rem 0;
    margin: 0;
    width: 100%;
}

.project-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Style des boutons plus moderne */
.btn-project {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.btn-project:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Service simple avec robot IA */
.service-simple {
    padding: 2rem 1.5rem 4rem;
}

.service-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.service-image {
    flex: 0 0 40%;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.service-text {
    flex: 0 0 60%;
}

.service-text h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: left;
}

.service-text p {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    text-align: left;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Responsive pour service */
@media (max-width: 768px) {
    .service-container {
        flex-direction: column;
    }
    
    .service-image, .service-text {
        flex: 0 0 100%;
    }
}

/* Style pour la section CTA contact */
.contact-cta {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--medium-blue) 0%, var(--dark-blue) 100%);
    border-top: 1px solid rgba(77, 136, 255, 0.15);
}

.contact-cta h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-contact {
    display: inline-block;
    background: #2563EB;
    color: #FFFFFF;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid #FFFFFF;
    text-shadow: none;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(77, 136, 255, 0.3);
    background: #1D4ED8;
}

.btn-contact i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-contact:hover i {
    transform: translateX(4px);
}

/* Animation des titres avec barre en dessous */
.section-title {
    position: relative;
    padding-bottom: 1.2rem;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: var(--text-light);
    text-align: center;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(77, 136, 255, 0.8);
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        width: 100px;
        box-shadow: 0 0 10px rgba(77, 136, 255, 0.5);
    }
    50% {
        width: 230px;
        box-shadow: 0 0 20px rgba(77, 136, 255, 0.8);
    }
}

/* Séparateurs - Style de base pour TOUTES les pages */
.section-separator {
    position: relative;
    height: 70px;
    margin: 0;
    background: transparent;
    overflow: hidden;
}

.section-separator:not(.flip) {
    background: linear-gradient(to bottom, 
        var(--medium-blue) 0%, 
        var(--light-blue) 100%);
}

.section-separator.flip {
    background: linear-gradient(to bottom, 
        var(--light-blue) 0%, 
        var(--medium-blue) 50%,
        var(--dark-blue) 100%);
}

.section-separator::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.5);
}

.section-separator:not(.flip)::before {
    bottom: 0;
    background: var(--light-blue);
}

.section-separator.flip::before {
    top: 0;
    background: linear-gradient(to bottom,
        var(--light-blue) 0%,
        var(--medium-blue) 100%);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* Différenciation des sections par des fonds légèrement différents */
.service-section, .service-simple {
    background: var(--medium-blue);
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    position: relative;
}

.projects-section, .column.middle:not(.service-simple):not(.contact-cta) {
    background: var(--light-blue);
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    position: relative;
}

.contact-cta {
    background: linear-gradient(to bottom, 
        var(--medium-blue) 0%, 
        var(--dark-blue) 100%);
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    position: relative;
}

/* Style uniquement pour les pages non-home */
body:not(.home) .column.middle {
    background: linear-gradient(135deg, 
        var(--dark-blue) 0%,
        var(--medium-blue) 100%
    );
    border-top: 1px solid rgba(77, 136, 255, 0.2);
    position: relative;
}

/* Style pour les paragraphes des projets */
.column.middle:not(.home) p:not(:empty):not(:has(img)) {
    background: linear-gradient(145deg,
        rgba(26, 31, 46, 0.7) 0%,    /* dark-blue avec transparence */
        rgba(43, 58, 87, 0.7) 100%    /* medium-blue avec transparence */
    );
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem auto;
    border: 1px solid rgba(77, 136, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    line-height: 1.6;
    color: var(--text-light);
    max-width: 900px;
}

/* Style des liens dans les paragraphes des projets */
.column.middle:not(.home) p a {
    color: #00a0ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Ciblage de toutes les images, peu importe leur conteneur */
.aligncenter,
.wp-block-image img,
figure img,
p img {
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 157, 255, 0.3),
                0 0 30px rgba(0, 157, 255, 0.1);
    background: linear-gradient(to bottom, 
                rgba(0, 157, 255, 0.1),
                rgba(0, 40, 70, 0.2));
    border: 1px solid rgba(0, 157, 255, 0.2);
    transform: perspective(1000px) translateZ(0);
    transition: all 0.3s ease;
    /* Ajout de l'optimisation pour WebP */
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
}

/* Effet hover amélioré */
.aligncenter:hover,
.wp-block-image img:hover,
figure img:hover,
p img:hover {
    box-shadow: 0 0 20px rgba(0, 157, 255, 0.4),
                0 0 40px rgba(0, 157, 255, 0.2);
    transform: perspective(1000px) translateZ(10px);
    filter: brightness(1.05); /* Ajout d'un léger boost de luminosité */
}

/* Optimisation du chargement des images */
img {
    /* Ajout du lazy loading natif */
    loading: lazy;
    /* Meilleure qualité de rendu pour WebP */
    image-rendering: -webkit-optimize-contrast;
    /* Évite le flou pendant les transitions */
    backface-visibility: hidden;
    /* Améliore la performance des transitions */
    will-change: transform;
}

@media screen and (min-width: 768px) and (max-width: 1080px) {
    .service-container {
        padding: 0 20px;  /* Ajoute du padding sur les côtés */
        gap: 1rem;       /* Réduit l'espace entre image et texte */
    }

    .service-text {
        flex: 0 0 55%;  /* Réduit légèrement la largeur du texte */
    }

    .service-image {
        flex: 0 0 35%;  /* Réduit légèrement la largeur de l'image */
    }

    .service-text h3,
    .service-text p {
        margin-right: 10px;  /* Ajoute un peu d'espace à droite */
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-blue);
    padding: 2rem 2rem;
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center !important;
    gap: 1rem;
}

.cookie-banner-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-banner p {
    color: #FFFFFF;
    font-weight: 400;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.cookie-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.cookie-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-gray);
    white-space: nowrap;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.cookie-banner button {
    padding: 0.5rem 1rem;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#accept-all {
    background: #2563EB;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    font-weight: 600;
    min-width: 120px;
    text-shadow: none;
    border: none;
}

#accept-all:hover {
    background: #1D4ED8;
}

#save-preferences {
    background: transparent;
    color: var(--light-gray);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#save-preferences:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-banner a {
    color: #93C5FD;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Style personnalisé pour les checkboxes */
.cookie-type input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid #FFFFFF;
    border-radius: 3px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.cookie-type input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    color: #FFFFFF;
    font-size: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cookie-type input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-type label {
    color: #FFFFFF;
    font-weight: 500;
}

@media screen and (max-width: 480px) {
    .cookie-banner {
        padding: 0.8rem;
    }

    .cookie-options {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.5rem;
    }

    .cookie-type {
        justify-content: center;
        width: 100%;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .cookie-banner-content {
        text-align: center;
    }

    .cookie-banner p {
        text-align: center;
    }
}

@media screen and (max-width: 360px) {
    .cookie-banner {
        padding: 0.6rem;
    }

    .cookie-banner p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin: 0;
    }

    .cookie-type {
        font-size: 0.75rem;
    }

    .cookie-buttons button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Ultra petit écran */
@media screen and (max-width: 320px) {
    .cookie-banner {
        padding: 0.4rem;
    }

    .cookie-banner p {
        font-size: 0.7rem;
        line-height: 1.2;
        max-width: 280px; /* Limite la largeur du texte */
    }

    .cookie-type {
        font-size: 0.7rem;
    }

    .cookie-type label {
        font-size: 0.7rem;
    }

    .cookie-buttons button {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        min-width: 100px; /* Largeur minimum pour les boutons */
    }

    .cookie-banner a {
        word-break: break-word; /* Permet aux longs mots de se couper */
    }
}

/* 🌴 BANDEAU VACANCES MAMAN - RESPONSIVE ET DISCRET 🌴 */
.vacation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #45B7D1 100%);
    color: white;
    text-align: center;
    padding: 0.8rem 1rem;
    z-index: 9998;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    animation: vacation-glow 3s ease-in-out infinite alternate;
}

.vacation-banner p {
    margin: 0;
    padding: 0;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-family: var(--font-primary);
}

.vacation-banner .vacation-emoji {
    font-size: 1.1em;
    margin: 0 0.3rem;
    animation: vacation-bounce 2s ease-in-out infinite;
}

@keyframes vacation-glow {
    0% { box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
    100% { box-shadow: 0 4px 20px rgba(255,107,107,0.3); }
}

@keyframes vacation-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Ajustement du body pour compenser le bandeau */
body.has-vacation-banner {
    padding-top: 50px;
}

/* Responsive bandeau vacances */
@media screen and (max-width: 768px) {
    .vacation-banner {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    body.has-vacation-banner {
        padding-top: 45px;
    }
    
    .vacation-banner .vacation-emoji {
        font-size: 1em;
        margin: 0 0.2rem;
    }
}

@media screen and (max-width: 480px) {
    .vacation-banner {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    
    body.has-vacation-banner {
        padding-top: 40px;
    }
    
    .vacation-banner p {
        line-height: 1.3;
    }
}

@media screen and (max-width: 320px) {
    .vacation-banner {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }
    
    body.has-vacation-banner {
        padding-top: 35px;
    }
}

/* 🚨 FIX MAMAN - CORRECTION DIRECTOOOR → DIRECTOR EN ES (COMPATIBLE TOUS NAVIGATEURS) */
html[lang="es"] h2:nth-of-type(2) {
    position: relative;
    color: transparent !important;
}

html[lang="es"] h2:nth-of-type(2)::after {
    content: "2. Propietario y Director de publicación";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: var(--text-light) !important;
    text-align: center;
    font-family: var(--font-primary);
    font-size: inherit;
    font-weight: inherit;
}

/* 🚨 FIX MAMAN - CORRECTION UNIVERSELLE AVEC JAVASCRIPT INTÉGRÉ */
html[lang="es"] .directooor-fix {
    position: relative;
    color: transparent !important;
}

html[lang="es"] .directooor-fix::after {
    content: "Director: A. Tyberghien";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: var(--text-light) !important;
    text-align: center;
    font-family: var(--font-primary);
    font-size: inherit;
    font-weight: inherit;
}























