/*
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: Kadence Theme is a lightweight yet full featured WordPress theme for creating beautiful fast loading and accessible websites, easier than ever. It features an easy to use drag and drop header and footer builder to build any type of header in minutes. It features a full library of gorgeous starter templates that are easy to modify with our intelligent global font and color controls. With extensive integration with the most popular 3rd party plugins, you can quickly build impressive ecommerce websites, course websites, business websites, and more.
Tags: translation-ready,accessibility-ready,two-columns,right-sidebar,left-sidebar,footer-widgets,blog,custom-logo,custom-background,custom-menu,rtl-language-support,editor-style,threaded-comments,custom-colors,featured-images,wide-blocks,full-width-template,theme-options,e-commerce
Version: 1.4.7
Updated: 2025-12-21 16:10:27

*/


/* ==========================================================
   1. VARIABLES GLOBALES
   ========================================================== */

:root {
  --filter-bar-h: 93px;   /* hauteur de la barre de filtres (page Productions) */
}


/* ==========================================================
   2. CORRECTIONS GLOBALES
   ========================================================== */

/* Supprime l'espace blanc résiduel sous le footer (Kadence/Elementor).
   "clip" plutôt que "hidden" : coupe le débordement sans créer de conteneur
   de défilement, donc sans casser les éléments sticky. */
.site,
#page,
.wp-site-blocks {
  overflow: clip;
}

/* Pas de défilement horizontal parasite.
   Uniquement sur <html> : appliqué à <body>, overflow-x forçait overflow-y
   à "auto" et faisait de <body> un faux conteneur de défilement qui cassait
   la barre de filtres sticky. */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;  /* ancres internes (#section2…) */
}


/* ==========================================================
   3. COULEUR DE SERVICE
   Sur les cartes de la boucle, --service-color-rgb est injectée par
   functions.php (.e-loop-item-ID). Sur les fiches Production, on la déduit
   de la classe service-* du <body>.
   Nouveau service : ajouter une ligne ici.
   ========================================================== */

body.service-design-interfaces  { --service-color-rgb: 61, 107, 80; }   /* vert */
body.service-creation-sites-web { --service-color-rgb: 154, 92, 42; }   /* cuivre */
body.service-developpement-web  { --service-color-rgb: 61, 96, 122; }   /* bleu */
body.service-identite-visuelle  { --service-color-rgb: 110, 32, 64; }   /* bordeaux */

/* Texte des boutons au survol : blanc sur un remplissage de couleur service */
body.service-design-interfaces,
body.service-creation-sites-web,
body.service-developpement-web,
body.service-identite-visuelle {
  --rn-btn-hover-text: #fff;
}


/* ==========================================================
   4. BOUTON CONTOUR — classe .rn-btn-outline
   Usage : Elementor > widget Bouton > Avancé > Classes CSS : rn-btn-outline
   Couleur du service s'il y en a une (fiches), blanc sinon (accueil…).
   ========================================================== */

/* Le widget prend la largeur de son bouton et ne rétrécit jamais dans une ligne flex */
body .elementor .elementor-widget.rn-btn-outline {
  flex-shrink: 0;
}

body .elementor .elementor-widget.rn-btn-outline .elementor-button {
  position: relative;
  overflow: hidden;
  z-index: 0;
  background: transparent;
  color: rgb(var(--service-color-rgb, 255, 255, 255));
  border: 1px solid rgba(var(--service-color-rgb, 255, 255, 255), 0.7);
  border-radius: 0;
  padding: 12px 28px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;      /* le texte ne passe jamais à la ligne */
  transition: color 0.35s ease, border-color 0.35s ease;
}

/* Remplissage de gauche à droite */
body .elementor .elementor-widget.rn-btn-outline .elementor-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(var(--service-color-rgb, 255, 255, 255));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  z-index: -1;
}

body .elementor .elementor-widget.rn-btn-outline .elementor-button:hover,
body .elementor .elementor-widget.rn-btn-outline .elementor-button:focus-visible {
  color: var(--rn-btn-hover-text, #0a0a0a);
  border-color: rgb(var(--service-color-rgb, 255, 255, 255));
}

body .elementor .elementor-widget.rn-btn-outline .elementor-button:hover::before,
body .elementor .elementor-widget.rn-btn-outline .elementor-button:focus-visible::before {
  transform: scaleX(1);
}


/* Lisibilité du bouton sur image : taille, cible tactile et fond de support */
body .elementor .elementor-widget.rn-btn-outline .elementor-button {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 16px 36px;
  min-height: 48px;
  border-width: 2px;
  background: rgba(10, 10, 10, 0.55);
}
@media (max-width: 480px) {
  body .elementor .elementor-widget.rn-btn-outline .elementor-button {
    white-space: normal;   /* évite le débordement sur petit écran */
    padding: 14px 24px;
  }
}


/* ==========================================================
   5. PRODUCTIONS — cartes plein écran (gabarit de boucle #3772)
   Utilisé sur la page Productions et sur l'accueil (Dernière réalisation).
   ========================================================== */

/* Page Productions : fond sombre et couleurs des filtres */
body.page-id-1255 .entry-content {
  background: #0a0a0a;
}
body.page-id-1255 .e-filter-item {
  color: rgba(240, 240, 240, 0.55);
}
body.page-id-1255 .e-filter-item[aria-pressed="true"] {
  color: #f0f0f0;
}

/* Hauteur des cartes : écran moins la barre de filtres.
   Deux niveaux imbriqués : conteneur racine du gabarit + conteneur interne. */
.elementor-element-dc39b1f {
  height: calc(100vh - var(--filter-bar-h)) !important;
  min-height: calc(100vh - var(--filter-bar-h)) !important;
}
.elementor-element-6458ac70 {
  height: calc(100vh - var(--filter-bar-h)) !important;
  min-height: calc(100vh - var(--filter-bar-h)) !important;
  bottom: 0 !important;
}

/* Arrêt de défilement pile sous la barre de filtres (chevron, ancres) */
.e-loop-item {
  scroll-margin-top: var(--filter-bar-h);
}

/* Chevron "production suivante" */
.home .rn-next-project,                      /* accueil : une seule production */
.e-loop-item:last-child .rn-next-project {   /* dernière carte : rien après */
  display: none;
}
.rn-next-project:focus:not(:focus-visible) {  /* contour de focus au clavier seulement */
  outline: none;
}

/* Chevron "production suivante" : couleur et taille (classe rn-next-project à ajouter dans Elementor) */
.rn-next-project {
  color: var(--service-color);
  width: 36px;
  height: 36px;
}
/* Chevron Elementor : la couleur de l'icône (a.elementor-icon) prime sur celle du wrapper, y compris au survol */
.rn-next-project .elementor-icon,
.rn-next-project .elementor-icon:hover,
.rn-next-project .elementor-icon:focus-visible {
  color: var(--service-color) !important;
}
.rn-next-project svg {
  width: 36px;
  height: 36px;
  stroke: currentColor !important;
  stroke-width: 3px;   /* le trait suit la couleur du chevron (surcharge stroke="#..." du SVG) */
}


/* ==========================================================
   6. À PROPOS — portrait du bloc Parcours
   ========================================================== */

.crn-abt-portrait {
  background: #0d0d0d;
  isolation: isolate;
}

.crn-abt-portrait.crn-abt-reveal {
  transform: translateX(56px);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.22, 1, .36, 1);
  transition-delay: 0.7s;
}
.crn-abt-portrait.crn-abt-reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

.crn-abt-portrait-img {
  border: 0;
  mix-blend-mode: lighten;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 80%, transparent 100%);
  mask-composite: intersect;
}

@media (min-width: 1025px) {
  .crn-abt-row--parcours {
    grid-template-columns: 200px 1fr 420px;
    max-width: 1300px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .crn-abt-row--parcours {
    grid-template-columns: 140px 1fr 300px;
  }
}
@media (max-width: 768px) {
  .crn-abt-portrait {
    max-width: 240px;
  }
}

/* ==========================================================
   7. CHEVRONS — un seul dessin sur tout le site (trait fin)
   Remplace visuellement l'icône Font Awesome "chevron-down" des widgets
   Icône Elementor, sans modifier les widgets (liens et positions intacts).
   ========================================================== */

/* Couleur : blanc par défaut, couleur du service dans les cartes de la boucle */
.e-loop-item {
  --rn-chevron-color: rgb(var(--service-color-rgb, 255, 255, 255));
}

.elementor-icon:has(> svg.e-fas-chevron-down) {
  position: relative;
  width: 44px;
  height: 26px;
}

/* L'icône d'origine reste en place (accessibilité, clic) mais devient invisible */
.elementor-icon > svg.e-fas-chevron-down {
  opacity: 0;
}

/* Le nouveau dessin : trait fin, extrémités arrondies */
.elementor-icon:has(> svg.e-fas-chevron-down)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rn-chevron-color, #fff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 45'%3E%3Cpolyline points='6,10 40,36 74,10' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 45'%3E%3Cpolyline points='6,10 40,36 74,10' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Survol : le chevron s'éclaire et descend légèrement */
.elementor-icon:has(> svg.e-fas-chevron-down):hover::after {
  opacity: 1;
  transform: translateY(3px);
}

/* Chevron maison de la fiche : même taille que les autres
   (celui de la page À propos est géré dans assets/css/about.css) */
.scroll-chevron svg {
  width: 44px;
  height: auto;
}

/* L'icône d'origine reste en place (accessibilité, clic) mais devient invisible,
   y compris au survol (certains widgets ont leur propre effet de survol) */
.elementor-icon > svg.e-fas-chevron-down,
.elementor-icon:hover > svg.e-fas-chevron-down {
  opacity: 0 !important;
}


/* ==========================================================
   7. RESPONSIVE MOBILE (<= 768px) — ajouté le 2026-10-26
   ========================================================== */

@media (max-width: 768px) {
  /* À propos : le portrait passe au-dessus du texte au lieu de se superposer */
  .crn-abt-hero-portrait {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: 60% !important;
    opacity: .55;
  }
  .crn-abt-hero-portrait-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
  }
  .crn-abt-hero-portrait-fade {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 60% !important;
  }

  /* Productions : titres des cartes (80px) trop grands, coupés lettre par lettre */
  .elementor-element-4239c99d .elementor-heading-title {
    font-size: clamp(2.6rem, 13vw, 4.5rem) !important;
    line-height: 1.05 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}


/* ==========================================================
   7b. PRODUCTIONS — cartes en mobile (<= 768px) — ajouté le 2026-10-26
   ========================================================== */

@media (max-width: 768px) {
  /* Colonne de texte : pleine largeur, alignée à gauche (au lieu de 220px centrés) */
  .elementor-element-816838a {
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .elementor-element-4239c99d,
  .elementor-element-2a9e8916,
  .elementor-element-bc98261 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    align-self: flex-start !important;
  }

  /* Eikon : image de fond recadrée sur la partie utile au lieu d un zoom sur le centre */
  .e-loop-item-2574 .elementor-element-b49e8cc {
    background-size: auto 100% !important;
    background-position: 62% center !important;
  }
}


/* ==========================================================
   8. FICHE PRODUCTION — mobile (<= 768px) — ajouté le 2026-10-26
   Le gabarit est conçu pour le desktop (colonnes côte à côte, conteneurs
   décalés). En mobile : tout en une colonne, pleine largeur, marges portées
   par les widgets de texte (pas par les conteneurs, pour ne pas les cumuler).
   ========================================================== */

@media (max-width: 768px) {
  body.single-production .e-con,
  body.single-production .e-con-full,
  body.single-production .e-con-boxed {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Les chevrons absolus (elementor-absolute) gardent leur largeur d icône */
  body.single-production .elementor-widget:not(.elementor-absolute) {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
  }

  body.single-production .elementor-widget-heading,
  body.single-production .elementor-widget-theme-post-title,
  body.single-production .elementor-widget-theme-post-excerpt,
  body.single-production .elementor-widget-theme-post-content,
  body.single-production .elementor-widget-text-editor,
  body.single-production .elementor-widget-button,
  body.single-production .elementor-widget-divider,
  body.single-production .elementor-widget-icon-list,
  body.single-production .elementor-widget-post-info {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  body.single-production .elementor-heading-title {
    font-size: clamp(2.4rem, 11vw, 4rem) !important;
    line-height: 1.05 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}


/* 8b. Fiche production mobile : le slide-titre (Le projet, Les compétences)
   passe avant le bloc de texte qui le suit — ajouté le 2026-10-26 */
@media (max-width: 768px) {
  body.single-production .e-con.elementor-element-26c6b60,
  body.single-production .e-con.elementor-element-5f311f0 {
    order: -1 !important;
  }
}


/* 8c. Fiche production mobile : carrousel "Visuels du projet" et bloc final
   (suppression des bandes blanches, alignement, espacements) — ajouté le 2026-10-26 */
@media (max-width: 768px) {
  /* Carrousel : hauteur naturelle, fond sombre (au lieu de 844px fixes + blanc) */
  body.single-production .e-con.elementor-element-2957f1c {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    background-color: #0a0a0a !important;
  }
  body.single-production .elementor-widget-media-carousel .elementor-main-swiper,
  body.single-production .elementor-widget-media-carousel .swiper-slide {
    height: auto !important;
  }
  body.single-production .elementor-widget-media-carousel .elementor-carousel-image {
    height: auto !important;
    aspect-ratio: 16 / 10;
  }
  body.single-production .elementor-element-464ed18,
  body.single-production .elementor-element-464ed18 .elementor-main-swiper,
  body.single-production .elementor-element-464ed18 .elementor-thumbnails-swiper {
    background-color: #0a0a0a !important;
  }
  body.single-production .elementor-element-464ed18 .elementor-thumbnails-swiper {
    padding-top: 12px !important;
  }

  /* Bloc final "Un projet ?" : panneau blanc décoratif masqué, texte aligné à gauche, marges */
  body.single-production .e-con.elementor-element-b54e42b > .e-con.elementor-element-de556bb {
    display: none !important;
  }
  body.single-production .e-con.elementor-element-3f3d2bb {
    row-gap: 28px !important;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  body.single-production .elementor-element-37a2ca5,
  body.single-production .elementor-element-37a2ca5 * {
    text-align: left !important;
  }

  /* Pied de page : respiration */
  body.single-production .e-con.elementor-element-188abb1 {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }
}


/* 8d. Fiche production mobile : fond sombre sous les slides "Le projet" et "Les compétences"
   (le texte blanc était illisible sur le fond clair de la page) — ajouté le 2026-10-26 */
@media (max-width: 768px) {
  body.single-production .e-con.elementor-element-2b7f508,
  body.single-production .e-con.elementor-element-10cdbe7 {
    background-color: #0d0d0d !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}


/* 8e. Fiche production mobile : un chevron par écran, et de l air autour des chevrons
   — ajouté le 2026-10-26 */
.rn-chevron-mobile {
  display: none !important;   /* chevrons clonés par fiche-chevrons.js : mobile uniquement */
}
@media (max-width: 768px) {
  .rn-chevron-mobile {
    display: block !important;
  }

  /* Réserve de place sous le texte pour que le chevron (absolu, en bas de section)
     ne le touche pas : hero, Le projet, Les compétences */
  body.single-production .e-con.elementor-element-ea4f2e9 {
    padding-bottom: 90px !important;
  }
  body.single-production .e-con.elementor-element-2b7f508,
  body.single-production .e-con.elementor-element-10cdbe7 {
    padding-bottom: 100px !important;
  }
}


/* 8f. Fiche production mobile : chevrons tous à la même hauteur (40px du bas de l écran)
   et réserve de place sous les textes de Objectifs / Valeurs ajoutées — ajouté le 2026-10-26 */
@media (max-width: 768px) {
  /* Chevron de l écran d accroche : positionné par rapport à l écran (comme les autres) */
  body.single-production .e-con.elementor-element-3ff20de {
    position: static !important;
  }
  body.single-production .elementor-element-7066172 {
    bottom: 40px !important;
  }

  /* Objectifs, Valeurs ajoutées : le texte ne touche plus le chevron */
  body.single-production .e-con.elementor-element-e393305,
  body.single-production .e-con.elementor-element-036abb1,
  body.single-production .e-con.elementor-element-6f36401 {
    padding-bottom: 120px !important;
  }
  body.single-production .e-con.elementor-element-ea4f2e9 {
    padding-bottom: 100px !important;
  }
}


/* 8g. Fiche production mobile : écran d accroche — le bandeau noir (Développement web / année)
   descend jusqu au bas de l écran et contient le chevron, au lieu de le laisser
   sous le bandeau — ajouté le 2026-10-26 */
@media (max-width: 768px) {
  body.single-production .e-con.elementor-element-ea4f2e9 {
    padding-bottom: 0 !important;
  }
  body.single-production .e-con.elementor-element-3ff20de {
    padding-bottom: 100px !important;
    height: auto !important;
  }
}


/* 8h. Fiche production mobile : sur les écrans de texte (Le projet, Les compétences),
   le chevron reste collé à 40px du bas de l écran pendant la lecture
   (copie créée par fiche-chevrons.js) — ajouté le 2026-10-26 */
@media (max-width: 768px) {
  body.single-production .elementor-element-208185f:not(.rn-chevron-mobile),
  body.single-production .elementor-element-d35e63a:not(.rn-chevron-mobile) {
    display: none !important;
  }
  body.single-production .rn-chevron-sticky {
    position: sticky !important;
    bottom: 40px !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    align-self: center !important;
    width: auto !important;
    margin-top: 24px !important;
    z-index: 5;
  }
  body.single-production .e-con.elementor-element-2b7f508,
  body.single-production .e-con.elementor-element-10cdbe7 {
    padding-bottom: 40px !important;
  }
}


/* 8i. Fiche production mobile : chevrons centrés horizontalement
   (Elementor les plaçait à left:50% sans compenser leur largeur) — ajouté le 2026-10-26 */
@media (max-width: 768px) {
  body.single-production .elementor-widget-icon.elementor-absolute:not(.rn-chevron-sticky) {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
  body.single-production .rn-chevron-sticky {
    width: 36px !important;
  }
}


/* 8j. Fiche production mobile, connecté (barre d administration de 46px) :
   l écran d accroche tient dans la fenêtre, son chevron est à la même hauteur
   que les autres — ajouté le 2026-10-26 */
@media (max-width: 782px) {
  body.admin-bar.single-production .e-con.elementor-element-66aa513 {
    height: calc(100vh - 46px) !important;
    min-height: calc(100vh - 46px) !important;
  }
  body.admin-bar.single-production .e-con.elementor-element-ea4f2e9 {
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }
}


/* 8k. Fiche production mobile : sur un écran haut, le texte de Le projet / Les compétences
   est plus court que l écran ; le bloc (100vh, contenu centré) plaçait alors le chevron
   juste sous le texte, trop haut. Le chevron est poussé en bas, le texte reste centré
   dans l espace au-dessus — ajouté le 2026-10-26 */
@media (max-width: 768px) {
  body.single-production .e-con.elementor-element-2b7f508 > :first-child,
  body.single-production .e-con.elementor-element-10cdbe7 > :first-child {
    margin-top: auto !important;
  }
  body.single-production .rn-chevron-sticky {
    margin-top: auto !important;
  }
}


/* 8l. Fiche production mobile : tous les chevrons à 24px du bas de l écran
   (slides et écrans de texte alignés) — ajouté le 2026-10-26 */
@media (max-width: 768px) {
  body.single-production .elementor-widget-icon.elementor-absolute:not(.rn-chevron-sticky) {
    bottom: 24px !important;
  }
  body.single-production .rn-chevron-sticky {
    bottom: 24px !important;
  }
  body.single-production .e-con.elementor-element-2b7f508,
  body.single-production .e-con.elementor-element-10cdbe7 {
    padding-bottom: 24px !important;
  }
}


/* 8m. Fiche production mobile : images de fond centrées horizontalement
   (certaines étaient calées à gauche ou à droite pour le desktop) — ajouté le 2026-10-26 */
@media (max-width: 768px) {
  body.single-production .e-con,
  body.single-production .e-con::before {
    background-position-x: 50% !important;
  }
}


/* Pied de page : rapprochement de la maquette */
.site-top-footer-wrap .site-container {
  border-bottom: 1px solid #444;
  padding-bottom: 20px;
}
.site-top-footer-wrap .widget_text p.wp-block-paragraph {
  font-size: 40px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}
.site-middle-footer-wrap ul {
  padding-left: 0;
  list-style: none;
}