/* Compléments WordPress / Elementor au CSS de la charte (bourgeon.css). Aucun nouveau design : uniquement des garde-fous d'intégration. */

/* Conteneurs Elementor : pleine largeur, sans marge ni écart (le bloc Bourgeon gère lui-même ses marges). */
.e-con.bourgeon-el,.e-con.bourgeon-el>.e-con-inner{--padding-top:0;--padding-right:0;--padding-bottom:0;--padding-left:0;--gap:0px;--row-gap:0px;--column-gap:0px;--content-width:100%;max-width:none;width:100%;padding:0;margin:0}
.bourgeon-el>.elementor-widget,.bourgeon-el .elementor-widget-container{margin:0;padding:0;width:100%;max-width:none}
.elementor-widget:not(:last-child){margin-block-end:0}
.elementor-element.elementor-widget{--e-widget-spacing:0}
/* Pages construites avec Elementor : le contenu occupe tout le <main> */
#contenu .elementor,#contenu .elementor-section-wrap{width:100%}
/* Barre d'administration WordPress : l'en-tête fixe descend sous elle */
body.admin-bar .hdr{top:32px}
@media(max-width:782px){body.admin-bar .hdr{top:46px}}
/* Sans JavaScript : tout est visible (les révélations et le héros ne restent pas masqués) */
html:not(.js) .rv-up,html:not(.js) .rv-l,html:not(.js) .rv-r,html:not(.js) .hero [data-in],html:not(.js) .hero .h1l>span{opacity:1;transform:none}
/* Texte réservé aux lecteurs d'écran (au cas où la charte ne le définirait pas) */
.screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Notice de page vide pour un administrateur */
.bourgeon-empty{padding:18vh 24px;text-align:center}
/* Contenu éditorial simple (page légale, texte libre) */
.bourgeon-entry{max-width:760px;margin:0 auto;padding:clamp(120px,18vh,200px) 24px 80px}
.bourgeon-entry h1{font-size:clamp(34px,5vw,72px);line-height:1.02;letter-spacing:-.02em}
/* Notice de pré-visualisation de l'éditeur Elementor : aucun masque de chargement */
.elementor-editor-active .wipe{display:none!important}

/* Fiche réalisation et pages de texte : mise en page sobre construite avec les variables de la charte */
.rf-meta{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin-top:28px}
.rf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(28px,4vw,64px)}
.rf-b p:not(.lab){font-size:clamp(17px,1.4vw,20px);line-height:1.55;margin-top:12px}
.rf-b .chk{margin-top:12px}
.rf-b--wide{grid-column:1/-1}
.rf-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:14px;margin-top:18px}
.rf-fig{margin:0;border-radius:20px;overflow:hidden;background:var(--card)}
.rf-fig img,.rf-fig video{display:block;width:100%;height:auto}
@media(max-width:760px){.rf-grid{grid-template-columns:1fr}}
.prose-simple__c{margin-top:28px;font-size:18px;line-height:1.6}
.prose-simple__c p{margin:0 0 1em}

/* Comme la « vue » du prototype : ce qui arrive de côté (révélations) ne crée jamais de défilement horizontal. */
#contenu{overflow-x:clip}

/* Le badge de présence reste à cheval sur le bord du portrait. */
body .rdvs__b .safaa__av, body .safaa .safaa__av {
  display: inline-block;
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}
body .rdvs__b .safaa__av > img, body .safaa .safaa__av > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  clip-path: circle(50%);
}
#rdvEmbed.rdv__em--waiting {min-height: 0; padding: 24px;}
html.js #rdvEmbed [data-rdv-load] {display:none;}

.rsel__b[aria-current=true]{background:var(--fg);color:var(--bgs);border-color:var(--fg)}
.rsel__b strong{font-size:clamp(1.35rem,2.4vw,2.3rem);line-height:1.15}
[data-project-panel]{scroll-margin-top:var(--hdr,80px)}
.elementor-element:has(.stack),.elementor-widget-container:has(.stack){overflow:visible}

.af-site-film{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#171411;border-radius:16px}.af-film-wrap{display:grid;gap:18px}.af-film-wrap button{justify-self:start}

.site-project-film{display:block;width:100%;max-width:100%;height:auto;border-radius:inherit;background:#171411}.sdlg__hint:empty{display:none}.art .im>.site-project-film,.ar-hero>.site-project-film{width:100%;height:100%;object-fit:contain}

.foot__cols a.foot__accent{color:var(--flash);font-weight:600}.foot__accent span{display:inline-block;margin-inline-end:.2em}

.site-devices{container-type:inline-size;width:100%;overflow:hidden;border-radius:16px;background:transparent;color:#19191e}
.devices-stage{position:relative;padding:5% 0 6%}
.device{overflow:hidden;box-sizing:content-box;background:#19191e;border:1px solid #777780;box-shadow:0 6px 14px #1112}
.device-screen{overflow:hidden;isolation:isolate;border-radius:var(--screen-radius);clip-path:inset(0 round var(--screen-radius));background:#101012}
.device video{display:block;width:100%;max-width:none;height:auto;object-fit:contain;background:#101012}
.device--ordinateur{--screen-radius:.7cqw;position:relative;margin-left:5%;width:78%;padding:.8%;border-radius:1.5cqw}
.device--telephone{--screen-radius:2.05cqw;position:absolute;width:17%;padding:.45%;right:3.3%;bottom:18%;border-radius:2.5cqw;box-shadow:-.5cqw .65cqw 1.1cqw #1115}
.devices-actions:not([hidden]){display:flex;justify-content:center;gap:8px;flex-wrap:wrap;padding:0 10px 16px}
.devices-actions button,.device-preview-open{line-height:1.2;font-family:inherit;font-size:14px;font-weight:600;color:#fff;background:#0b0b0a;border:1px solid #0b0b0a;border-radius:999px;padding:10px 16px;cursor:pointer}
.devices-actions button:focus-visible,.device-preview-open:focus-visible{outline:3px solid #383877;outline-offset:2px}
@container(max-width:550px){.device--ordinateur{margin-left:3%;width:79%}.device--telephone{width:19%;right:1.6%;bottom:18%}.devices-actions button{font-size:12px;padding:8px 12px}}

.cd__shot img[data-site-still]{aspect-ratio:auto;object-fit:contain}

/* Sous le seuil de la pastille, réserver deux colonnes au logo et aux actions. */
@media (max-width:1179px) {
  .hdr { grid-template-columns:minmax(0,1fr) auto; }
  .hdr__c { display:none; }
}
@media (max-width:999px) {
  .hdr .hdr__rdv { display:none; }
  .hero__grid { grid-template-columns:minmax(0,1fr); column-gap:0; }
  .hero__grid > * { min-width:0; }
}
@media (max-width:520px) {
  .hdr .hdr__cta { display:none; }
  .hero h1 { font-size:clamp(38px,12.4vw,64px); }
}

/* Le visuel suit la hauteur du texte. Le ruban termine le premier écran. */
body.home {
  --home-ribbon-line:clamp(30px,4vw,60px);
  --home-ribbon-pad:clamp(14px,1.8vw,26px);
}
body.home .hero {
  min-height:calc(100svh - var(--home-ribbon-line) - 2 * var(--home-ribbon-pad) - 2px);
  height:auto;
}
body.home #tick {
  margin:0;
  padding-block:var(--home-ribbon-pad);
}
body.home #tick .tick__g span { line-height:var(--home-ribbon-line); }
body.home .bourgeon-el:has(.hero),
body.home .bourgeon-el:has(#tick) {
  min-height:0;
  margin-block:0;
  padding-block:0;
  gap:0;
}
/* Le panneau, le texte et le fond occupent la même piste jusqu'au ruban. */
body.home #top.hero {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto;
}
body.home #top.hero > :is(.hero__media,.hero__shade,.hero__in) {
  grid-area:1 / 1;
}
body.home #top .hero__in { align-self:end; min-width:0; }
body.home #top .hero__media,
body.home #top .hero__shade {
  position:relative;
  align-self:stretch;
}
body.home #top .hero__media { overflow:hidden; }
body.home #top .slide > :is(img,video) {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
}
@media (max-width:767px) {
  body.home #top .hero__side {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:clamp(14px,4vw,24px);
  }
  body.home #top .hero__cta {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));
  }
  body.home #top .hero__cta .btn {
    min-width:0;
    height:auto;
    min-height:var(--h);
    padding-block:.7em;
    white-space:normal;
    text-align:center;
  }
}
