/* Section dividers follow the content column instead of the viewport. */
:root{--section-rule-width:calc(100% - 36px)}
.sitehead{border-bottom:0}
.sitehead::after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:var(--section-rule-width);height:1px;background:var(--line)}
#motivations{position:relative;border-block-start:0}
#motivations::before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);width:var(--section-rule-width);height:1px;background:var(--line)}
/* Alternating backgrounds already separate these sections. */
#formules,#reservation,#entreprises,#parrainage{border-block:0}
@media(min-width:761px){
 :root{--section-rule-width:min(1200px,calc(100% - 64px));--desktop-header-height:90px}
 .sitehead .bar{height:var(--desktop-header-height);gap:24px}
 .sitehead .header-handle{font-size:1.2rem}
 .sitehead .desk{gap:clamp(14px,1.5vw,24px)}
 .sitehead .header-call{min-height:48px;padding:13px 20px}
 html{scroll-padding-top:106px}
 #accueil.hero{
  height:calc(100svh - var(--desktop-header-height));min-height:650px;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  grid-template-rows:minmax(0,1fr) auto;
  grid-template-areas:"copy photo" "actions photo";
  column-gap:clamp(28px,3.4vw,52px);row-gap:24px;
  padding-block:clamp(80px,12svh,120px);align-items:stretch;
 }
 #accueil .hero-copy{align-self:stretch;display:flex;flex-direction:column;justify-content:flex-start;min-width:0;min-height:0;overflow:visible}
 #accueil h1{font-size:clamp(48px,5.2vw,76px);line-height:1.02;margin:18px 0 0}
 #accueil h1 br{display:initial}
 #accueil .hero-location{display:block;font-size:.69em;line-height:1.07}
 #accueil .intro{font-size:clamp(1rem,1.2vw,1.12rem);line-height:1.5;padding:20px 22px;margin:auto 0}
 #accueil>.ctas{display:grid;grid-template-columns:1.1fr 1fr;gap:12px;align-self:end;margin:0}
 #accueil>.ctas .btn{min-height:56px;padding:12px 10px;font-size:.92rem}
 #accueil .hero-visual{height:100%;min-height:0;align-self:stretch;justify-content:stretch;margin:0}
 #accueil .photo-mask{height:100%;min-height:0}
 #accueil .hero-photo{height:100%;width:100%;min-height:0;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:48% 50%}
}
@media(min-width:761px) and (max-width:1000px){
 #accueil.hero{column-gap:24px;min-height:650px}
 #accueil h1{font-size:clamp(43px,5.3vw,53px)}
 #accueil .intro{padding:18px 16px;line-height:1.4}
 #accueil>.ctas .btn{font-size:.83rem;padding-inline:8px}
}
@media(min-width:761px) and (max-height:740px){
 #accueil.hero{padding-block:60px;row-gap:20px}
 #accueil h1{font-size:clamp(43px,4.8vw,64px);margin:14px 0 16px}
 #accueil .intro{padding:16px 18px;line-height:1.4}
 #accueil>.ctas .btn{min-height:50px}
}

/* Three deliberate lines, with sentence case on every screen. */
#accueil h1{text-transform:none;letter-spacing:-.035em}
#accueil .hero-title-line{display:block;white-space:nowrap}
#accueil .hero-name{color:var(--coral)}
@media(max-width:760px){
 #accueil h1{font-size:clamp(37px,10.2vw,66px);line-height:1.02;margin-block:12px}
}
@media(max-width:760px) and (max-height:740px){
 #accueil h1{font-size:clamp(34px,9.3vw,52px);margin-block:8px}
}

/* Fill the text column while preserving the left edge and three lines. */
#accueil .hero-copy{container-type:inline-size}
#accueil h1{font-size:20cqw;line-height:.95;letter-spacing:-.035em}
#accueil .hero-title-line:not(.hero-name){text-transform:uppercase}
#accueil .hero-name{font-size:.72em;line-height:1.1;text-transform:none;margin-top:.06em}
@media(min-width:761px) and (max-height:740px){
 #accueil.hero{min-height:720px}
}
@media(max-width:760px){
 #accueil h1{font-size:min(20cqw,100px);margin-block:10px}
}

/* Desktop: headline and photo share the same top edge. */
@media(min-width:761px){
 #accueil .hero-copy{position:relative}
 #accueil .hero-copy>.eyebrow{position:absolute;left:0;bottom:calc(100% + 22px);margin:0}
 #accueil h1{margin-top:0}
}

/* Keep the desktop introduction bubble close to its actions. */
@media(min-width:761px){
 #accueil .intro{margin:auto 0 0}
 #accueil.hero{row-gap:20px}
}

/* A roomier desktop speech bubble, still anchored above the buttons. */
@media(min-width:761px){
 #accueil .intro{min-height:180px;padding:30px 28px;font-size:clamp(1.1rem,1.45vw,1.25rem);line-height:1.55}
}
@media(min-width:761px) and (max-width:1000px){
 #accueil .intro{padding:24px 20px;font-size:1.05rem}
}


/* Restore the compact, two-line mobile heading and return space to the photo. */
@media(max-width:760px){
 #accueil h1{font-size:min(12.7cqw,74px);line-height:.9;margin-block:15px;white-space:nowrap}
 #accueil .hero-title-line:not(.hero-name){display:inline}
 #accueil .hero-title-line:nth-child(2)::before{content:" "}
 #accueil .hero-name{display:block;font-size:.71em;line-height:1.07;margin-top:0}
}
@media(max-width:760px) and (max-height:700px){
 #accueil h1{font-size:min(11.7cqw,60px);margin-block:8px}
}

/* Desktop balance: equal columns, compact copy and a quieter photo frame. */
@media(min-width:761px){
 #accueil.hero{
  height:calc(100svh - var(--desktop-header-height));min-height:650px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:auto auto;
  column-gap:clamp(28px,3.4vw,52px);row-gap:20px;
  padding-block:clamp(68px,8svh,96px);
  align-content:center;align-items:stretch;
 }
 #accueil .hero-copy{justify-content:flex-start;gap:28px}
 #accueil .hero-copy>.eyebrow{bottom:calc(100% + 24px)}
 #accueil h1{font-size:clamp(58px,15.8cqw,90px);line-height:.96;margin:0;letter-spacing:-.035em}
 #accueil .hero-name{font-size:.82em;line-height:1.08;margin-top:.06em}
 #accueil .intro{min-height:0;max-width:none;margin:0;padding:22px 24px;font-size:clamp(1rem,1.1vw,1.125rem);line-height:1.5}
 #accueil>.ctas{align-self:end;gap:12px;margin:0;grid-template-columns:1.1fr 1fr}
 #accueil>.ctas .btn{min-height:54px;font-size:.9rem;padding:12px 10px}
 #accueil .hero-visual{padding:0 4px 5px 0;height:100%;min-height:0}
 #accueil .hero-visual::before{inset:8px 0 0 9px}
 #accueil .photo-mask{height:100%;min-height:0}
 #accueil .hero-photo{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:48% 60%}
}
@media(min-width:761px) and (max-width:1000px){
 #accueil.hero{column-gap:28px}
 #accueil .hero-copy{gap:24px}
 #accueil h1{font-size:15.8cqw}
 #accueil .intro{padding:20px 18px;font-size:1rem}
 #accueil>.ctas .btn{font-size:.8rem;padding-inline:8px}
}
@media(min-width:761px) and (max-height:740px){
 #accueil.hero{min-height:600px;padding-block:62px}
 #accueil .hero-copy{gap:24px}
 #accueil h1{font-size:min(15.8cqw,80px)}
 #accueil .intro{padding:18px 22px;line-height:1.45}
 #accueil>.ctas .btn{min-height:50px}
}
