/* E.G.R, animations et décors repris du site d'origine (02/11/2026). Réglages Elementor relevés sur la copie
   fidèle 8089 : diaporama 0zv7z9i2 (voile blanc 27 %), décors en surimpression 1677ee6 (32 %) et 3hfy4w1c (5 %). */

/* Diaporama du haut de l'accueil (créé par site.js) */
.a-diaporama { position: relative; isolation: isolate; overflow: hidden; }
.diaporama { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.diaporama::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .27; }
.diaporama__photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: translateX(-100%); transition: transform .6s ease, opacity .6s ease; }
.diaporama__photo.est-active { opacity: 1; transform: none; animation: mdg-ken-burns 5.6s linear both; }
.diaporama__photo.sort { opacity: 1; transform: translateX(100%); }
@keyframes mdg-ken-burns { from { scale: 1.3; } to { scale: 1; } }

/* Mots qui tournent dans les titres */
.mots-tournants { display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.mots-tournants.sort { opacity: 0; transform: translateY(-.4em) rotateX(60deg); }

/* Décors et pied de page : désormais par le CSS d'origine (assets/elementor/, 02/11/2026) */
/* Bug d'origine non repris : images à marge + largeur 100 % (Qui sommes-nous, 14 à 30 px) qui faisaient défiler la page
   de côté ; rognées sans changer la mise en page */
html, body { overflow-x: clip; }

/* Icônes Font Awesome converties : le tracé suit le fill posé par Elementor sur le svg (coches vertes d'origine),
   et la couleur du texte quand Elementor n'en pose pas */
:where(.e-font-icon-svg) { fill: currentColor; }
.e-font-icon-svg path { fill: inherit; }
/* base.css (thème commun) autorise la coupure n'importe où et plafonne les svg à 100 % : sur un rendu Elementor,
   ça cassait les compteurs (« 1 / 5collabor / ateurs »), les titres étroits (« Demande / z ») et écrasait les vagues */
body { overflow-wrap: break-word; }
/* le thème 10Web d'origine fixe body à height:100% : l'en-tête sticky ne suivait que sur la première hauteur d'écran */
body { height: auto; min-height: 100%; }
.elementor-shape svg { max-width: none; }
/* Bloc de fin « Un projet de façade ? » : fond clair (annotations 956, 958 à 960), au lieu du fond sombre du thème commun */
body .appel-fin .appel-fin__int { background: #f1f8f0; color: #000; border: 1px solid rgba(12, 124, 4, .15); }
body .appel-fin .appel-fin__int h2 { color: #000; }
body .appel-fin .appel-fin__int p { color: #333; }
body .appel-fin__boutons .bouton--contour { color: var(--couleur-1) !important; border-color: var(--couleur-1); background: #fff; }
body .appel-fin__boutons .bouton--contour:hover { background: var(--couleur-1); color: #fff !important; }
/* Ravalement, bloc « Contactez-nous » : centré, titre, texte et bouton compris (annotation 957) */
#our-expertise-and-experience > .e-con-inner { justify-content: center; }
.elementor-181 .elementor-element.elementor-element-5d9b81e1 { --align-items: center; text-align: center; }
.elementor-181 .elementor-element.elementor-element-39ca791d { text-align: center; }
/* Bouton « Appeler » : la couleur des liens d'origine (.elementor-kit-205 a) rendait son texte vert sur vert */
body a.appel-flottant { color: #fff; }
/* La base commune équilibre les lignes des titres (text-wrap: balance) ; l'original coupe normalement */
.contenu :is(h1, h2, h3, h4, h5, h6), footer :is(h1, h2, h3, h4, h5, h6) { text-wrap: wrap; }

/* Comparateurs avant / après (extension BEAF d'origine, style « twentytwenty ») : pleine largeur de la colonne,
   poignée ronde blanche à deux flèches sur le trait */
.elementor-widget-html:has(> .avant-apres) { width: 100%; }
.avant-apres input[type="range"] { opacity: 1; -webkit-appearance: none; appearance: none; background: transparent; }
/* le fond blanc des champs du kit (.elementor-kit-205 input:not(...)) cachait la photo « avant » */
body .avant-apres .apres ~ input[type="range"] { background: transparent; border: 0; box-shadow: none; padding: 0; }
.avant-apres input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.avant-apres input[type="range"]::-moz-range-track { background: transparent; }
.avant-apres input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 12px rgba(51, 51, 51, .5); cursor: ew-resize;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M12 10l-6 6 6 6M20 10l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") center / 26px no-repeat; }
.avant-apres input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 12px rgba(51, 51, 51, .5); cursor: ew-resize;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M12 10l-6 6 6 6M20 10l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") center / 22px no-repeat; }
.avant-apres input[type="range"]:focus-visible { outline: 3px solid var(--couleur-1); outline-offset: -3px; }

/* Carte Google de la page Contact, chargée au clic (site.js) */
.carte-au-clic { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; min-height: 300px; height: 100%; background: #f3f4f6; border-radius: inherit; text-align: center; padding: 20px; }
.carte-au-clic button { font: 500 16px/24px "Montserrat", sans-serif; color: #fff; background: var(--couleur-1); border: 1px solid var(--couleur-1); border-radius: 4px; padding: 12px 24px; cursor: pointer; }
.carte-au-clic p { margin: 0; color: #000; }
.carte-au-clic.est-chargee { display: block; padding: 0; }
.carte-au-clic iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

/* En-tête E.G.R, d'après l'original (modèle Elementor 302) puis peaufiné et gardé à la demande d'Alexandre (02/11/2026) :
   carte blanche flottante (rayon 6 px), forme « pyramides » verte à 32 % en bas (233 % de large, retournée), logo à
   gauche, menu Montserrat noir (vert + trait au survol et sur la page en cours), bouton « Devis gratuit ».
   Au défilement : la carte remonte et le logo rétrécit, en transform seulement (aucun saut de mise en page).
   Logo et menu centrés dans la partie blanche (padding-bottom = forme verte). Menu replié sous 1200 px. */
.entete { position: sticky; top: 0; z-index: 100; background: transparent; box-shadow: none; padding: 48px 32px 22px; pointer-events: none; }
.home .entete { margin-bottom: -126px; }
.entete__int { pointer-events: auto; position: relative; max-width: 1800px; height: 80px; min-height: 0; margin: 0 auto; padding: 0 0 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-radius: 6px; box-shadow: 0 0 46px -22px rgba(0, 0, 0, .5); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease; }
.entete__logo { flex: 0 1 auto; display: block; min-width: 0; margin: 0; line-height: 0; transform-origin: left center; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.entete__logo img { display: block; width: clamp(220px, 20vw, 300px); height: auto; }
.entete.defile .entete__int { transform: translateY(-36px); box-shadow: 0 12px 32px -14px rgba(0, 0, 0, .35); }
.entete.defile .entete__logo { transform: scale(.88); }
.entete__forme { position: absolute; left: 0; right: 0; bottom: -1px; height: 21px; overflow: hidden; line-height: 0; z-index: 2; pointer-events: none; border-radius: 0 0 6px 6px; }
.entete__forme svg { display: block; position: relative; left: 50%; width: calc(233% + 1.3px); height: 21px; transform: translateX(-50%) rotateY(180deg); }
.entete__forme path { fill: rgba(12, 124, 4, .32); }
.nav { flex: 0 1 auto; justify-content: center; gap: 0; }
.nav ul { gap: 0; }
.nav a { font-family: "Montserrat", sans-serif; font-size: clamp(15px, calc(4.4px + .83vw), 19px); font-weight: 400; letter-spacing: -.3px; line-height: 1.5; padding: 19px clamp(10px, calc(1.6vw - 10.5px), 20px); color: #000; border-radius: 0; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 50% calc(100% + 6px) / 0 2px no-repeat; background-origin: content-box; transition: color .2s ease, background-size .3s cubic-bezier(.2, .7, .2, 1); }
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current_page_item > a { color: var(--couleur-1); background-size: 100% 2px; }
.nav .menu-item-has-children > a::after { width: 0; height: 0; border: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; transform: none; margin-left: 10px; vertical-align: middle; transition: transform .25s ease; }
.nav .menu-item-has-children:hover > a::after, .nav .menu-item-has-children:focus-within > a::after, .nav li.ouvert > a::after { transform: rotate(180deg); }
.nav .sub-menu { border-radius: 6px; padding: 6px 0; min-width: 260px; overflow: hidden; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .3); }
.nav .sub-menu a { font-size: 16px; padding: 12px 20px; color: #000; background: none; transition: background-color .2s ease, color .2s ease; }
.nav .sub-menu a:hover, .nav .sub-menu a:focus-visible { background: var(--couleur-1); color: #fff; }
.entete__devis { flex: none; margin-right: 16px; padding: 12px 24px; background: var(--couleur-1); border: 1px solid var(--couleur-1); border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); color: #fff; font: 500 16px/24px "Montserrat", sans-serif; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.entete .entete__devis { color: #fff; }   /* le kit Elementor colore les liens en vert (.elementor-kit-205 a) */
.entete__devis:hover, .entete__devis:focus-visible { background: #0a6a03; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(12, 124, 4, .7); }
/* .entete devant : le kit Elementor habille tous les boutons (.elementor-kit-205 button : fond vert, bordure, marges) */
.entete .burger { flex: none; width: 46px; height: 46px; padding: 12px 11px; background: transparent; border: 0; border-radius: 8px; box-shadow: none; }
.entete .burger:hover, .entete .burger:focus-visible { background: rgba(12, 124, 4, .08); }
.burger span { height: 2px; margin: 5px 0; background: #000; }
/* Grand écran : sous-menu en fondu (visibility au lieu de display, pour pouvoir l'animer) */
@media (min-width: 1200px) {
  .nav .sub-menu { display: flex; visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .25s; }
  .nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
/* Menu replié (burger) sous 1200 px : logo à gauche, burger à droite, panneau qui glisse sous la carte */
@media (max-width: 1199px) {
  .entete { padding: 12px 15px; }
  .home .entete { margin-bottom: -80px; }
  .entete__int { gap: 12px; padding: 0 12px 14px 24px; }
  .entete.defile .entete__int { transform: translateY(-6px); }
  .entete__logo img { width: clamp(200px, 32vw, 250px); }
  .entete__devis { margin: 0 0 0 auto; padding: 9px 18px; font-size: 15px; }
  .entete .burger { display: block; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: flex; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 0; background: #fff; border-radius: 12px; box-shadow: 0 16px 30px rgba(0, 0, 0, .14); max-height: calc(100vh - 120px); overflow: auto; z-index: 3; }
  .nav.ouvert { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; }
  .nav a { font-size: 16px; padding: 12px 24px; border-bottom: 0; white-space: normal; background: none; }
  .nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { background: rgba(12, 124, 4, .06); }
  .nav .menu-item-has-children > a { display: flex; justify-content: space-between; align-items: center; }
  .nav .sub-menu { position: static; display: none; box-shadow: none; border-radius: 0; padding: 0 0 6px 16px; min-width: 0; }
  .nav li.ouvert > .sub-menu { display: flex; }
  .nav li:not(.ouvert):hover > .sub-menu { display: none; }
  .nav .sub-menu a:hover { background: none; color: var(--couleur-1); }
  .nav .menu-item-has-children:not(.ouvert):hover > a::after { transform: none; }
}
/* Téléphone : carte pleine largeur sans coins, collée en haut */
@media (max-width: 767px) {
  .entete { padding: 0; }
  .home .entete { margin-bottom: 0; }
  .entete__int { border-radius: 0; padding-left: 16px; padding-right: 6px; }
  .entete.defile .entete__int { transform: none; }
  .entete__forme { border-radius: 0; }
  .entete__logo img { width: min(260px, calc(100vw - 90px)); }
  .entete__devis { display: none; }   /* téléphone : bouton « Appeler » flottant à la place */
  .nav { top: 100%; border-radius: 0 0 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .entete__int, .entete__logo { transition: none; }
  .diaporama__photo.est-active { animation: none; }
  .diaporama__photo { transition: none; }
}
