/* Compléments au template YOOtheme d'origine — mêmes couleurs, mêmes polices.
   Rien ici ne redéfinit le graphisme : uniquement les blocs ajoutés
   (cartes de prestations, galeries, FAQ, listes de communes). */

@font-face{font-family:'The Girl Next Door';font-style:normal;font-weight:400;font-display:swap;
  src:url(/assets/fonts/girl-next-door-400-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'The Girl Next Door';font-style:normal;font-weight:400;font-display:swap;
  src:url(/assets/fonts/girl-next-door-400-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB}

/* les photos ajoutées reprennent les arrondis et l'ombre des blocs d'origine */
.el-image{border-radius:16px}
@media(min-width:640px){.el-image{border-radius:24px}}
@media(min-width:1300px){.el-image{border-radius:33px}}

.uk-card-media-top img{width:100%;height:auto;border-radius:16px 16px 0 0}
.uk-card{border-radius:16px;overflow:hidden}
.uk-card-body p{margin-bottom:.4em}

.uk-accordion-title{font-weight:600}
.uk-accordion-content p{max-width:60ch}

/* galeries ajoutées (uniquement les nôtres : les blocs d'origine gardent leur mise en page) */
.galerie img.el-image{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3;border-radius:16px}

/* listes de prestations */
.uk-list-divider>li{padding:.9rem 0}
.uk-list-divider strong{color:#a0522d}

/* liens du pied de page : deux colonnes compactes */
.tm-bottom .uk-nav>li>a{font-size:.95rem;line-height:1.35;padding:2px 0}

/* bandeau photo des pages intérieures : même arrondi, hauteur maîtrisée
   (les photos de chantier sont souvent en portrait) */
.hero-img{max-width:1040px;margin-left:auto;margin-right:auto;overflow:hidden;border-radius:16px;aspect-ratio:16/9}
@media(min-width:640px){.hero-img{border-radius:24px}}
@media(min-width:1300px){.hero-img{border-radius:33px}}
.hero-img img{width:100%;height:100%;object-fit:cover;object-position:center 45%}
@media(max-width:640px){.hero-img{aspect-ratio:4/3}}

}

/* lisibilité : le thème d'origine écrit en gris clair, on garde la même
   typo mais un gris plus franc dans les blocs que l'on a rédigés */
.contenu p,.contenu li{color:#3c3a37}

/* ---------- hero pleine largeur (comme le slider d'origine) ---------- */
.hero{position:relative;height:clamp(240px,46vh,500px);background-size:cover;background-position:center;
  display:flex;align-items:center;justify-content:center;overflow:hidden}
.hero-plein{height:100vh;height:100svh}
.hero:not(.hero-ratio):before{content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.30),rgba(0,0,0,.02) 45%,rgba(0,0,0,.35))}
.hero-script{position:relative;z-index:1;margin:0;padding:0 1rem;text-align:center;
  font-family:'The Girl Next Door',cursive;font-weight:400;color:#fff;
  font-size:clamp(2rem,5.2vw,4.4rem);line-height:1.12;text-shadow:0 2px 20px rgba(0,0,0,.4)}

/* ---------- titres : les deux traits, en couleur brique ---------- */
.contenu h1.uk-heading-line{font-size:clamp(1.5rem,2.6vw,2.35rem);line-height:1.25;margin-top:1.5rem}
.contenu h2.uk-heading-line{font-size:clamp(1.35rem,2.1vw,1.9rem);line-height:1.3}
.contenu .uk-heading-line>span:before,.contenu .uk-heading-line>span:after{border-color:rgba(160,82,45,.55)}
.uk-section-secondary .uk-heading-line>span:before,.uk-section-secondary .uk-heading-line>span:after{border-color:rgba(255,255,255,.45)}
.contenu h3{font-size:clamp(1.15rem,1.6vw,1.45rem)}

/* ---------- panneau brun avec la photo (bloc des pages d'origine) ---------- */
.panneau-photo{background:#a0522d;border-radius:24px;padding:1.75rem;border:none}
.panneau-photo .tm-mask-default{display:block;overflow:hidden;border-radius:14px}
.panneau-photo img{display:block;width:100%;height:auto}
@media(min-width:960px){.panneau-photo{position:sticky;top:90px}}
@media(max-width:959px){.panneau-photo{margin-top:2rem}}

/* colonne de texte des pages intérieures : largeur de lecture confortable */
.texte-page p{max-width:62ch}

/* titres de cartes : pas de majuscules forcées, texte plus lisible */
.uk-card-title{text-transform:none;letter-spacing:0}
.uk-card-body p{color:#3c3a37}
.uk-card-body{color:#3c3a37}

/* cartes de prestations : images de même hauteur, titres en minuscules */
.uk-card-media-top{overflow:hidden}
.uk-card-media-top img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px 16px 0 0}
.uk-card-title{text-transform:none !important;letter-spacing:0 !important;font-variant:none}

/* bandeau d'appel final : brun de la marque, texte clair */
.cta-brun{background:#a0522d;color:#f7efe6}
.cta-brun .uk-heading-line>span:before,.cta-brun .uk-heading-line>span:after{border-color:rgba(255,255,255,.5)}
.cta-brun h2,.cta-brun p{color:#fff}
.cta-brun .uk-button-primary{background:#fff;color:#a0522d}
.cta-brun .uk-button-default{border-color:rgba(255,255,255,.6);color:#fff}

/* ---------- titres d'origine : on garde la typo, on baisse les tailles ---------- */
#tm-main h1,.uk-section h1{font-size:clamp(1.6rem,3.1vw,2.9rem) !important;line-height:1.2}
#tm-main .uk-heading-medium{font-size:clamp(1.6rem,3.1vw,2.9rem) !important}
#tm-main .uk-heading-large,#tm-main .uk-heading-xlarge,#tm-main .uk-heading-2xlarge{font-size:clamp(1.8rem,3.4vw,3.2rem) !important}
#tm-main h2:not(.uk-heading-line){font-size:clamp(1.35rem,2.2vw,2rem)}
#tm-main .uk-text-large,#tm-main .uk-text-lead{font-size:clamp(1rem,1.35vw,1.2rem)}
/* pas de blanc au-dessus du premier bloc */
#tm-main>div:first-child,#tm-main>section:first-child{margin-top:0 !important;padding-top:0 !important}
#tm-main .uk-section:first-child{padding-top:0}

/* ---------- bandeau du haut : blanc, filet marron, numéro carré ---------- */
.tm-header.mf-bandeau{height:56px;background:#fff;border-bottom:4px solid #a0522d}
.tm-header.mf-bandeau .uk-navbar-container{background:transparent !important}
.tm-header.mf-bandeau .uk-navbar{background:transparent !important}
.tm-header.mf-bandeau .uk-navbar{min-height:52px}
.tel-bandeau{position:absolute;right:0;top:0;height:52px;display:flex;align-items:center;z-index:2}
.tel-bandeau a{display:flex;align-items:center;height:52px;padding:0 1.4rem;background:#a0522d;color:#fff;
  font-weight:600;letter-spacing:.02em;text-decoration:none;border-radius:0}
.tel-bandeau a:hover{background:#8b4525;color:#fff}
@media(max-width:959px){.tel-bandeau{display:none}}

/* bande de photos de l'accueil : on supprime la hauteur « collante » du thème
   qui laissait un grand vide sous les images */
.tm-grid-expand[class*="uk-grid-column"]{align-items:flex-start !important;height:auto !important}
.tm-grid-expand[class*="uk-grid-column"]>*{height:auto !important}

/* quand le panneau de menu est ouvert (grands écrans), le contenu est centré
   sous le panneau : on décale les colonnes pour qu'il reste lisible.
   Sur un écran où le menu est replié (barre MENU), aucune règle ne s'applique. */
@media(min-width:1280px){
  body.sm-open-113 #tm-main .uk-container{padding-left:320px}
  body.sm-open-113 #tm-main .hero{padding-left:0}
}

/* accueil : moins d'air entre les blocs (demande de la cliente) */
.mf-accueil .uk-section{padding-top:40px;padding-bottom:40px}
.mf-accueil .tm-grid-expand{margin-bottom:0 !important}
.mf-accueil .uk-margin-xlarge{margin-bottom:40px !important}
.mf-accueil .uk-grid+.uk-grid{margin-top:0 !important}

/* la bande de photos laissait ~250 px de vide sous les images :
   on supprime les marges de la section qui la contient */
.mf-accueil .uk-section:has(.tm-grid-expand[class*="uk-grid-column"]){padding-bottom:0 !important;margin-bottom:-250px !important}
.mf-accueil .uk-section:has(.tm-grid-expand[class*="uk-grid-column"]) + .uk-section{padding-top:20px !important}

/* bloc des deux boutons sous la bande de photos : on resserre */
.mf-accueil .tm-grid-expand:has(.uk-button){margin-top:-30px !important;margin-bottom:0 !important}
.mf-accueil .tm-grid-expand:has(.uk-button) .uk-panel{margin-bottom:0 !important}

/* bande des cinq photos de l'accueil (reconstruite) */
.mf-strip{padding-top:20px;padding-bottom:30px}
.mf-strip-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;align-items:start}
.mf-strip-grid figure{margin:0;border-radius:24px;overflow:hidden;box-shadow:0 18px 30px -12px rgba(0,0,0,.35)}
.mf-strip-grid figure:nth-child(even){margin-top:46px}
.mf-strip-grid img{display:block;width:100%;height:420px;object-fit:cover}
.mf-strip-boutons{display:flex;gap:12px;justify-content:center;margin-top:40px;flex-wrap:wrap}
@media(max-width:959px){
  .mf-strip-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .mf-strip-grid figure:nth-child(even){margin-top:24px}
  .mf-strip-grid img{height:220px}
}

/* avis clients */
.mf-avis{background:#fff;border-radius:20px;padding:1.6rem 1.5rem;height:100%;
  box-shadow:0 12px 26px -18px rgba(0,0,0,.45);display:flex;flex-direction:column;gap:.6rem}
.mf-avis-etoiles{color:#a0522d;letter-spacing:.15em;font-size:1.05rem}
.mf-avis blockquote{margin:0;font-family:inherit;font-size:1rem;line-height:1.55;color:#3c3a37;font-style:italic}
.mf-avis-nom{margin:auto 0 0;font-weight:600;color:#a0522d;font-size:.95rem}
.mf-avis-nom span{display:block;font-weight:400;color:#7a746c;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase}

/* galerie de chantiers d'une rubrique */
.mf-galerie{padding-top:20px}
.mf-gal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:10px}
.mf-gal-item{margin:0}
.mf-gal-item img{display:block;width:100%;height:280px;object-fit:cover;border-radius:16px;
  box-shadow:0 14px 26px -16px rgba(0,0,0,.45)}
.mf-gal-item figcaption{margin-top:.55rem;font-size:.86rem;line-height:1.35;color:#7a746c}
@media(max-width:959px){
  .mf-gal-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .mf-gal-item img{height:170px}
}

/* pages intérieures : colonne de lecture unique, large photo intercalée */
.contenu-page{max-width:860px;margin:0 auto}
.contenu-page p{line-height:1.72}
.mf-figure-large{margin:2.4rem 0 2.6rem}
.mf-figure-large img{display:block;width:100%;height:440px;object-fit:cover;border-radius:22px;
  box-shadow:0 20px 34px -22px rgba(0,0,0,.5)}
.mf-figure-large figcaption{margin-top:.6rem;font-size:.86rem;color:#7a746c}
@media(max-width:959px){.mf-figure-large img{height:230px}}

/* présentation de rubrique : texte à gauche, photo à droite */
.mf-pres .mf-pres-texte p{font-size:1.02rem;line-height:1.72;margin-bottom:.9rem}
.mf-pres .panneau-photo{margin:0}
.mf-galerie-haut{padding-top:0}

/* slider de deux photos en haut des rubriques (comme le Smart Slider d'origine) */
.hero-slider{height:clamp(400px,68vh,730px)}
.hero-slider .hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:0;animation:mf-fondu 14s infinite}
.hero-slider .hero-slide:nth-child(1){animation-delay:0s}
.hero-slider .hero-slide:nth-child(2){animation-delay:7s}
@keyframes mf-fondu{0%{opacity:0}5%{opacity:1}47%{opacity:1}53%{opacity:0}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.hero-slider .hero-slide{animation:none;opacity:1}
  .hero-slider .hero-slide:nth-child(2){opacity:0}}

/* galerie des rubriques : formats uniformisés, agrandissement au clic */
.mf-gal-grid{grid-template-columns:repeat(3,1fr);gap:18px}
.mf-gal-item img{height:250px}
.mf-gal-lien{display:block;overflow:hidden;border-radius:16px}
.mf-gal-lien img{transition:transform .45s ease}
.mf-gal-lien:hover img{transform:scale(1.04)}
@media(max-width:959px){.mf-gal-item img{height:150px}}

/* photos verticales dans la galerie : on cadre plus haut pour garder le sujet */
.mf-gal-lien img{object-position:50% 32%}

/* les photos des galeries flottent au-dessus de la page (ombre portée douce) */
.mf-gal-grid{gap:26px 18px;row-gap:46px}
.mf-gal-item{position:relative;z-index:0;margin:0}
.mf-gal-item:after{content:'';position:absolute;left:4%;right:4%;bottom:-18px;height:30px;
  border-radius:50%;background:rgba(60,58,55,.75);filter:blur(20px);z-index:0}
.mf-gal-item .mf-gal-lien{position:relative;z-index:1}
.mf-gal-lien{overflow:visible;border-radius:0;box-shadow:none}
.mf-gal-lien img{border-radius:16px;box-shadow:0 28px 36px -16px rgba(0,0,0,.6)}

/* textes de slider plus longs : on réduit pour qu'ils tiennent dans la largeur */
.hero-slider .hero-script{font-size:clamp(1.6rem,3.5vw,3rem);max-width:min(100%,920px);padding:0 2rem}

/* petit titre au-dessus du texte de présentation, texte descendu */
.mf-pres-label{font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;color:#a0522d;
  font-weight:600;margin:0 0 1.1rem}
.mf-pres-texte{padding-top:3.2rem;padding-bottom:2rem}
@media(max-width:959px){.mf-pres-texte{padding-top:1.2rem}}

/* le panneau photo ne dépasse plus le texte : bouton de devis sous le texte */
.mf-pres .tm-mask-default img{max-height:540px;object-fit:cover;width:100%}
.mf-pres-cta{margin:1.9rem 0 0}
.mf-pres .mf-pres-texte p{line-height:1.78;margin-bottom:1rem}

/* les deux colonnes de la présentation ont la même hauteur : plus de trou */
.mf-pres .uk-grid{align-items:stretch}
.mf-pres .panneau-photo{height:100%;display:flex;align-items:center}
.mf-pres .panneau-photo > div{width:100%}
.mf-pres .tm-mask-default{width:100%;height:100%}
.mf-pres .tm-mask-default img{height:100%;max-height:none;object-fit:cover}
.mf-pres .panneau-photo{position:static;top:auto}

/* galerie : chaque photo garde son format d'origine (plus de recadrage carré) */
.mf-gal-item img{height:260px;object-fit:cover}

/* une photo seule sur la dernière rangée prend toute la largeur */
.mf-gal-item.mf-gal-seule{grid-column:1/-1}
.mf-gal-item.mf-gal-seule img{height:340px}

/* les photos verticales gardent leur hauteur d'origine */
.mf-gal-grid{align-items:start}
.mf-gal-item.mf-gal-haut img{height:auto;max-height:none}
.mf-gal-item.mf-gal-haut img{aspect-ratio:auto;width:100%;height:auto}
.mf-gal-item.mf-gal-haut{max-width:420px}

/* une seule photo : centrée, entière, sans recadrage */
.mf-gal-unique{max-width:760px;margin:0 auto}
.mf-gal-unique img{width:100%;height:auto;aspect-ratio:auto}

/* bandeau photo dont on veut voir toute l'image (avant/après) */
.hero.hero-ratio{height:auto;aspect-ratio:auto;display:block;padding:0;background:#cfc9c1;
  max-height:calc(100vh - 96px)}
.hero.hero-ratio .hero-img{display:block;width:100%;height:auto;max-height:calc(100vh - 96px);
  object-fit:contain;object-position:center}
.hero.hero-ratio .hero-script{position:absolute;inset:auto 0 10%;}
@media (max-width:640px){.hero.hero-ratio .hero-script{font-size:1.6rem;inset:auto 0 8%}
  .hero.hero-ratio,.hero.hero-ratio .hero-img{max-height:calc(100vh - 70px)}}

/* accueil : la photo du haut occupe exactement la fenêtre (même hauteur, même largeur) */
.mf-accueil-hero,
.mf-accueil-hero .n2-section-smartslider,
.mf-accueil-hero .n2-ss-align,
.mf-accueil-hero .n2-padding,
.mf-accueil-hero .n2-ss-slider,
.mf-accueil-hero .n2-ss-slider-1,
.mf-accueil-hero .n2-ss-slider-2,
.mf-accueil-hero .n2-ss-slider-3,
.mf-accueil-hero .n2-ss-slide,
.mf-accueil-hero .n2-ss-slide-backgrounds,
.mf-accueil-hero .n2-ss-slide-background{height:100svh !important;max-height:100svh !important;min-height:0 !important}
.mf-accueil-hero .n2-ss-slide-background-image{background-size:cover !important;background-position:center center !important}

/* accueil : deux photos d'ouverture de mur sous la photo du haut */
.mf-ov2{padding-top:36px !important;padding-bottom:0 !important}
.mf-ov2-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.mf-ov2-item{margin:0;border-radius:22px;overflow:hidden;box-shadow:0 18px 34px -16px rgba(0,0,0,.4)}
.mf-ov2-item img{display:block;width:100%;height:auto}
@media (max-width:700px){.mf-ov2-grid{grid-template-columns:1fr}}

/* blog */
.mf-blog-card img{display:block;width:100%;height:220px;object-fit:cover}
.mf-blog-date{margin:0 0 8px;color:#7a746c;font-size:.82rem;letter-spacing:.06em;text-transform:uppercase}
.mf-blog-lire{margin:10px 0 0;color:#a0522d;font-weight:600}
.mf-article{max-width:760px;margin:0 auto}
.mf-article h2{margin-top:1.6em}
.mf-article-suite{max-width:760px;margin-left:auto;margin-right:auto}

/* petit téléphone dans le bouton d'appel du haut */
.tel-bandeau a::before{content:'';width:15px;height:15px;margin-right:9px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.4 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.4 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center/contain no-repeat}
