/*
	Theme Name: Colega Child
	Theme URI: http://clapat.ro/themes/colega-wordpress/
	Description: Responsive Wordpress Theme
	Template: colega
	Version: 2.1
	Author: Clément Droff
	Author URI: https://www.clementdroff.fr/
	License: Themeforest
	License: GNU General Public License version 3.0
	License URI: http://www.gnu.org/licenses/gpl-3.0.html
	Tags: four-columns, custom-background, custom-colors, featured-images, full-width-template, theme-options
	Text Domain: colega-child
*/


/*------------------------------------------------------------------

Add here your own styles
-------------------------------------------------------------------*/

/*** Variables ***/
body {
    --color-primary: var(--wp--preset--color--primary);
    --color-secondary: var(--wp--preset--color--secondary);
    --color-black: var(--wp--preset--color--black);


}



/* Sélection du texte : le thème parent met `user-select: none` sur html, body et #main (donc sur toute la page).
   On la rétablit, et on la garde désactivée sur les contrôles (boutons, titres d'accordéon, curseur) pour éviter
   de sélectionner du texte par erreur en cliquant. Les carrousels (owl) gardent leurs propres règles. */
html,
body,
#main {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}
button,
summary,
[role="button"],
#magic-cursor,
#ball {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* FONTS */
@font-face {
    font-family: 'HurmeGeometricSans4Regular';
    src: url('fonts/hurmegeometricsans4.woff2') format('woff2'),
         url('fonts/hurmegeometricsans4.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HurmeGeometricSans4Bold';
    src: url('fonts/hurmegeometricsans4bold.woff2') format('woff2'),
         url('fonts/hurmegeometricsans4bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



html, body {
    font-family: 'HurmeGeometricSans4Regular', sans-serif;
    font-weight: normal;
    font-style: normal;
}


/* ============================================================
   ICÔNES — base commune (font-awesome remplacé par IcoMoon)
   Les icônes sont gérées par css/icomoon.css
   ============================================================ */

/* Reset de base pour les éléments <i> avec classe icon- ou fa */
.fa,
[class^="icon-"],
[class*=" icon-"] {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'HurmeGeometricSans4Bold', sans-serif;
    font-weight: normal;
    font-style: normal;
}

@media only screen and (max-width: 767px) {
    h3 {
        line-height: 100%;
    }
}

/***************/
/*** General ***/
/***************/
html, body, p {
    font-size: 16px;
}





/* Hero (titre de page + fil d'Ariane) : la gouttière latérale est celle du contenu (#main-page-content : 60 / 40 / 20 px),
   pour que le titre, le fil d'Ariane et le contenu partagent le même bord gauche. Les espacements verticaux sont ceux
   qui s'appliquaient réellement avant (les anciens paliers 1466 / 1024 / 767 / 479 étaient écrasés par le dernier, 1680,
   car les media queries étaient dans le désordre). */
#hero-caption {
  padding: 200px 80px 80px 80px;
}
@media only screen and (max-width: 1680px) {
  #hero-caption {
    padding: 100px 60px 20px 60px;
  }
  /* Hero sans image : même largeur maximale que le contenu (#main-page-content : 1580px), sinon il est plus étroit (1280px)
     et décalé. Les hero sur image (portfolio) gardent leur mise en page. */
  #hero:not(.has-image) #hero-caption {
    max-width: 1580px;
    box-sizing: border-box;
  }
}
@media only screen and (max-width: 1024px) {
  #hero-caption {
    padding: 100px 40px 20px 40px;
  }
}
@media only screen and (max-width: 767px) {
  #hero-caption {
    padding: 100px 20px 20px 20px;
  }
}









[data-tooltip]::before {
    font-size: 16px;
}


.light-content p {
    color: var(--wp--custom--grey--perle);
}



/*** Paddings ***/
@media only screen and (max-width: 767px) {
    #main-page-content {
        padding: 0 1.25rem;
    }
}


.row_padding_bottom_medium {
    padding-bottom: 4vw;
}
.row_padding_top_medium {
    padding-top: 4vw;
}
.row_padding_bottom_small {
    padding-bottom: 2vw;
}
.row_padding_top_small {
    padding-top: 2vw;
}

#main-page-content.comments-page {
    max-width: 1580px;
}


/*************/
/* Preloader */
/*************/

.percentage {
	font-size: 3rem;
}

.percentage::before {
	display: none;
}



/* Dark Content */
.dark-content h1, .dark-content h2, .dark-content h3, .dark-content h4, .dark-content h5, .dark-content h6 {
    color: var(--wp--preset--color--black);
}

.dark-content li {
    color: var(--wp--custom--grey--202020);
}

/**************/
/*** Header ***/
/**************/
header {
    background-color: transparent !important;
}
#header-container {
    backdrop-filter: blur(10px);
}

@media only screen and (min-width: 1025px) {
    header {
        height: 120px;
    }
    #header-container {
        padding: 20px 40px;
    }
}
/* Logo et menu sur le même bord que le contenu (60 px) tant que le contenu a sa gouttière de 60 px. */
@media only screen and (min-width: 1025px) and (max-width: 1680px) {
    #header-container {
        padding: 20px 60px;
    }
}
@media only screen and (max-width: 479px) {
    #logo {
        top: 20px;
    } 
    #logo img {
        height: 40px;
    }

}

.button-wrap.right .button-text span {
    font-size: 12px;
}

/*************/
/* Scrollbar */
/*************/
.scrollbar-thumb {
    background: var(--color-primary) !important;
}


/*******************/
/******* Menu ******/
/*******************/
.menu .button-text {
    font-size: 16px;
}

.flexnav li a {
    font-family: 'HurmeGeometricSans4Bold', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 16px;
}

/* Bouton du menu mobile : hamburger (3 traits qui deviennent une croix à l'ouverture, animation du thème conservée).
   Le thème dessinait 3 points qui se rassemblaient au survol : peu lisible comme menu, et le :hover restait collé après un
   tap sur écran tactile (les 3 points restaient en un seul une fois le menu refermé).
   C'est maintenant un vrai <button> (sections/header_section.php) : on lui retire l'habillage du navigateur. */
#burger-wrapper {
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}
#burger-wrapper #menu-burger { display: block; } /* span dans le bouton (c'était une div) */
#menu-burger:not(.open) span { width: 20px; height: 2px; border-radius: 2px; }
#menu-burger:not(.open) span:nth-child(1) { left: 3px; top: 6px; }
#menu-burger:not(.open) span:nth-child(2) { left: 3px; top: 12px; }
#menu-burger:not(.open) span:nth-child(3) { left: 3px; top: 18px; }
/* Plus de regroupement des traits au survol (règle du thème : left: 10px sur les traits 1 et 3) */
.button-wrap.right.menu .icon-wrap:hover #menu-burger:not(.open) span:nth-child(1),
.button-wrap.right.menu .icon-wrap:hover #menu-burger:not(.open) span:nth-child(3) { left: 3px; }

/* Menu plein écran (mobile, tablette et petits portables, jusqu'à 1280 px) : même fond que le site. Le script du thème (FirstLoad)
   pose un background-color en ligne sur le menu (#000, ou #0F1216 sur les pages claires) : seul !important le surclasse. Au-dessus
   de 1280 px le menu classique est transparent (le thème le force aussi), on n'y touche pas.
   De 1025 à 1280 px, le bandeau passe en mode « fullscreen-menu » du thème (sections/header_section.php) : même menu, même bouton. */
@media (max-width: 1280px) {
    nav.menu-main-menu-container { background-color: var(--wp--preset--color--site) !important; }
    /* Menu fermé : le thème le rend seulement transparent (opacity: 0) et non cliquable, mais ses 12 liens restaient atteignables
       au clavier, sans focus visible. visibility: hidden les retire aussi du clavier et des lecteurs d'écran. La transition du thème
       (0,2 s après 0,6 s en fermeture, immédiate à l'ouverture) s'applique à visibility : le fondu de fermeture reste visible. */
    nav.menu-main-menu-container:not(.open) { visibility: hidden; }
    /* Menu ouvert : la page derrière ne défile plus (le menu plein écran ne remplit pas l'écran en hauteur, le geste de défilement
       passait à la page). Le thème met overflow-y: scroll sur le body : on bloque html et body, la position de la page est conservée
       et le défilement revient à la fermeture. Si le menu est plus haut que l'écran (paysage), il défile seul, sans entraîner la page. */
    html:has(nav.menu-main-menu-container.open),
    body:has(nav.menu-main-menu-container.open) { overflow: hidden; }
    nav.menu-main-menu-container .nav-height { overscroll-behavior: contain; }
}
/* Libellé « Menu » à côté du bouton : le thème le masque dès 1024 px. On le garde en tablette (de 481 à 1024 px, comme de 1025 à 1280 px)
   et on l'exclut sur mobile (480 px et moins, le palier mobile de theme.json). */
@media only screen and (min-width: 481px) and (max-width: 1024px) {
    .button-wrap.right.menu .button-text { display: block; }
}

/* Réduction fluide (clamp) du menu classique, dès 1281 px (en dessous, c'est le hamburger : bandeau en mode « menu plein écran »), pour que
   le menu tienne sur la ligne du logo, entre les marges de 60 px du bandeau (alignées sur le contenu, cf. « Header » plus haut). Sans ça il
   passait sous le logo, dépassait du bandeau (120 px) et recouvrait le haut de la page.
   Calibré pour le menu actuel (6 entrées dont « Brasseur d'idées créatives » et « Demander mon devis ») : la taille du texte grandit de
   13,9 px (1281 px) à 16 px (1466 px) ; l'espace entre entrées est la variable d'ajustement : 4,25 vw - 41,5 px (12,9 px à 1281 px), jusqu'à
   ses 25 px d'origine (~1560 px). Condition de non-retour à la ligne :
     logo 250 + menu + 2 x marge 60 + barre de défilement 15 + réserve 12 <= largeur de fenêtre.
   À recalibrer si une entrée du menu est ajoutée ou rallongée ; si le menu devient trop long pour tenir à 1281 px, repousser la plage du
   hamburger (header_section.php, functions.php « Menu », et les « max-width: 1280px » de ce fichier). */
@media only screen and (min-width: 1281px) {
  .flexnav li a {
    font-size: clamp(11px, calc(1.13vw - 0.62px), 16px);
  }
  .flexnav li {
    padding-inline: clamp(5px, calc(4.25vw - 41.5px), 25px);
  }
}
@media (min-width: 1025px) {
    .fullscreen-menu .flexnav li a {
        font-size: 2em;
        line-height: 2em;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-bottom: 2rem;
    }
    .fullscreen-menu .flexnav .touch-button {
        height: 80px;
    }
    .fullscreen-menu .flexnav li ul li a {
        font-size: 1.5em;
        line-height: 1.2em;
    }
    .flexnav li ul {
        min-width: 250px;
    }
}

@media only screen and (max-width: 767px) {
    .flexnav li a {
        font-size: 1.5em;
        line-height: 1.3em;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .fullscreen-menu .flexnav li ul li a {
        font-size: 1.2em;
        line-height: 1.0em;
    }
}

/*** Button "Devis" in menu ***/
@media (min-width: 1025px) {
    .flexnav li:last-child {
        padding-right: 25px;
    }
    .fullscreen-menu .flexnav li:last-child {
        padding-right: 0;
    }
}

.flexnav li.devis {
    background-color: var(--color-primary);
    border-radius: 50px;
}

@media (min-width: 1025px) {
    .light-content .classic-menu.white-header .flexnav li.devis a {
        color: var(--wp--preset--color--white);
    }
}




/*******************/
/* Portfolio Page  */
/*******************/
#main-page-content.portfolio-page .home-custom-content {
    padding: 0 80px;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}
@media only screen and (max-width: 479px) {
	#main-page-content.portfolio-page .home-custom-content {
		padding: 0 20px;
	}
}


.hero-move-title {
    font-size: 56px;
    line-height: 140%;
}
@media only screen and (max-width: 767px) {
    .hero-move-title {
        font-size: 40px;
    }
}


#itemsWrapperLinks {
    margin-top: 50px;
}

/* Small text hero title */
.hero-move-title span.small-text-hero {
    display: inline-block;
    font-size: 16px;
}
/*** Graphiste Webdesigner indépendant <span class="small-text-hero">(+ de 10 ans d’expérience)</span> & expert WordPress. ***/


.item-image {
    background-color: var(--wp--custom--grey--202020);
}
.item-title {
    font-size: 32px;
}
@media only screen and (max-width: 767px) {
    .item-title {
        font-size: 24px;
    }
}


.scattered-grid .item:nth-of-type(6n+4) {
    margin-top: 5vw;
}


.portfolio .item:first-child .item-title::after {
    content: "Nouveau";
    color: var(--color-primary);
    font-size: 14px;
    border: 1px solid var(--color-primary);
    padding: 0 10px;
}
.item-cat {
    font-size: 14px;
    margin-top: 10px;
    color: var(--wp--preset--color--white);
    font-weight: 400;
}
.item:hover .item-cat {
    opacity: 0.7;
}


/*** Filters on portfolio page ***/
@media only screen and (max-width: 767px) {
    #show-filters {
        display: none;
    }
}
#filters li a {
    font-size: 3em;
    line-height: 1.5em;
}
/*** ***/





/********************/
/* Portfolio Single */
/********************/
.hero-subtitle {
    font-size: 20px;
}
.light-content .hero-title {
	text-shadow: 3px 3px 10px color-mix(in srgb, var(--wp--preset--color--black) 80%, transparent);
}
.light-content .hero-subtitle {
	padding-top: 10px;
    text-shadow: 3px 3px 10px color-mix(in srgb, var(--wp--preset--color--black) 80%, transparent);
}

#project-nav .item .item-title {
    font-size: 18px;
}


/* Opacité sur le hero Portfolio SINGLE */
#hero-image-wrapper {
    opacity: 0.3;
}


/*************/
/*** Links ***/
/*************/

/* (Retiré : .light-content #main-content a { font-weight: 900 } donnait un faux gras sur les liens et les boutons.) */
.white-section a {
    color: var(--wp--preset--color--black);
}
/*** Colega Button Block : Colega Text Link ***/

.button-wrap.right .button-text span {
    font-size: 14px;
}


/*** Buttons ***/
.button-text,
.button-border {
    font-family: 'HurmeGeometricSans4Regular';
}

/* Custom 404 Error Page */
.custom-404 #hero-caption {
    display: table;
    width: 100%;
    padding: 160px 80px 160px 80px;
}
.custom-404 .hero-title {
	text-transform: uppercase;
	font-family: 'HurmeGeometricSans4Bold', sans-serif;
    font-weight: normal;
    font-style: normal;
} 
.custom-404 .hero-title div {
    font-size: 32px;
}
.custom-404 .custom-image-404 {
    margin: auto;
    max-width: 600px;
}
/* Fallback SVG statique : masqué tant que l'animation Lottie (CDN externe)
   charge normalement, affiché uniquement si son script ou son fichier
   d'animation échoue (voir onerror dans 404.php). */
.custom-404 .custom-image-404 .custom-error-404-fallback {
    display: none;
    width: 100%;
    height: auto;
}
.custom-404 .custom-image-404.lottie-failed .custom-error-404-fallback {
    display: block;
}
.custom-404 .custom-image-404.lottie-failed dotlottie-player {
    display: none;
}
@media only screen and (max-width: 1440px) {
    .custom-404 .custom-image-404 {
        max-width: 400px;
        margin-bottom: 20px;
    }
}
@media only screen and (max-width: 767px) {
    .custom-404 .hero-title div {
        font-size: 24px;
        line-height: 42px;
    }
}


/* Social icons */
.socials-wrap .socials {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
.socials li a {
    font-size: 24px;
}

.has-border {
	border: 1px solid white;
}

span.monthly {
	display: block;
	font-size: 0.8em;
}

.middle {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}



/*** BLOG ***/
#main-content {
    padding-bottom: 4vw;
}
.blog .hero-title,
.category .hero-title {
    font-family: 'HurmeGeometricSans4Bold', sans-serif;
    font-weight: normal;
    font-style: normal;
}

.page-template-blog-page .post-title {
    font-size: 2em;
    font-family: 'HurmeGeometricSans4Bold', sans-serif;
    font-weight: normal;
    font-style: normal;
}
.page-template-blog-page .post-title h2 {
    margin-bottom: 0;
}
.article-img-wrap {
    min-height: 160px;
}
/*** Blog : liste des articles (grille au lieu du float, vignettes à ratio réservé) ***
   Le thème met l'image dans .article-head en float:left (règle globale reprise par le hero, les commentaires, la
   navigation, les formulaires) : le texte s'enroule autour et, en mobile, le titre passe sous l'image. Ici, une grille,
   limitée à la liste (#blog) et hors variante « vignettes en grille ». aspect-ratio réserve la place avant le chargement
   de l'image : plus de décalage (le min-height: 160px ci-dessus ne réservait pas la bonne hauteur). */
#blog:not(.blog-thumbnails-grid) .article-wrap {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 30px;
    align-items: start;
}
#blog:not(.blog-thumbnails-grid) .article-head {
    float: none;
    padding-top: 0;
}
#blog:not(.blog-thumbnails-grid) .article-img-wrap {
    max-width: none;
    min-height: 0;
    padding-right: 0;
}
#blog:not(.blog-thumbnails-grid) .article-img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
@media (max-width: 767px) {
    #blog:not(.blog-thumbnails-grid) .article-wrap {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 14px;
    }
    /* Pas d'alignement avec le haut de l'image quand le texte passe dessous */
    #blog:not(.blog-thumbnails-grid) .article-content .post-title h2 {
        margin-top: 0;
    }
}
/* Texte de l'article dans la liste : titre, puis une ligne de méta (catégorie, date).
   Le thème empile padding du lien-titre (10 + 10 px), marge du h2 (20 px), date en liste et marge des catégories (10 px) :
   des écarts inégaux, et le haut du titre à 10 px sous le haut de l'image. Ici : le haut des lettres du titre est aligné sur
   le haut de l'image, puis la catégorie et la date s'empilent juste dessous, avec un écart fixe (même rendu en mobile,
   où le texte passe sous l'image). */
#blog:not(.blog-thumbnails-grid) .article-content .post-title {
    padding: 0;
}
#blog:not(.blog-thumbnails-grid) .article-content .post-title h2 {
    margin: -.36em 0 0; /* l'interligne du titre (48 px pour 36 px de corps) ajoute ~13 px au-dessus des capitales : on le rattrape pour aligner sur le haut de l'image */
}
/* Même ligne de méta dans l'en-tête d'un article (.post-hero, single.php) : catégorie puis date « 6 mai 2026 », avec le même écart. */
:is(#blog:not(.blog-thumbnails-grid), .post-hero) .article-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 14px;
}
.post-hero .article-meta { margin-top: 0; } /* dans l'en-tête, la catégorie suit directement le titre */
:is(#blog:not(.blog-thumbnails-grid), .post-hero) .article-meta .entry-categories {
    margin-top: 0;
}
.single-post .post-hero .article-meta .entry-categories { margin-bottom: 0; } /* l'écart avec la date est celui de .article-meta (gap), pas les 30 px de « .single-post .entry-categories » */
:is(#blog:not(.blog-thumbnails-grid), .post-hero) .article-meta .entry-date {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    /* Même traitement que le libellé des cartes (style de bloc « Libellé de carte ») : la couleur du titre à 62 %, soit environ
       7,7:1 sur fond sombre (≥ 4,5:1, RGAA 3.2). Avant : opacity sur du gris #777 hérité du thème, soit 2,4:1. */
    color: color-mix(in srgb, var(--section-heading, var(--wp--preset--color--white)) 62%, transparent);
}
#blog:not(.blog-thumbnails-grid) .article-content > .page-links:not(:has(*)) {
    display: none;
}
.entry-categories {
    margin-top: 10px; 
}

@media only screen and (max-width: 1024px) {
  .article-link-img {
    display: block;
  }
  .article-head {

  }
  .page-template-blog-page .post-title h2 {
    font-size: 24px;
    line-height: 32px;
  }
}

/*** Category blog ***/
.category .hero-title {
    font-size: 60px;
    line-height: 80px;
}
.category #hero-caption {
    padding: 230px 80px 80px 80px;
}
/* */

/*** Single Blog Page ***/
#comments {
    display: none;
}
#post .post-image {
    margin-top: var(--wp--preset--spacing--small); /* le thème parent mettait 40 px sous l'en-tête : un peu moins (l'en-tête a déjà 20 px de padding bas) */
    margin-bottom: 80px;
}

.single-post h2 {
    margin-top: 1.2em;
}
.single-post h3 {
    margin-top: 1.2em;
    font-size: 24px;
    line-height: 24px;
}

.single-post .entry-categories {
    margin-top: 0;
    margin-bottom: 30px;
}

/* Espace sous les images et les galeries des articles. Le thème parent remet à zéro la marge de tous les <figure> (figure { margin: 0 }),
   donc sans cette règle le paragraphe suivant colle à l'image. L'ancien sélecteur « .wp-block-image figure » visait le <figure> interne de la
   visionneuse (lightbox), pas le bloc Image lui-même. Les images d'une galerie gardent leur marge nulle (la règle du bloc Galerie est plus
   spécifique : l'espace entre les vignettes vient de son propre « gap »). */
.single-post figure.wp-block-image,
.single-post figure.wp-block-gallery {
    margin-bottom: 2em;
}
blockquote cite {
    color: var(--wp--custom--grey--moyen);
}

/*** All Projects Custom Page with Gutenberg ***/
.all-projects h2 {
    margin-top: 10px;
    margin-bottom: 0;
}



/*** Portfolio Call To Action ***/
.call-to-action {
    padding: 8vw;
}
.call-to-action .button-box {
    display: flex;
    justify-content: center;
}
.call-to-action .button-border {
    font-size: 1em;
}


/*** WordPress Lightbox ***/
.wp-lightbox-overlay .scrim {
    background-color: color-mix(in srgb, var(--wp--preset--color--black) 60%, transparent) !important;
}
.wp-lightbox-overlay .close-button svg {
    fill: var(--wp--preset--color--white);
    width: 40px;
    height: 40px;
}



/*** Contact Form 7 ***/
.subject-box {
    width: 100%;
    float: left;
    margin-bottom: 20px;
    position: relative;
}

/*** Textarea ***/
.message-box {
    margin-top: 30px;
}
textarea {
    height: 150px;
}
.message-box .input_label {
    top: 150px;
}

/* Case « Je suis humain » (plugin Gaitcha) : de l'air avant le bouton d'envoi, qu'elle touchait presque. */
.wpcf7-gaitcha {
    margin-block-end: var(--wp--preset--spacing--medium);
}

.wpcf7-checkbox {
    height: 50px;
}
.wpcf7-list-item {
    margin: 1em 0 0 1em;
}

.clapat-button-wrap.circle .button-border input, .clapat-button-wrap.circle .button-border a {
    font-size: 18px;
}


/* 3 columns form */
.adress-box, .code-postal-box, .town-box {
    float: left;
    margin-bottom: 20px;
    margin-right: 6%;
    position: relative;
    display: block;
}
.adress-box {
    width: 38%;
}
.code-postal-box {
    width: 12%;
}
.town-box {
    width: 38%;
    margin-right: 0px;
}
@media only screen and (max-width: 767px) {
    .adress-box,
    .code-postal-box,
    .town-box {
        width: 100%;
    }
}

/* New fields CF7 */
.light-content input[type="tel"],
.light-content input[type="url"] {
    font-weight: 500;
    width: 100%;
    padding: 0;
    border: none;
    height: 50px;
    background-color: transparent;
}
.light-content input[type="tel"]:focus,
.light-content input[type="url"]:focus {
    width: 100%;
    color: var(--wp--preset--color--white);
    /* pas d'outline: none ici : le cadre de focus global doit rester visible (WCAG 2.4.7) */
}
.light-content input[type="text"],
.light-content input[type="tel"],
.light-content input[type="url"],
.light-content input[type="email"],
.light-content input[type="search"],
.light-content textarea {
    color:var(--wp--preset--color--white);
    border-bottom:1px solid color-mix(in srgb, var(--wp--preset--color--white) 30%, transparent);
}

.light-content .white-section input[type="text"],
.light-content .white-section input[type="tel"],
.light-content .white-section input[type="url"],
.light-content .white-section input[type="email"],
.light-content .white-section input[type="search"],
.light-content .white-section textarea {
    color: var(--wp--preset--color--black);
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--black) 30%, transparent);
}

input[type="tel"]:focus + .input_label,
input[type="url"]:focus + .input_label{
    width: 100%;
}

/* Choix de formulaire (boutons radio CF7) : les mêmes boutons que le quiz (leur habillage est partagé, cf. « CD Quiz » plus bas),
   en grille de deux colonnes (une seule en dessous de 768 px). La pastille radio est masquée mais reste au clavier :
   le cadre de focus est dessiné sur le bouton, et le bouton coché prend le liseré rose. */
.wpcf7-radio {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--wp--preset--spacing--small);
    height: auto;
    margin-top: var(--wp--preset--spacing--small);
}
.wpcf7-radio .wpcf7-list-item {
    display: flex; /* le bouton remplit la hauteur de la cellule : un libellé sur deux lignes ne laisse pas ses voisins plus bas */
    margin: 0;
}
.wpcf7-radio .wpcf7-list-item label {
    box-sizing: border-box; /* un <label> est en content-box : avec width:100% + padding il dépassait de sa colonne */
    position: relative;
    margin-bottom: 0;
}
.wpcf7-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.wpcf7-radio label:has(input:focus-visible) {
    outline: 2px solid var(--wp--preset--color--white);
    outline-offset: 3px;
}
@media only screen and (max-width: 767px) {
    .wpcf7-radio {
        grid-template-columns: 1fr;
    }
}
/* Choix courts (option CF7 « class:choix-en-ligne », ex. type de site) : tous sur une ligne, deux par ligne en mobile. */
.wpcf7-radio.choix-en-ligne {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media only screen and (max-width: 767px) {
    .wpcf7-radio.choix-en-ligne {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Bigger form */
.bigger-form input[type="tel"] {
    height: 100px;
}
.bigger-form .message-box {
    margin-top: 60px;
}
.bigger-form textarea {
    height: 300px;
}
.bigger-form .message-box .input_label {
    top: 300px;
}
.bigger-form input[type="text"],
.bigger-form input[type="email"],
.bigger-form input[type="tel"],
.bigger-form input[type="search"],
.bigger-form textarea {
    font-size: 32px;
    font-family: 'HurmeGeometricSans4Regular', sans-serif;
    font-weight: normal;
    font-style: normal;
}

/*** Errors ***/
body .wpcf7 form.invalid .wpcf7-response-output,
body .wpcf7 form.unaccepted .wpcf7-response-output,
body .wpcf7 form.payment-required .wpcf7-response-output,
body .wpcf7 form.sent .wpcf7-response-output,
body .wpcf7 form.wpcf7-response-output {
    border-color: var(--color-primary);
}

div.wpcf7-response-output {
    background-color: var(--color-primary);
    line-height: 32px;
    font-size: 14px;
}

span.wpcf7-not-valid-tip {
    color: var(--color-primary);
    font-size: 12px;
}



/* Equal height columns and bottom content */
.equal-height {
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
}
.equal-height .bottom-column {
    align-self: flex-end;
}


/*** Parallax image mobile ***/
@media only screen and (max-width: 479px) {
    .full figure.has-parallax {
        height: 600px !important;
    }
}

/*** Image « Parallaxe » (style de bloc de l'Image) ***
   Le script du thème (ScrollMagic) fait glisser l'image dans son cadre au défilement : il cible les .has-parallax, ajoutés au rendu
   par PHP (functions.php). Le cadre fait la hauteur de l'écran et l'image le remplit ; ce qui dépasse est masqué.
   Mêmes règles que l'ancien « .full figure.has-parallax » des pages Colega (qui exigeait un Container Colega). */
.is-style-parallaxe {
    overflow: hidden;
    width: 100%;
    height: 100vh;
    margin: 0;
}
.is-style-parallaxe img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media only screen and (max-width: 479px) {
    .is-style-parallaxe { height: 600px !important; } /* !important : le script du thème peut poser une hauteur en ligne */
}


/*** Carousel ***/
.content-carousel .swiper-slide {
    padding-right: 2vw;
}
.content-carousel .swiper-pagination {
    text-align: left;
    position: relative;
    margin-top: 20px;
}
.content-carousel.swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: 0;
}

/*** Dark content ***/
.dark-pagination .swiper-pagination-bullet-active .path,
.change-header-color .swiper-pagination-bullet-active .path {
    stroke: var(--wp--preset--color--black);
}
.dark-pagination .swiper-pagination-bullet circle,
.change-header-color .swiper-pagination-bullet circle {
    fill: var(--wp--preset--color--black);
}



/*** Back to top ***/
#backtotop .button-text {
    font-size: 12px;
}



/*** Marquee Colega ***/
.content-marquee-wrapper {
    transform: rotate(-1deg);
}
.content-marquee {
  animation: content-marquee 30s infinite linear;
}


/*** NEW Clients Block ***/
.clients-block figure {
    border: 1px solid var(--wp--custom--grey--333);
}
.clients-block figure img {
    opacity: 0.6;
    transition: all 0.2s ease 0s;
    -webkit-transition: all 0.2s ease 0s;
}
.clients-block figure:hover img {
    opacity: 1;
}

.clients-block.is-layout-grid {
    gap: 0;
}

@media only screen and (max-width: 767px) {
    .clients-block.wp-container-core-group-is-layout-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/****************/
/*** SEOPress ***/
/****************/

/*** SeoPress FAQ block V1 ***/
.wpseopress-faqs {
    padding-top: 50px;
    padding-bottom: 50px;
}
.wpseopress-faq {
    border-bottom: 1px solid white;
    margin-top: 10px;
    margin-bottom: 30px;
}
.wpseopress-accordion-button {
    text-align: left;
    background: transparent;
    border: none;
    padding-left: 0;
}
.wpseopress-accordion-button p {
    font-size: 16px;
    font-weight: 900;
    color: var(--wp--preset--color--white);
}

/*** SeoPress FAQ block V2 ***
   Les questions sont des blocs Détails : elles prennent le style accordéon de .wp-block-details (plus bas dans ce fichier). */
.wp-block-wpseopress-faq-block-v2 {
    padding-top: 50px;
    padding-bottom: 50px;
}

/*** SEOPress Breadcrumb ***/
/* Ciblé par sa structure (nav > ol.breadcrumb) et non par son aria-label : SEOPress l'a changé (« Fil d'Ariane » -> « fil d’Ariane »), la règle
   ne s'appliquait plus et, sur mobile, la règle du thème parent « nav { position: fixed; opacity: 0 } » (faite pour le menu plein écran)
   cachait le fil d'Ariane. Sur mobile le parent ajoute aussi 20 px de padding à tous les <nav> : on les retire. */
nav:has(> ol.breadcrumb) {
    opacity: 1;
    position: relative;
    height: auto !important;
    padding: 0;
    transition: none;
}
.breadcrumb {
    margin-top: 10px;
}
nav .breadcrumb {
  pointer-events: all;
}
.breadcrumb li {
    font-size: 13px;
}


/*** .wp-block-code code ***/
.wp-block-code code {
    padding: 20px;
    background-color: var(--wp--preset--color--gris-clair);
    user-select: all; 
}

.wp-block-kevinbatdorf-code-block-pro {
    margin-top: 2rem;
    margin-bottom: 2rem;

    /* On réactive la possibilité de sélectionner du texte */ 
    user-select: text; 
    -webkit-user-select: text; 
    -khtml-user-select: text; 
    -moz-user-select: text; 
    -ms-user-select: text;
}




/*** Video block ***/
.wp-block-embed.is-type-video {
    margin-top: var(--margin-block-custom);
    margin-bottom: var(--margin-block-custom);
}

/*** WP Plugin Info Card ***/
.wp-pic-wrapper {
    margin-top: var(--margin-block-custom);
    margin-bottom: var(--margin-block-custom);
}
body .wp-pic .wp-pic-bar {
    background-color: var(--wp--custom--grey--marine);
}
body .wp-pic .wp-pic-asset-bg {
    background-color: var(--wp--preset--color--white);
}


/*** Block Separator ***/
.wp-block-separator {
    margin: 20px 0;
}


/*** New Hero on homepage ***/

/* Tache de couleur floutée — alternative légère au SVG <feGaussianBlur>.
   Un filtre de flou SVG est calculé en direct par le navigateur à chaque
   rendu (l'une des opérations de rendu les plus coûteuses) ; ce dégradé
   radial donne un effet visuel quasi identique sans calcul de filtre ni
   requête réseau.
   Réutilisable : style de bloc « Halo » du bloc Couverture (sans image de fond), ou classe "blur-blob-bg"
   sur n'importe quel bloc (Cover, Group...) via "Classes CSS supplémentaires" dans l'éditeur.
   Personnalisable par bloc via style inline, ex :
   style="--blob-color:340,80%,55%; --blob-x:30%; --blob-w:60%" */
.blur-blob-bg,
.wp-block-cover.is-style-halo {
    --blob-color: 251, 74%, 45%;
    --blob-x: 49%;
    --blob-y: 50%;
    --blob-w: 48%;
    --blob-h: 42%;
    --blob-opacity: 0.51;
    background: radial-gradient(
        ellipse var(--blob-w) var(--blob-h) at var(--blob-x) var(--blob-y),
        hsla(var(--blob-color), var(--blob-opacity)) 0%,
        hsla(var(--blob-color), calc(var(--blob-opacity) * 0.68)) 35%,
        hsla(var(--blob-color), calc(var(--blob-opacity) * 0.29)) 60%,
        hsla(var(--blob-color), 0) 80%
    );
}

/* Hero homepage : masque le SVG flouté d'origine, remplacé par .blur-blob-bg.
   Seulement dans un hero à halo : ailleurs (ex. le CTA de Galaxy Defenders) le SVG reste affiché. */
.blur-blob-bg .wp-image-20468.wp-block-cover__image-background {
    display: none;
}
/* Couverture au style « Halo » : le halo remplace l'image de fond ; une image restée dans le bloc n'est pas affichée. */
.wp-block-cover.is-style-halo > .wp-block-cover__image-background {
    display: none;
}

h1.home__hero__inner {
    font-size: 6rem;
    line-height: 6rem;
}
.home__hero__line {
    display: block;
    animation: fadeIn 1s ease-out;
}
/* Les décalages de chaque ligne sont réglés dans le bloc « Titre hero animé » (style inline). */

@media only screen and (max-width: 1024px) {
    h1.home__hero__inner {
        font-size: 5rem;
        line-height: 5.5rem;
    }
}
@media only screen and (max-width: 767px) {
    h1.home__hero__inner {
        font-size: 4rem;
        line-height: 4rem;
    }
}
@media only screen and (max-width: 479px) {
    h1.home__hero__inner {
        font-size: 2.5rem;
        line-height: 2.7rem;
    }
}
@media only screen and (max-width: 320px) {
    h1.home__hero__inner {
        font-size: 2rem;
        line-height: 2rem;
    }
}

.home-svg{
    position: absolute;
    right: 10%;
    bottom: 0;
    width: 250px;
    opacity: 0.35;
    transform: rotate(7deg) translateY(0%) translateX(-30%);
}
@media only screen and (max-width: 767px) {
    .home-svg {
        transform: rotate(7deg) translateY(0%) translateX(-10%);
    }
}
@media only screen and (max-width: 479px) {
    .home-svg{
        width: 160px;
        transform: rotate(7deg) translateY(0%) translateX(0%);
    }
}


/* Trust Index */
body .ti-widget.ti-goog {
    width: max-content;
}
@media (max-width: 400px) {
    body .ti-widget.ti-goog { max-width: 100%; } /* évite que le badge dépasse d'un petit écran (320 px) */
}
/* Badge « avis Google » : Trustindex l'insère à height: 0 !important (style en ligne), puis son script l'agrandit à 64 px
   et pousse tout ce qui suit. min-height l'emporte sur height, même !important : la place est réservée dès le départ. */
.ti-widget.ti-goog[data-layout-category="button"] { min-height: 64px; }
@media (max-width: 400px) {
    .ti-widget.ti-goog[data-layout-category="button"] { min-height: 84px; } /* le badge passe sur deux lignes */
}
/* Badge « avis Google » sur une section claire (fond blanc) : la pastille de Trustindex est blanche et se confondait avec le fond.
   Gris clair du thème (même couleur que la section grise). !important : Trustindex impose son blanc avec !important. */
.is-style-section-claire .ti-widget.ti-goog > .ti-widget-container > .ti-header {
    background-color: var(--wp--preset--color--gris-clair) !important;
    border-color: var(--wp--preset--color--gris-clair);
}

/* Largeur du contenu des pages à grille « portfolio » (accueil, références) : le script du thème ajoute la classe
   .portfolio-page après le chargement, ce qui passait le contenu de 60 px de marge de chaque côté à 0, en plein écran.
   On applique cet état final dès le départ (même condition que le script : un .portfolio dans la page). */
body:has(.portfolio) #main-page-content { width: 100%; max-width: none; padding: 0; }
/* Page entièrement en blocs natifs (aucun Container Colega) : les groupes ont leur propre gouttière (--wp--custom--gutter) ; sans ça, le
   padding de la page s'ajoute à la leur (20 px + 22 px sur mobile : contenu rétréci à 290 px sur un écran de 375). Même état que l'accueil. */
#main-page-content:not(:has([class*="wp-block-colega-gutenberg-"])) { width: 100%; max-width: none; padding: 0; }


/*** Lottie animations ***/
.lottie {
    max-width: 600px;
}







/*** Test effects from https://www.slidor.fr/ ***/
.section_cta {
    position: relative;
}
.padding-global {
    padding-right: 3.5rem;
    padding-left: 3.5rem;
}
@media screen and (max-width: 767px) {
    .padding-global {
      padding-right: 1.25rem;
      padding-left: 1.25rem;
    }
}
/* Conteneur pleine largeur avec padding-global : son contenu part du même bord que le contenu normal (la gouttière
   de #main-page-content : 60 / 40 / 20 px) au lieu de 56 px, moins le décalage de la marge négative de pleine largeur.
   Le padding en % est relatif à la largeur du parent : (100vw − 100%) / 2 = gouttière + demi-barre de défilement, ce qui
   compense aussi la barre de défilement. Au-dessus de 1680 px (contenu centré, sans gouttière) on garde l'ancien padding. */
@media screen and (max-width: 1680px) {
    .wp-block-colega-gutenberg-container.full.padding-global {
        padding-right: calc((100vw - 100%) / 2);
        padding-left: calc((100vw - 100%) / 2);
    }
}

/*** Logos défilants : style de bloc « Logos défilants » du Groupe ***
   Un Groupe qui contient une seule rangée de logos (blocs Image). Au rendu, PHP (functions.php) range les logos dans une rangée
   et en ajoute une 2e, identique et ignorée des lecteurs d'écran : la rangée glisse de sa propre largeur, la 2e prend sa place
   et la boucle est continue, au CSS seul. Dans l'éditeur : une seule rangée fixe, à la ligne (cf. editor-style.css). */
.is-style-logos-defilants {
    --logos-defilants-ecart: 5rem; /* entre la fin d'une rangée et le début de la suivante */
    --logos-defilants-entre-logos: 5rem;
    --logos-defilants-hauteur: 20rem;
    display: flex;
    gap: 0;
    overflow: hidden;
}
.is-style-logos-defilants > .logos-defilants__set {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    column-gap: var(--logos-defilants-entre-logos);
    box-sizing: border-box;
    min-width: 100%; /* au moins la largeur de l'écran, même avec peu de logos */
    padding-inline-end: var(--logos-defilants-ecart);
    animation: logos-defilants 45s linear infinite;
}
.is-style-logos-defilants .logos-defilants__set > * { flex: none; margin: 0; }
.is-style-logos-defilants img {
    width: auto;
    max-width: none;
    height: var(--logos-defilants-hauteur);
    object-fit: contain;
}
@keyframes logos-defilants {
    to { transform: translateX(-100%); } /* sa propre largeur, écart compris (padding) */
}
/* Un contenu qui bouge doit pouvoir être arrêté (RGAA 13.8) : pause au survol et au clavier, arrêt si le visiteur a demandé moins d'animations. */
.is-style-logos-defilants:is(:hover, :focus-within) > .logos-defilants__set { animation-play-state: paused; }
@media screen and (max-width: 767px) {
    .is-style-logos-defilants {
        --logos-defilants-entre-logos: 0rem;
        --logos-defilants-hauteur: 10rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .is-style-logos-defilants > .logos-defilants__set {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 1rem;
        min-width: 0;
        width: 100%;
        padding-inline-end: 0;
    }
    .is-style-logos-defilants > .logos-defilants__set[aria-hidden="true"] { display: none; }
}

/*** Custom CSS Animations ***/
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes rotating {
    from {
      transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.rotating {
    animation: rotating 10s linear infinite;
}

/* Hover Effect on image project (all projects page)  */
.project-item .wp-block-post-featured-image {
    height: 100%;
    width: 100%;
    overflow: hidden;
}
  
.project-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 1s cubic-bezier(.165,.84,.44,1) 0s;
    transform: scale(1.05);
}
.project-item .wp-block-post:hover img{
    transform: scale(1.0);
    transition: all 1s cubic-bezier(.165,.84,.44,1) 0s;
}
.project-item .wp-block-post-terms {
    opacity: 0;
    transition: all 0.1s ease-out;
    transform: translateY(15px);
}
.project-item .wp-block-post:hover .wp-block-post-terms {
    opacity: 0.7;
    -webkit-transform: translateY(5px);
    transform: translateY(5px);
    -webkit-transition: all 0.1s ease-out 0.1s;
    transition: all 0.1s ease-out 0.1s;
}

.project-item  h2 {
  line-height: 1.5em;
}





/*** Font-size */
.has-x-large-font-size {
    line-height: 140%;
}



/* Debug */
.preloader-wrap {
    font-size: 15px !important;
}





/*** ***/
.page-hero-image {
    position: absolute;
    right: 10%;
    top: 65%;
    width: 220px;
    opacity: 0.65;
    z-index: 1;
    transform: rotate(7deg) translateY(-20%);
}
@media only screen and (max-width: 479px) {
    .page-hero-image {
        right: -10%;
        top: 30%;
        width: 160px;
        opacity: 0.35;
    }
}
/* Le Container Colega (position: relative, règle du thème parent) servait de repère à cette image décorative.
   En blocs natifs, c'est le groupe qui la contient : sans ça, « top: 65% » se calcule sur la hauteur de toute la page. */
.wp-block-group:has(.page-hero-image) {
    position: relative;
}

.pulse {
    transform: scale(1), rotate(7deg) translateY(-20%);
	animation: pulse 2s infinite;
}
@keyframes pulse {
	0% {
		transform: scale(0.95);
	}

	70% {
		transform: scale(1);
	}

	100% {
		transform: scale(0.95);
	}
}




/* Debug Magic Cursor : ball loader */
#ball-loader {
    width: 120px;
    height: 120px;
    left: -20px !important;
    top: -20px !important;
}




/*** Menu footer ***/

footer {
    height: 200px;
}
#footer-container {
    height: 150px;
}

ul.footer-menu {
    display: flex;
    margin: 20px 0 !important;
    list-style: none;
    pointer-events: auto;
    flex-direction: row;
}
ul.footer-menu li{
    flex: 1 1 30px;
    text-align: center;
    position: relative;
}

/* Tablette : centrer le copyright (qui se retrouve aligné à gauche sur cette plage) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .footer-middle .copyright {
        text-align: center;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 767px) {
    footer {
        position: relative;
        height: 600px;
    }
    #footer-container {
        height: 550px;
    }
    ul.footer-menu {
        flex-direction: column;
        margin: 0;
    }
    .footer-middle {
        position: relative;
    }
    .footer-middle .copyright {
        line-height: 24px;
        margin-top: 20px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        left: auto;
    }
    #footer-container #backtotop.button-wrap.left {
        position: relative;
    }
    #backtotop.button-wrap.left .icon-wrap {
        top: 70px;
    }
}

@media only screen and (max-width: 479px) {
    .copyright {
        left: 0;
    }
}




.change-header-color hr.white-line:before {
    background:color-mix(in srgb, var(--wp--preset--color--black) 7%, transparent);
}




.white-section {
    color: var(--wp--preset--color--black) !important;
}


.row_padding_all_small {
    padding: 2vw;
}
.has-border-color {
    border: 1px solid var(--wp--custom--grey--333);
}









/*** blockquote ***/
blockquote {
    font-family: inherit;
    font-style: normal;
}
blockquote p {
    font-size: 22px;
}





#project-nav {
  bottom: 0;
}
#main-page-content.project-page {
  margin-bottom: 100vh;
}





/*** ***/
.has-mask span {
    overflow: visible;
}

/*** Feature Grid Mobile ***/
@media only screen and (max-width: 1024px) {
    .feature-grid-mobile {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media only screen and (max-width: 767px) {
    .feature-grid-mobile {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}




/*** Corrections rgaa-checker.com ***/
.flexnav .touch-button .navicon {
    color: var(--wp--preset--color--white);
}





blockquote {
    margin-top: 2em;
    margin-bottom: 2em;
    border-left: 5px var(--color-primary ) solid;
}
blockquote p {
  margin-bottom: 0;
}




/* ============================================
   CD Quiz — styles partagés tous quiz
   Clément Droff child theme
   ============================================ */

.cdq-wrapper {
  max-width: 560px;
  border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--white) 12%, transparent);
  border-radius: 14px;
  padding: 2rem 2rem 1.75rem;
  margin: 2.5rem auto;
  font-family: inherit;
  background: color-mix(in srgb, var(--wp--preset--color--white) 4%, transparent);
}

.cdq-intro {
  margin: 0 0 1.25rem !important;
  color: var(--wp--preset--color--white) !important;
}

.cdq-question {
  font-weight: 600;
  margin: 0 0 .875rem;
  color: var(--wp--preset--color--white);
}

/* Habillage partagé avec les choix (boutons radio) des formulaires : .wpcf7-radio label, cf. « Choix de formulaire » plus haut. */
.cdq-btn,
.wpcf7-radio label {
  display: block;
  width: 100%;
  text-align: left;
  padding: .7rem 1rem;
  margin-bottom: .5rem;
  border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--white) 20%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--wp--preset--color--white) 5%, transparent);
  cursor: pointer;
  font-size: .95rem;
  font-family: inherit;
  color: var(--wp--custom--grey--ccc);
  transition: border-color .15s, background .15s, color .15s;
}

.cdq-btn:hover,
.wpcf7-radio label:hover {
  border-color: color-mix(in srgb, var(--wp--preset--color--white) 60%, transparent);
  background: color-mix(in srgb, var(--wp--preset--color--white) 10%, transparent);
  color: var(--wp--preset--color--white);
}

.cdq-btn.cdq-selected,
.wpcf7-radio label:has(input:checked) {
  border-color: var(--color-primary, var(--wp--preset--color--primary));
  background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
  color: var(--wp--preset--color--white);
}

.cdq-hidden {
  display: none !important;
}

.cdq-result {
  text-align: center;
  padding-top: .5rem;
}

.cdq-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--wp--custom--grey--666);
  margin-bottom: .5rem;
}

.cdq-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wp--preset--color--white);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cdq-cta {
  display: inline-block;
  background: var(--color-primary, var(--wp--preset--color--primary));
  color: var(--wp--preset--color--white) !important;
  padding: .75rem 1.75rem;
  border-radius: 30px;
  text-decoration: none !important;
  font-size: .95rem;
  margin-bottom: .75rem;
  transition: opacity .15s;
}

.cdq-cta:hover {
  opacity: .85;
}

.cdq-restart {
  display: block;
  margin: .5rem auto 0;
  background: none;
  border: none;
  color: var(--wp--custom--grey--555);
  font-size: .85rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.cdq-restart:hover {
  color: var(--wp--custom--grey--888);
}

/* has-animation : état initial pour les éléments non-VC */
.has-animation:not(.vc_row):not(.animated) {
    opacity: 0;
    transform: translateY(30px);
}

/* Centrage du bouton clapat dans un wp-block-cover */
.wp-block-cover .button-box {
    display: block;
}

/* Centrage du contenu dans icon-wrap */
.button-wrap.right .icon-wrap {
    float: right;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-wrap.left .icon-wrap {
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   Bandeau cookies SEOPress (v10.4) : carte en bas à droite
   Contient : texte, catégories (cases à cocher), boutons Accepter / Refuser / Personnaliser / Enregistrer.
   !important partout : le plugin injecte son propre CSS en ligne, avec des !important sur les boutons.
   ============================================= */

@keyframes seopress-slidein {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.seopress-user-message {
    left: auto !important;
    right: 24px !important;
    bottom: 24px !important;
    width: 340px !important;
    max-width: calc(100vw - 48px) !important;
    max-height: calc(100vh - 48px) !important;
    overflow-y: auto !important;
    background: var(--wp--preset--color--dark) !important;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 12%, transparent) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 8px 32px color-mix(in srgb, var(--wp--preset--color--black) 50%, transparent) !important;
    color: var(--wp--custom--grey--bbb) !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    animation: seopress-slidein 0.35s ease forwards;
}
/* Tout le bandeau dans la police du site (les boutons et champs n'héritent pas de la police par défaut) */
.seopress-user-message,
.seopress-user-message :is(p, legend, label, span, button) {
    font-family: 'HurmeGeometricSans4Regular', sans-serif !important;
}

.seopress-user-message p:first-child {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 0 16px !important;
    color: var(--wp--custom--grey--bbb) !important;
}
.seopress-user-message p:first-child a {
    color: var(--wp--preset--color--white) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Catégories (ouvertes par « Personnaliser ») */
.seopress-user-message .seopress-user-consent-categories {
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
}
.seopress-user-message .seopress-user-consent-categories legend {
    font-family: 'HurmeGeometricSans4Bold', sans-serif !important;
    font-weight: normal !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: var(--wp--preset--color--white) !important;
}
.seopress-user-message .seopress-user-consent-category {
    gap: 16px !important;
    padding: 14px 0 !important;
    border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 12%, transparent) !important;
    font-size: 13px !important;
}
.seopress-user-message .seopress-user-consent-category:first-of-type { border-top: 0 !important; }
.seopress-user-message .seopress-user-consent-category-text strong {
    font-family: 'HurmeGeometricSans4Bold', sans-serif !important;
    font-weight: normal !important;
    font-size: 14px !important;
    color: var(--wp--preset--color--white) !important; /* sinon le thème le met en noir (b, strong) */
}
.seopress-user-message .seopress-user-consent-category-text span {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: var(--wp--custom--grey--bbb) !important;
    opacity: 1 !important;
}
.seopress-user-message .seopress-user-consent-category-always {
    font-size: 12px !important;
    color: var(--wp--custom--grey--aaa) !important;
    opacity: 1 !important;
    white-space: nowrap;
}
.seopress-user-message .seopress-user-consent-category input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    accent-color: var(--wp--preset--color--primary) !important;
    color-scheme: dark;
    cursor: pointer;
}
.seopress-user-message .seopress-user-consent-category input:focus-visible {
    outline: 2px solid var(--wp--preset--color--white) !important;
    outline-offset: 2px !important;
}

/* Boutons : Accepter / Refuser côte à côte ; Personnaliser et Enregistrer sur leur propre ligne */
.seopress-user-message p:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 !important;
    justify-content: stretch !important;
}
.seopress-user-message button {
    font-family: 'HurmeGeometricSans4Bold', sans-serif !important;
    font-weight: normal !important;
    font-size: 13px !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    padding: 11px 14px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background-color .2s, color .2s, border-color .2s !important;
    transform: none !important;
    box-shadow: none !important;
    min-width: 0 !important;
}
#seopress-user-consent-accept,
#seopress-user-consent-close {
    flex: 1 1 0 !important;
}
#seopress-user-consent-customize,
#seopress-user-consent-save {
    flex: 1 1 100% !important;
}
#seopress-user-consent-accept,
#seopress-user-consent-save {
    background: var(--wp--preset--color--white) !important;
    color: var(--wp--preset--color--site) !important;
    border: 1px solid var(--wp--preset--color--white) !important;
}
#seopress-user-consent-accept:hover,
#seopress-user-consent-save:hover {
    background: var(--wp--preset--color--primary) !important;
    border-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--white) !important;
}
#seopress-user-consent-close {
    background: transparent !important;
    color: var(--wp--preset--color--white) !important;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 22%, transparent) !important;
}
#seopress-user-consent-close:hover {
    background: color-mix(in srgb, var(--wp--preset--color--white) 8%, transparent) !important;
    border-color: var(--wp--preset--color--white) !important;
}
#seopress-user-consent-customize {
    background: transparent !important;
    border: 0 !important;
    color: var(--wp--custom--grey--bbb) !important;
    font-family: 'HurmeGeometricSans4Regular', sans-serif !important;
    font-size: 12.5px !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    padding: 4px !important;
}
#seopress-user-consent-customize:hover {
    background: transparent !important;
    color: var(--wp--preset--color--white) !important;
    text-decoration: none !important;
}
.seopress-user-message button:focus-visible {
    outline: 2px solid var(--wp--preset--color--white) !important;
    outline-offset: 2px !important;
}

/* Petit bouton "Cookies" après consentement */
.seopress-edit-choice {
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;
}
.seopress-edit-choice p {
    margin: 0 !important;
}
#seopress-user-consent-edit {
    background: var(--wp--preset--color--dark) !important;
    color: var(--wp--custom--grey--aaa) !important;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 22%, transparent) !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    font-family: 'HurmeGeometricSans4Regular', sans-serif !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
}
#seopress-user-consent-edit:hover {
    opacity: 0.7 !important;
}

/* Mobile : barre pleine largeur en bas */
@media (max-width: 480px) {
    .seopress-user-message {
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px 12px 0 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }
    .seopress-edit-choice {
        right: 16px !important;
        bottom: 16px !important;
    }
}






/*** WP Native Lightbox ***/
.wp-lightbox-overlay .wp-lightbox-navigation-button-prev,
.wp-lightbox-overlay .wp-lightbox-navigation-button-next {
    fill: var(--wp--preset--color--white) !important;
}

@media (max-width: 768px) {
    .content-slider.swiper-container {
        height: 360px;
    }
}

/*** Fix accessibilité : contraste texte insuffisant ***/
/* Le thème parent fixe .light-content .white-section p en rgba(0,0,0,0.5)
   (~3.9:1 sur fond blanc, sous le seuil AA de 4.5:1). On remonte l'opacité
   pour un ratio confortable (~5.7:1) tout en gardant un ton plus doux que
   le noir pur. */
.light-content .white-section p {
    color: color-mix(in srgb, var(--wp--preset--color--black) 60%, transparent);
}

/*** Centre .socials-wrap (footer) en mobile ***/
/* Le thème parent le positionne collé à gauche (left:-6px puis left:14px
   selon le breakpoint) au lieu de le centrer. */
@media only screen and (max-width: 767px) {
    .socials-wrap {
        float: none;
        left: auto;
        right: auto;
        margin: 0 auto;
    }
    .socials-wrap .socials {
        justify-content: center;
    }
}

/*** Fix débordement footer sur la page 404 ***/
/* Le thème fixe #hero.error à une hauteur rigide (calc(100vh - 140px)) et
   met #hero-styles en position:fixed avec la même hauteur. Le contenu réel
   (animation Lottie 600px + padding 160px haut/bas + titre/texte/bouton)
   dépasse largement cette hauteur dès que la fenêtre est un peu courte
   (iPad, 1280x800, 1440x900...). Comme #hero-styles est fixed, il sort du
   flux : #hero ne grandit pas avec son contenu et le footer chevauche
   l'illustration. On repasse en flux normal pour que #hero s'adapte à son
   contenu réel, quelle que soit la hauteur de viewport. */
#hero.error {
    height: auto;
    min-height: calc(100vh - 140px);
}
#hero.error #hero-styles {
    position: relative;
    height: auto;
}

/*** Fix LCP / "contenu qui attend les images" ***/
/* Le thème (scripts.js PageLoad) garde #main, #main-page-content et
   #footer-container en opacity:0, puis les révèle via TweenMax à l'intérieur
   d'un setTimeout dont le délai `time` est calculé depuis
   performance.timing.loadEventEnd — lequel vaut 0 en document.ready, donnant
   un délai ALÉATOIRE jusqu'à ~5,5s à chaque chargement. Résultat : tout le
   contenu principal (dont le sous-titre = élément LCP) reste invisible plusieurs
   secondes, sans rapport avec la vitesse réelle du serveur.
   On force ces conteneurs visibles en CSS pour court-circuiter ce mécanisme :
   le contenu s'affiche dès le premier rendu, indépendamment du JS.
   (AJAX désactivé → aucune transition de page ne dépend de cette opacité.) */
#main,
#main-page-content,
#footer-container,
#header-container,
.header-middle {
    opacity: 1 !important;
}

/* Menu actionnable dès le chargement. Le thème garde l'en-tête invisible (jusqu'à ~2 s) et le bouton du menu en
   pointer-events: none jusqu'à la classe body.header-visible, que son script ne pose qu'après le même délai aléatoire
   de 0 à 5,5 s, plus ~2,5 s d'animation : sur mobile, le menu ne répondait qu'au bout de 4 à 8 s alors que son script
   de clic est prêt en moins d'une seconde. */
.button-wrap.right.menu,
#burger-wrapper {
    pointer-events: auto;
}

/*** Hero : apparition immédiate (plus de délai aléatoire) ***
   Le script du thème (PageLoad) révèle l'image, le titre, le sous-titre et le pied de hero après le même délai aléatoire
   de 0 à 5,5 s que ci-dessus, puis 1 à 1,5 s d'animation : sur une page qui se charge en 0,3 s, l'image n'apparaissait
   qu'après 3 à 6 s et le titre après 4 à 7 s. L'état visible devient l'état de base, et une courte animation CSS rejoue
   l'entrée tout de suite. Les animations tardives du script partent de cet état et y restent : elles n'ont plus d'effet visible. */
@keyframes heroFadeIn {
    from { opacity: 0; }
}
@keyframes heroTitleIn {
    from { transform: translateY(120px); }
}
@keyframes heroRiseIn {
    from { opacity: 0; transform: translateY(40px); }
}
#hero-bg-image,
#hero-fg-image {
    opacity: 1;
    transform: scale(1.02); /* valeur finale que le script du thème donne à l'image */
    animation: heroFadeIn .8s ease-out backwards;
}
.hero-title span {
    transform: none;
    animation: heroTitleIn .7s cubic-bezier(.2, .8, .2, 1) .1s backwards;
}
.hero-subtitle,
.hero-footer-left,
.hero-footer-right {
    opacity: 1;
    transform: none;
    animation: heroRiseIn .7s ease-out .3s backwards;
}
@media (prefers-reduced-motion: reduce) {
    #hero-bg-image,
    #hero-fg-image,
    .hero-title span,
    .hero-subtitle,
    .hero-footer-left,
    .hero-footer-right {
        animation: none;
    }
}

/* Hero sans image (titre en deux lignes .hero-move-title, ex. /identite-visuelle-brasserie/) : le script du thème CACHE les
   lignes (set y:120, opacity:0) après son délai aléatoire, puis les anime : un simple état visible par défaut les ferait
   disparaître puis revenir en pleine page. Une animation CSS en fill-mode « both » garde son état final et reste
   au-dessus des styles posés par le script. Sur ces pages le titre était en place après 2,6 à 4,4 s. */
@keyframes heroMoveTitleIn {
    from { opacity: 0; transform: translateY(100px); }
    to   { opacity: 1; transform: none; }
}
#hero .hero-move-title span {
    animation: heroMoveTitleIn .8s cubic-bezier(.2, .8, .2, 1) .1s both;
}
#hero .hero-move-title.title-forward span {
    animation-delay: .2s; /* décalage entre les deux lignes, comme dans le script du thème */
}
/* Fil d'Ariane du hero : il attendait data-delay=2000 puis 0,6 s ; il suit maintenant le titre. */
#hero-caption .has-animation {
    opacity: 1;
    transform: none;
    animation: heroRiseIn .7s ease-out .6s backwards;
}
@media (prefers-reduced-motion: reduce) {
    #hero .hero-move-title span,
    #hero .hero-move-title.title-forward span {
        animation-duration: .01s; /* garde l'état final (visible) sans mouvement */
        animation-delay: 0s;
    }
    #hero-caption .has-animation {
        animation: none;
    }
}

/* Articles et pages de blog : le titre (.post-article-wrap), l'image, les méta, le texte, la navigation, les commentaires
   (et #blog-content sur les listes) étaient cachés (opacity 0 + décalage de 10 vh) jusqu'au délai aléatoire du script du
   thème : tout le contenu de l'article n'apparaissait qu'après 3 à 6 s. Même principe que pour le hero : l'état visible est
   l'état de base, une courte animation CSS rejoue l'entrée tout de suite (le script ne fait que des « to » ici). */
@keyframes postRiseIn {
    from { opacity: 0; transform: translateY(10vh); }
}
@keyframes blogRiseIn {
    from { opacity: 0; transform: translateY(15vh); }
}
.post-article-wrap {
    opacity: 1;
    transform: none;
    animation: postRiseIn .6s cubic-bezier(.2, .8, .2, 1) .1s backwards;
}
#post .post-image {
    opacity: 1;
    transform: none;
    animation: postRiseIn .6s cubic-bezier(.2, .8, .2, 1) .25s backwards;
}
#post-content,
.post-meta-data,
.post-navigation,
.post-comments,
.post-form {
    opacity: 1;
    transform: none;
    animation: postRiseIn .6s cubic-bezier(.2, .8, .2, 1) .3s backwards;
}
#blog-content {
    opacity: 1;
    transform: none;
    animation: blogRiseIn .6s cubic-bezier(.2, .8, .2, 1) .1s backwards;
}
@media (prefers-reduced-motion: reduce) {
    .post-article-wrap,
    #post .post-image,
    #post-content,
    .post-meta-data,
    .post-navigation,
    .post-comments,
    .post-form,
    #blog-content {
        animation: none;
    }
}

/*** Accordéons : tous les blocs Détails (FAQ SEOPress comprise) ***/
.wp-block-details {
    border-top: 1px solid var(--section-line, color-mix(in srgb, var(--section-heading, var(--wp--preset--color--white)) 14%, transparent));
}
.wp-block-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0;
    cursor: pointer;
    list-style: none;
    color: var(--section-heading, var(--wp--preset--color--white));
    font-family: 'HurmeGeometricSans4Bold', sans-serif;
    font-size: clamp(19px, 2vw, 26px);
    line-height: 1.25;
    transition: color .3s;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::marker { content: ""; }
.wp-block-details summary:hover { color: var(--wp--preset--color--primary); }
.wp-block-details summary:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 4px;
    border-radius: 6px;
}
.wp-block-details summary::after {
    content: "";
    flex: 0 0 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--section-heading, var(--wp--preset--color--white)) 30%, transparent);
    background:
        linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), background-color .3s, border-color .3s;
}
.wp-block-details[open] summary::after {
    color: var(--wp--preset--color--white); /* sinon la croix prend la couleur rose du titre au survol et se fond dans le fond rose */
    transform: rotate(135deg);
    border-color: var(--wp--preset--color--primary);
    background-color: var(--wp--preset--color--primary);
}
.wp-block-details > :not(summary) {
    margin: 0 0 18px;
    color: var(--section-text, color-mix(in srgb, var(--section-heading, var(--wp--preset--color--white)) 75%, transparent));
    line-height: 1.7;
}
.wp-block-details > :last-child { margin-bottom: 30px; }
.wp-block-details a { color: var(--section-heading, var(--wp--preset--color--white)); text-decoration: underline; text-decoration-color: var(--wp--preset--color--primary); text-underline-offset: 3px; }
/* Listes dans une réponse : puces alignées sur le texte courant, même couleur et même interligne que les paragraphes
   (la marge de gauche du thème est remise à zéro par la règle plus haut, d'où le padding). */
.wp-block-details :is(ul, ol) {
    margin-left: 0;
    padding-left: 1.25em;
}
.wp-block-details li {
    margin-bottom: 8px;
    color: inherit;
    line-height: inherit;
}
.wp-block-details li:last-child { margin-bottom: 0; }
.wp-block-details li :is(ul, ol) {
    margin: 8px 0 0;
    padding-left: 1.25em;
}
/* Paragraphe qui introduit une liste (« Vous recevez : ») : plus proche de sa liste. */
.wp-block-details p:has(+ :is(ul, ol)) { margin-bottom: 10px; }
@media (prefers-reduced-motion: no-preference) {
    .wp-block-details[open] > :not(summary) { animation: accordionIn .45s ease both; }
}
@keyframes accordionIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}
/* Dernier accordéon d'une suite : trait de fermeture */
.wp-block-details:last-child {
    border-bottom: 1px solid var(--section-line, color-mix(in srgb, var(--section-heading, var(--wp--preset--color--white)) 14%, transparent));
    margin-bottom: 24px;
}
/*** Accessibilité : focus clavier visible (WCAG 2.4.7 / RGAA 10.7) ***/
/* Le thème parent remet outline: 0 sur tous les liens (reset + a { outline: 0 }). On rétablit un
   contour au focus, retiré pour la souris (:focus:not(:focus-visible)) : le clic reste sans contour.
   Le style est déclaré sur :focus puis retiré, pour que les outils d'audit voient bien un style de focus. */
a:focus,
button:focus,
[role="button"]:focus,
summary:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:not([tabindex="-1"]):focus {
    outline: 2px solid var(--wp--preset--color--white);
    outline-offset: 3px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[tabindex]:not([tabindex="-1"]):focus:not(:focus-visible),
input[type="checkbox"]:focus:not(:focus-visible),
input[type="radio"]:focus:not(:focus-visible) {
    outline: none;
}
/* Champs de texte, select, textarea : le cadre reste affiché au clic (le navigateur les considère toujours « focus-visible »).
   Cases à cocher et boutons radio : cadre seulement au clavier, comme les liens et les boutons. */

/* Vignettes du portfolio : le lien (.item-wrap) est rogné par .item-appear (overflow:hidden) et
   recouvert par l'image en parallax. Au focus clavier, on dessine donc un cadre sur .item-appear,
   qui correspond exactement à la zone visible et cliquable de la vignette. */
.item-appear { position: relative; }
.item-appear:has(.item-wrap:focus-visible)::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid var(--wp--preset--color--white);
    box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--wp--preset--color--black) 70%, transparent);
    pointer-events: none;
    z-index: 20;
}

/* Trustindex : masque le message « widget gratuit » (visible uniquement pour les admins connectés) */
.ti-wp-notice {
    display: none !important;
}

/*** Fond principal du site : #080A10 (noir bleuté) ***/
html,
body,
#main,
#main-content,
main,
nav.menu-main-menu-container,
.light-content.preloader-wrap {
    background-color: var(--wp--preset--color--site);
}

/*** Styles de section (bloc Groupe) : Claire / Grise / Sombre ***
   Un style règle d'un coup le fond, le texte, les titres, les liens et les séparateurs.
   Claire et Grise ajoutent aussi `change-header-color` (côté PHP) : le menu passe en foncé au-dessus. */
.is-style-section-claire,
.is-style-section-grise,
.is-style-section-sombre {
    --section-bg: var(--wp--preset--color--white);
    --section-text: var(--wp--custom--grey--444);
    --section-heading: var(--wp--preset--color--site);
    --section-line: color-mix(in srgb, var(--wp--preset--color--site) 18%, transparent);
    background-color: var(--section-bg);
    color: var(--section-text);
    padding-block: var(--wp--custom--block-padding);
    padding-inline: var(--wp--custom--block-padding);
}
.is-style-section-grise { --section-bg: var(--wp--preset--color--gris-clair); }
.is-style-section-sombre {
    --section-bg: var(--wp--preset--color--anthracite);
    --section-text: var(--wp--custom--grey--bbb);
    --section-heading: var(--wp--preset--color--white);
    --section-line: color-mix(in srgb, var(--wp--preset--color--white) 18%, transparent);
}
:is(.is-style-section-claire, .is-style-section-grise, .is-style-section-sombre) :is(h1, h2, h3, h4, h5, h6, strong, b) {
    color: var(--section-heading);
}
/* Un texte coloré sur le bloc (ex. étoiles en couleur « primaire ») garde sa couleur dans ses parties en gras. */
:is(.is-style-section-claire, .is-style-section-grise, .is-style-section-sombre) .has-text-color :is(strong, b) {
    color: inherit;
}
:is(.is-style-section-claire, .is-style-section-grise, .is-style-section-sombre) :is(p, li, figcaption, label, dt, dd, blockquote, cite) {
    color: var(--section-text);
}
:is(.is-style-section-claire, .is-style-section-grise, .is-style-section-sombre) a:not(.wp-element-button):not(:where(.wp-block-details *)) {
    color: var(--wp--preset--color--primary);
}
/* Séparateurs dans une section : trait fin à la couleur de la section (claire / grise / sombre).
   Pas de background-color : le thème impose 25 px de haut à tout <hr>, ce qui faisait un bandeau.
   Les « white-line » (trait du thème) et les points ont leur propre règle ; une couleur de fond posée sur le bloc reste prioritaire. */
:is(.is-style-section-claire, .is-style-section-grise, .is-style-section-sombre) :is(hr, .wp-block-separator):not(.white-line):not(.is-style-dots):not(.has-background) {
    display: block;
    height: 0;
    border: 0;
    border-top: 1px solid var(--section-line);
    background: none;
    color: var(--section-line);
}
:is(.is-style-section-claire, .is-style-section-grise, .is-style-section-sombre) .wp-block-separator.is-style-dots {
    color: var(--section-line);
}
/* Rythme par défaut dans une section : espacement « Petit » (12 à 16 px) entre blocs.
   :where() garde une spécificité minimale : un réglage de marge posé sur un bloc reste prioritaire. */
:is(.is-style-section-claire, .is-style-section-grise, .is-style-section-sombre) > :where(* + *) {
    margin-block-start: var(--wp--preset--spacing--small);
}
/* Rangées de colonnes qui se suivent (galerie d'images) : espacement « Grand » (32 à 56 px), à tous les niveaux
   d'imbrication (la règle ci-dessus ne touche que les enfants directs de la section). */
:is(.is-style-section-claire, .is-style-section-grise, .is-style-section-sombre) .wp-block-columns + .wp-block-columns {
    margin-block-start: var(--wp--preset--spacing--large);
}
/* Colonne vide (sert à décaler une image sur grand écran) : en mobile les colonnes s'empilent et chaque colonne vide
   ajouterait un écart pour rien. */
@media (max-width: 781px) {
    :is(.is-style-section-claire, .is-style-section-grise, .is-style-section-sombre) .wp-block-column:empty {
        display: none;
    }
}

/* Section pleine largeur : pas de padding latéral (ses blocs ont déjà leur gouttière, sinon la marge est comptée deux fois). */
.alignfull:is(.is-style-section-claire, .is-style-section-grise, .is-style-section-sombre) {
    padding-inline: 0;
}


/* Le JS du thème parent (FirstLoad) force `#000` en style inline sur ces éléments pour les pages sombres
   (pas sur `nav` : le menu classique est rendu transparent par le thème, ne pas le forcer)
   (#page-content.light-content). !important nécessaire pour passer devant le style inline. */
body:has(#page-content.light-content) :is(main, #main, #main-content),
body:has(#page-content.light-content) header[style*="var(--wp--preset--color--black)"] {
    background-color: var(--wp--preset--color--site) !important;
}

/* Fil d'Ariane (SEOPress) : le JS du thème parent applique à TOUS les <nav> un fond #000 et la hauteur de
   la fenêtre en style inline (prévu pour le menu plein écran). On les annule pour le breadcrumb uniquement. */
nav:has(> ol.breadcrumb) {
    background-color: transparent !important;
    height: auto !important;
}

/*** Cartes : styles de blocs « Carte », « Grille de cartes », « Carte avec photo », « Libellé de carte » et « Lien de carte » ***
   À réutiliser sur n'importe quelle page : on choisit le style dans le panneau « Styles » du bloc (plus de classe à saisir).
   Aucune taille ni interligne ici : le titre (h3) et le texte (p) suivent le thème, et les espaces viennent des préréglages
   d'espacement de theme.json (réglables bloc par bloc dans l'éditeur, onglet Dimensions).
   Placé après les styles de section : à spécificité égale, c'est ce bloc qui l'emporte sur les couleurs de texte et de lien de la section. */
:is(.is-style-carte, .is-style-grille-cartes, .is-style-carte-photo) {
    --carte-ligne: var(--section-line, color-mix(in srgb, var(--section-heading, var(--wp--preset--color--white)) 14%, transparent));
}
.is-style-carte,
.is-style-carte-photo {
    position: relative; /* repère du lien étendu (a::before) */
    gap: 0; /* les espaces sont des marges, visibles dans l'éditeur (le réglage « espacement des blocs » est désactivé dans theme.json) */
    border: 1px solid var(--carte-ligne);
    transition: background-color .3s;
}
.is-style-carte {
    display: flex;
    flex-direction: column; /* pile verticale : le lien de carte descend tout en bas. Posée ici et non dans la disposition « Flex » du bloc : WordPress remet à zéro les marges des enfants d'une disposition Flex, et le titre et le texte perdraient les marges du thème. */
    min-width: 0;
    padding: var(--wp--preset--spacing--medium); /* valeur par défaut ; le réglage Dimensions du bloc la remplace */
}
/* Carte en rangée : si le Groupe est réglé sur « Ligne » (disposition Flex horizontale), la carte suit ce réglage au lieu d'empiler
   (ex. une icône à gauche du texte). Alignement vertical et retour à la ligne se règlent dans le bloc. */
.is-style-carte.is-layout-flex:not(.is-vertical) { flex-direction: row; }
.is-layout-flex > .wp-block-icon { flex: 0 0 auto; } /* une icône dans une ligne Flex ne rétrécit pas quand le texte voisin est long (sinon elle chevauche le texte) */
.is-style-carte .is-layout-flex > .wp-block-image.is-resized { flex: 0 0 auto; } /* logo ou avatar à côté d'un nom dans une carte (témoignage) : la largeur réglée sur l'image est respectée au lieu de rétrécir avec le texte */
/* Pas de position: relative sur les enfants : le lien étendu doit prendre la carte entière comme repère. */
.is-style-carte > * { min-width: 0; max-width: 100%; overflow-wrap: break-word; }
/* Liens dans le texte d'une carte (témoignage : nom de l'auteur, mots en lien) : soulignés comme dans les accordéons. La couleur seule ne distingue pas
   un lien du texte qui l'entoure (blanc sur blanc). Les boutons (lien de carte) gardent leur style. */
.is-style-carte :is(p, li) a:not(.wp-element-button) { text-decoration: underline; text-decoration-color: var(--wp--preset--color--primary); text-underline-offset: 3px; }
/* Survol et focus : légère teinte, seulement si la carte contient un lien (sinon elle ne suggère pas d'action). */
:is(.is-style-carte, .is-style-carte-photo):has(.is-style-carte-lien a):is(:hover, :focus-within) {
    background-color: color-mix(in srgb, var(--section-heading, var(--wp--preset--color--white)) 3%, transparent);
}

/* Grille de cartes : cartes jointives à trait fin (un seul trait entre deux cartes).
   Le nombre de colonnes se règle dans le bloc, appareil par appareil (Disposition : Grille, avec l'icône Ordinateur / Tablette / Mobile). */
.is-style-grille-cartes { margin: 0; }
.is-style-grille-cartes.is-layout-grid {
    gap: 0;
    border-top: 1px solid var(--carte-ligne);
    border-left: 1px solid var(--carte-ligne);
}
.is-style-grille-cartes > .is-style-carte { border-width: 0 1px 1px 0; } /* le trait du haut et de gauche est porté par la grille */

/* Photos jointives : un bloc Image posé directement dans la grille devient une cellule à trait fin, photo à fleur du trait (sans marge ni texte).
   Format, recadrage et étendue (colonnes / lignes) se règlent dans le bloc Image ; la photo remplit la cellule. */
.is-style-grille-cartes > .wp-block-image {
    min-width: 0;
    margin: 0;
    border: solid var(--carte-ligne);
    border-width: 0 1px 1px 0;
}
.is-style-grille-cartes > .wp-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* le réglage « Mise à l'échelle » du bloc, posé en ligne, l'emporte */
}

/* Carte avec photo : bloc natif Colonnes (largeurs et empilement mobile gérés par WordPress). Le thème n'apporte que le trait. */
.is-style-carte-photo { padding: 0; }
.is-style-carte-photo > .wp-block-column { box-sizing: border-box; } /* sans ça, le padding d'une colonne s'ajoute à sa largeur et écrase la photo */
/* Photo pleine hauteur de la carte (le bloc Image n'a pas d'option « hauteur de la colonne »). Une fois les colonnes empilées, la hauteur reste auto et le ratio du bloc s'applique. */
.is-style-carte-photo > .wp-block-column:has(> .wp-block-image:first-child) { align-self: stretch; }
.is-style-carte-photo > .wp-block-column > .wp-block-image:first-child { margin: 0; }
.is-style-carte-photo > .wp-block-column > .wp-block-image:first-child,
.is-style-carte-photo > .wp-block-column > .wp-block-image:first-child img { height: 100%; }

/* Libellé de carte (« 01 », « Ma spécialité ») : petit texte en Hurme gras, un ton en dessous du titre (≥ 4,5:1 sur fond sombre comme sur section claire, RGAA 3.2). */
p.is-style-carte-libelle {
    margin-block: 0 var(--wp--preset--spacing--medium);
    font-family: 'HurmeGeometricSans4Bold', sans-serif;
    font-size: var(--wp--preset--font-size--small);
    letter-spacing: .12em;
    color: color-mix(in srgb, var(--section-heading, var(--wp--preset--color--white)) 62%, transparent);
}

/* Lien de carte : bloc Bouton (style « Lien de carte »), dans un bloc Boutons, en bas de la carte, avec une flèche.
   Dans une carte, toute la surface est cliquable (un seul lien par carte). Le bouton perd l'habillage des boutons du thème
   (pilule pleine, cf. « Boutons natifs » : ces règles l'excluent) pour redevenir un simple lien. */
.wp-block-buttons:has(> .wp-block-button.is-style-carte-lien) {
    margin-block: auto 0; /* « auto » plaque le lien en bas de la carte, quelle que soit la longueur du texte */
    padding-block-start: var(--wp--preset--spacing--medium);
}
.wp-block-button.is-style-carte-lien > .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--section-heading, var(--wp--preset--color--white));
    font-family: inherit;
    font-size: 1rem; /* comme les paragraphes du thème (16 px) ; réglable dans le bloc (Typographie) */
    line-height: 1.75;
    text-align: left;
    text-decoration: none;
}
.wp-block-button.is-style-carte-lien > a::after {
    content: "\2192";
    display: inline-block;
    transition: transform .3s;
    color: var(--wp--preset--color--primary);
}
:is(.is-style-carte, .is-style-carte-photo) .is-style-carte-lien > a::before {
    content: "";
    position: absolute;
    inset: 0; /* lien étendu */
}
:is(.is-style-carte, .is-style-carte-photo):is(:hover, :focus-within) .is-style-carte-lien > a::after { transform: translateX(.4em); }
/* Lien de carte hors carte : la flèche glisse au survol (ou au focus clavier) du lien lui-même. */
.wp-block-button.is-style-carte-lien > a:is(:hover, :focus-visible)::after { transform: translateX(.4em); }
/* Focus clavier : le cadre entoure toute la carte (c'est elle qui réagit au clic), pas seulement le texte du lien */
:is(.is-style-carte, .is-style-carte-photo):has(.is-style-carte-lien > a:focus-visible) {
    outline: 2px solid var(--section-heading, var(--wp--preset--color--white));
    outline-offset: -3px;
}
:is(.is-style-carte, .is-style-carte-photo) .is-style-carte-lien > a:focus-visible { outline: none; }

/*** Articles du blog : bloc auteur et « Article suivant », en cartes (sections/author_box_section.php, sections/post_next_section.php) ***
   Mêmes cartes que « Carte avec photo » : la classe is-style-carte-photo apporte le trait fin, le repère du lien étendu et la teinte au survol.
   Le titre de « Article suivant » est un lien de carte (classe is-style-carte-lien) : lien étendu, teinte, cadre au clavier et curseur viennent des règles ci-dessus. */
.post-meta-data.post-author { margin-top: var(--wp--preset--spacing--large); }
:is(.auteur-carte, .article-suivant) {
    display: flex;
    align-items: stretch;
}
.auteur-carte__photo { flex: 0 0 24%; min-width: 0; }
.article-suivant__photo { flex: 0 0 38%; min-width: 0; }
:is(.auteur-carte__photo, .article-suivant__photo) img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.auteur-carte__photo img { aspect-ratio: 1; object-position: 50% 30%; } /* le visage est dans le tiers haut de la photo */
.article-suivant__photo img { aspect-ratio: 4 / 3; }
:is(.auteur-carte__corps, .article-suivant__corps) {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--wp--preset--spacing--medium);
}
/* Auteur : nom, fonction en petit dessous (style « Libellé de carte »), présentation, réseaux. Tailles : préréglages du thème. */
.auteur-carte__nom {
    margin: 0;
    font-family: 'HurmeGeometricSans4Bold', sans-serif;
    font-size: var(--wp--preset--font-size--medium);
    color: var(--wp--preset--color--white);
}
.auteur-carte__role { margin-block: 0 var(--wp--preset--spacing--small); }
.auteur-carte__bio { margin: 0 0 var(--wp--preset--spacing--small); }
.auteur-carte__reseaux {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--small);
    margin: 0;
    padding: 0;
    list-style: none;
}
.auteur-carte__reseaux li { margin: 0; padding: 0; }
.auteur-carte__reseaux a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .4em;
    font-size: var(--wp--preset--font-size--medium);
    color: var(--wp--preset--color--white);
    transition: color .3s; /* pas de transition sur transform : l'effet « attract » du thème (script) la pilote */
}
.auteur-carte__reseaux .parallax-wrap { display: inline-block; } /* effet « attract » du thème, comme les réseaux du pied de page */
.auteur-carte__reseaux a:is(:hover, :focus-visible) { color: var(--wp--preset--color--primary); }
.auteur-carte__reseaux a span { font-size: var(--wp--preset--font-size--small); } /* réseau sans icône : son nom en texte */
.auteur-carte__icone { height: 1em; width: auto; fill: currentColor; } /* icône monochrome (YouTube) : couleur du texte, comme les icônes de la police */
.auteur-carte__svg { width: 1.15em; height: 1.15em; } /* logo fourni (WP Community) : blanc d'origine */
.auteur-carte__svg path { fill: currentColor; } /* comme les autres icônes : couleur du texte, donc le rouge du thème au survol (le fill du fichier est blanc) */
/* Article suivant : libellé, titre (h3 du thème) et flèche qui glisse au survol, comme les liens de carte. */
.article-suivant__libelle { margin-block-end: var(--wp--preset--spacing--small); }
.article-suivant__titre { margin: 0; }
.article-suivant__titre > a { color: inherit; text-decoration: none; }
.article-suivant__titre > a::after {
    content: "\2192";
    display: inline-block;
    margin-inline-start: .4em;
    color: var(--wp--preset--color--primary);
    transition: transform .3s;
}
.article-suivant:is(:hover, :focus-within) .article-suivant__titre > a::after { transform: translateX(.4em); }
@media (max-width: 480px) { /* palier mobile du thème (theme.json) : photo au-dessus du texte */
    :is(.auteur-carte, .article-suivant) { flex-direction: column; }
    :is(.auteur-carte__photo, .article-suivant__photo) { flex: 0 0 auto; }
    .auteur-carte__photo img { aspect-ratio: 16 / 9; }
}

/*** Largeurs natives (theme.json : Aucun = 800 px, Grande largeur = 1420 px fluide dès 1120 px, Pleine largeur = 100 %) ***
   Dans un thème classique, WordPress ne pose ces largeurs que pour les enfants d'un groupe « contraint ».
   On les applique aussi aux blocs de premier niveau d'une page en blocs natifs (#main-page-content). */
#main-page-content > :is(.wp-block-group, .wp-block-columns, .wp-block-cover):not(.alignwide):not(.alignfull) {
    width: 100%;
    max-width: min(var(--wp--style--global--content-size), calc(100% - 2 * var(--wp--custom--gutter)));
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}
/* Grande largeur / Pleine largeur pour Groupe, Colonnes et Couverture, à tous les niveaux.
   Le thème parent impose `#main-content .alignwide { width: 80vw }` et `.alignfull { width: 100vw; margin-bottom: 30px }` :
   on les remplace par les valeurs natives du theme.json. Pas à l'intérieur d'un ancien Colega Container : là, le comportement
   du parent (débordement 80vw / 100vw) est conservé. */
#main-content :is(.wp-block-group, .wp-block-columns, .wp-block-cover).alignwide:not(:where(.wp-block-colega-gutenberg-container *)) {
    width: 100%;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
#main-content :is(.wp-block-group, .wp-block-columns, .wp-block-cover).alignfull:not(:where(.wp-block-colega-gutenberg-container *)) {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    box-sizing: border-box;
}
/* Gouttière : au premier niveau (et dans un groupe pleine largeur), un bloc qui n'est pas en pleine largeur garde
   une marge de chaque côté quand l'écran est plus étroit que sa largeur max (variable --wp--custom--gutter). */
#main-page-content > :is(.wp-block-group, .wp-block-columns, .wp-block-cover).alignwide:not(:where(.wp-block-colega-gutenberg-container *)) {
    max-width: min(var(--wp--style--global--wide-size), calc(100% - 2 * var(--wp--custom--gutter)));
}
/* Exception : un groupe dont le contenu est un hero à halo (.blur-blob-bg) reste sans gouttière (la couverture a déjà sa marge interne). */
#main-page-content > .wp-block-group:has(> .wp-block-cover.blur-blob-bg):not(.alignfull) {
    max-width: var(--wp--style--global--wide-size);
}
#main-content .alignfull.is-layout-constrained:not(:where(.wp-block-colega-gutenberg-container *)) > :not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide) {
    max-width: min(var(--wp--style--global--content-size), calc(100% - 2 * var(--wp--custom--gutter)));
}
#main-content .alignfull.is-layout-constrained:not(:where(.wp-block-colega-gutenberg-container *)) > .alignwide {
    max-width: min(var(--wp--style--global--wide-size), calc(100% - 2 * var(--wp--custom--gutter)));
}
/* Padding vertical par défaut des blocs natifs de premier niveau (taille « Grand », au milieu de l'échelle).
   Un réglage de padding posé sur le bloc (style inline) reste prioritaire. Exception : le hero à halo. */
#main-page-content > .wp-block-group:not(:has(> .wp-block-cover.blur-blob-bg)) {
    padding-block: var(--wp--custom--block-padding);
}
/* Anciennes pages (Colega Container) : on garde les anciennes largeurs pour les groupes imbriqués. */
.wp-block-colega-gutenberg-container {
    --wp--style--global--content-size: 1420px;
    --wp--style--global--wide-size: 1580px;
}

/* Le thème parent (css/assets.css) met un fond noir #000 sur tous les blocs Couverture : on le retire.
   Un fond choisi dans l'éditeur (classe has-*-background-color ou style inline) garde la priorité. */
.wp-block-cover,
.wp-block-cover-image {
    background-color: transparent;
}

/*** Section « fond partagé » : moitié haute et moitié basse de deux couleurs au choix ***
   Le contenu (un visuel) chevauche les deux moitiés. Remplace les blocs « half-background » de Colega.
   Couleurs : Claire / Grise (palette du theme.json) ou Sombre, choisies dans la barre latérale du bloc
   (« Fond du haut » / « Fond du bas » → classes split-top-* / split-bottom-*). Par défaut : claire en haut, sombre en bas.
   « Sombre » = la couleur du fond de la page (--site), et non l'anthracite des bandes « Section sombre » : la moitié sombre doit se fondre
   dans la page, sinon une bande plus claire apparaît entre le contenu qui précède et le visuel.
   Le padding se règle sur le bloc (0 pour que la coupure tombe au milieu de l'image). */
.is-style-section-partagee {
    --split-top: var(--wp--preset--color--white);
    --split-bottom: var(--wp--preset--color--site);
    position: relative;
    background: linear-gradient(to bottom, var(--split-top) 50%, var(--split-bottom) 50%);
}
.is-style-section-partagee.split-top-claire { --split-top: var(--wp--preset--color--white); }
.is-style-section-partagee.split-top-grise { --split-top: var(--wp--preset--color--gris-clair); }
.is-style-section-partagee.split-top-sombre { --split-top: var(--wp--preset--color--site); }
.is-style-section-partagee.split-bottom-claire { --split-bottom: var(--wp--preset--color--white); }
.is-style-section-partagee.split-bottom-grise { --split-bottom: var(--wp--preset--color--gris-clair); }
.is-style-section-partagee.split-bottom-sombre { --split-bottom: var(--wp--preset--color--site); }
.is-style-section-partagee > .wp-block-image {
    margin-bottom: 0;
}
/* Zones invisibles (une par moitié claire, ajoutées en PHP) qui portent .change-header-color : le script du thème passe
   le menu en foncé quand il survole une moitié claire. */
.is-style-section-partagee > .split-trigger {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    pointer-events: none;
}
.is-style-section-partagee > .split-trigger--top { top: 0; }
.is-style-section-partagee > .split-trigger--bottom { bottom: 0; }

/*** Boutons natifs (bloc Bouton) : contour arrondi aux couleurs de la section ***
   Seulement hors Colega Container : les boutons des anciennes pages gardent leur style. */
.wp-block-button:not(.is-style-carte-lien):not(:where(.wp-block-colega-gutenberg-container *)) .wp-block-button__link {
    font-family: 'HurmeGeometricSans4Bold', sans-serif;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 100vw;
    padding: 16px 32px;
    transition: background-color .3s, color .3s, border-color .3s;
}
.wp-block-button.is-style-outline:not(:where(.wp-block-colega-gutenberg-container *)) .wp-block-button__link {
    background: transparent;
    color: var(--section-heading, var(--wp--preset--color--white));
    border: 2px solid currentColor;
    padding: 14px 30px;
}
.wp-block-button.is-style-outline:not(:where(.wp-block-colega-gutenberg-container *)) .wp-block-button__link:hover,
.wp-block-button.is-style-outline:not(:where(.wp-block-colega-gutenberg-container *)) .wp-block-button__link:focus-visible {
    background: var(--section-heading, var(--wp--preset--color--white));
    color: var(--section-bg, var(--wp--preset--color--site));
    border-color: var(--section-heading, var(--wp--preset--color--white));
}
.wp-block-button:not(.is-style-outline):not(.is-style-colega):not(.is-style-colega-contour):not(.is-style-carte-lien):not(:where(.wp-block-colega-gutenberg-container *)) .wp-block-button__link {
    background: var(--section-heading, var(--wp--preset--color--white));
    color: var(--section-bg, var(--wp--preset--color--site));
}
.wp-block-button:not(.is-style-outline):not(.is-style-colega):not(.is-style-colega-contour):not(.is-style-carte-lien):not(:where(.wp-block-colega-gutenberg-container *)) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline):not(.is-style-colega):not(.is-style-colega-contour):not(.is-style-carte-lien):not(:where(.wp-block-colega-gutenberg-container *)) .wp-block-button__link:focus-visible {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

/*** Bouton « Colega » (variation du bloc Bouton) : le texte glisse au survol, le bouton suit la souris ***
   Reprend le bouton du thème Colega. Les classes parallax-wrap / parallax-element / hide-ball sont ajoutées en PHP
   (functions.php) : le script du thème fait l'animation. « Colega » = plein, « Colega contour » = contour.
   Les couleurs suivent la section (--section-heading / --section-bg) ; une couleur posée sur le bloc reste prioritaire. */
.wp-block-button:is(.is-style-colega, .is-style-colega-contour) {
    display: flex;
    justify-content: center;
    align-items: center;
    /* zone de survol élargie (comme .clapat-button-wrap du thème), sans changer la place prise par le bouton */
    padding: 10px;
    margin: -10px -10px 10px;
}
.wp-block-button:is(.is-style-colega, .is-style-colega-contour) .wp-block-button__link {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    height: 44px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 100vw;
    font-family: 'HurmeGeometricSans4Bold', sans-serif;
    font-size: 14px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    transition: none;
}
.wp-block-button.is-style-colega .wp-block-button__link {
    background: var(--section-heading, var(--wp--preset--color--white));
    color: var(--section-bg, var(--wp--preset--color--site));
}
.wp-block-button.is-style-colega-contour .wp-block-button__link {
    background: transparent;
    color: var(--section-heading, var(--wp--preset--color--white));
    border-color: currentColor;
}
.wp-block-button:is(.is-style-colega, .is-style-colega-contour) .wp-block-button__link > .colega-btn-label {
    position: relative;
    display: inline-block;
    padding: 0 30px;
    white-space: nowrap;
    transition: transform .2s;
    transform-origin: 100% 0;
}
@media (max-width: 479px) {
    /* Libellé sur une seule ligne (le texte au survol glisse dessous) : sur petit écran, 20 px de marge au lieu de 30 pour qu'un libellé long
       (« Découvrir l'accompagnement social media ») ne touche pas le bord de l'écran. */
    .wp-block-button:is(.is-style-colega, .is-style-colega-contour) .wp-block-button__link > .colega-btn-label { padding: 0 20px; }
}
.wp-block-button:is(.is-style-colega, .is-style-colega-contour) .wp-block-button__link > .colega-btn-label::before {
    content: attr(data-hover);
    content: attr(data-hover) / ""; /* texte de survol ignoré des lecteurs d'écran quand le navigateur le permet */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
}
.wp-block-button:is(.is-style-colega, .is-style-colega-contour) .wp-block-button__link:is(:hover, :focus-visible) > .colega-btn-label {
    transform: translateY(-100%);
    transform-origin: 0 0;
}
@media (prefers-reduced-motion: reduce) {
    .wp-block-button:is(.is-style-colega, .is-style-colega-contour).parallax-wrap,
    .wp-block-button:is(.is-style-colega, .is-style-colega-contour) .parallax-element {
        transform: none !important;
    }
    .wp-block-button:is(.is-style-colega, .is-style-colega-contour) .wp-block-button__link > .colega-btn-label {
        transition: none;
    }
    .wp-block-button:is(.is-style-colega, .is-style-colega-contour) .wp-block-button__link:is(:hover, :focus-visible) > .colega-btn-label {
        transform: none;
    }
    .wp-block-button:is(.is-style-colega, .is-style-colega-contour) .wp-block-button__link:is(:hover, :focus-visible) {
        opacity: .8;
    }
}

/*** Séparateur natif au style « white-line » du thème (trait fin animé au défilement) ***/
hr.wp-block-separator.white-line {
    display: block; /* le thème met les <hr> en inline-block : les marges auto de la mise en page (centrage) n'agissaient pas */
    width: 100%;
    border: 0;
    background: none;
}
