/* Sévillanes Castésiennes — accueil Gutenberg 2026 */
body .sc-homepage{--sc-red:#9e3037;--sc-dark:#651b28;--sc-gold:#e8b94b;--sc-rose:#f4d5d8;--sc-cream:#faf5ef;color:#392a29}
body.home .sc-homepage .wp-block-group{box-sizing:border-box}
.sc-homepage .sc-wrap{max-width:1180px;margin-inline:auto;padding-inline:clamp(18px,4vw,44px)}
.sc-homepage .sc-hero{min-height:570px;display:flex;align-items:center;position:relative;padding:110px 0 85px;background:linear-gradient(95deg,rgba(28,13,15,.86),rgba(48,18,22,.35)),linear-gradient(135deg,#4e2525,#b34d4b);color:#fff;border-radius:0 0 46% 5% / 0 0 6% 4%;isolation:isolate}
.sc-homepage .sc-hero .sc-wrap{width:100%}
.sc-homepage .sc-eyebrow{font-size:.77rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--sc-red);margin-bottom:14px}
.sc-homepage .sc-hero .sc-eyebrow{color:#ffe5b5}
.sc-homepage h1,.sc-homepage h2,.sc-homepage h3{font-family:Georgia,'Times New Roman',serif;line-height:1.12;color:var(--sc-dark)}
.sc-homepage .sc-hero h1{color:#fff;font-size:clamp(2.9rem,6.5vw,5.9rem);max-width:780px;margin:0 0 22px}
.sc-homepage .sc-hero p{color:#fff;max-width:590px}
.sc-homepage h2{font-size:clamp(2.2rem,4vw,4rem);margin-bottom:18px}
.sc-homepage .sc-script{font-family:Georgia,serif;font-style:italic;color:var(--sc-red);font-weight:400}
.sc-homepage .sc-hero .sc-script{color:var(--sc-gold)}
.sc-homepage .sc-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.sc-homepage .wp-block-button__link{background:var(--sc-red);color:#fff;border-radius:999px;padding:14px 25px;font-size:.83rem;font-weight:800;box-shadow:0 10px 22px #5b1e2930;transition:transform .2s,box-shadow .2s}
.sc-homepage .wp-block-button__link:hover{transform:translateY(-3px);box-shadow:0 16px 25px #5b1e2940}
.sc-homepage .sc-button-gold .wp-block-button__link{background:var(--sc-gold);color:#482720}
.sc-homepage .sc-button-light .wp-block-button__link{background:#fff;color:var(--sc-dark)}
.sc-homepage .sc-section{padding-block:clamp(62px,8vw,110px);position:relative}
.sc-homepage .sc-intro{background:var(--sc-cream)}
.sc-homepage .sc-video::after{content:'';position:absolute;background:url('../ornaments/rose-fleur.svg') center/contain no-repeat;width:220px;height:220px;opacity:.25;pointer-events:none}

.sc-homepage .sc-intro-grid,.sc-homepage .sc-workshop-grid,.sc-homepage .sc-video-grid{align-items:center;gap:0}
.sc-homepage .sc-intro-grid>.wp-block-column:first-child{position:relative;z-index:2;background:#fffaf6;padding:clamp(28px,4vw,56px);border-radius:28px;box-shadow:0 22px 55px #58242420;margin-right:-46px}
.sc-homepage .sc-photo{min-height:360px;border-radius:30px;overflow:hidden;box-shadow:0 22px 55px #58242429;background:linear-gradient(135deg,#ad5252,#e6b84a);display:flex;align-items:center;justify-content:center;text-align:center;color:white;padding:24px}
.sc-homepage .sc-photo p{color:white}
.sc-homepage .sc-photo img{width:100%;height:100%;object-fit:cover}
.sc-homepage .sc-intro-grid>.wp-block-column:last-child{position:relative}

.sc-homepage .sc-values{background:#fff7f2}
.sc-homepage .sc-values .sc-section-heading{text-align:center;max-width:780px;margin:0 auto 35px}
.sc-homepage .sc-values-grid{gap:20px}
.sc-homepage .sc-value-card{background:white;border-radius:24px;overflow:hidden;box-shadow:0 15px 38px #6b2a241a;transition:transform .2s}
.sc-homepage .sc-value-card:hover{transform:translateY(-5px)}
.sc-homepage .sc-value-card .sc-photo{border-radius:24px 24px 0 0;min-height:200px;box-shadow:none}
.sc-homepage .sc-card-body{padding:25px}
.sc-homepage .sc-card-body h3{font-size:1.65rem;margin-bottom:10px}
.sc-homepage .sc-workshops{background:var(--sc-red)}
.sc-homepage .sc-workshops .sc-eyebrow{color:var(--sc-red)}
.sc-homepage .sc-workshop-card{background:#fff9f4;padding:clamp(28px,4vw,55px);border-radius:30px;box-shadow:0 24px 50px #47172030;position:relative;z-index:2;margin-right:-35px}
.sc-homepage .sc-workshop-grid .sc-photo{min-height:420px}
.sc-homepage .sc-video{background:var(--sc-cream)}
.sc-homepage .sc-video::after{right:-75px;top:20px}
.sc-homepage .sc-video-grid{gap:45px}
.sc-homepage .sc-video-media{border-radius:28px;overflow:hidden;box-shadow:0 22px 50px #6b2a242b}
.sc-homepage .sc-video-media iframe{width:100%;aspect-ratio:16/9;height:auto;display:block}
.sc-homepage .sc-join{padding-block:100px;background:linear-gradient(90deg,#2c1215eb,#44191ac7),linear-gradient(120deg,#8a2e32,#3d1e20);color:#fff}
.sc-homepage .sc-join h2,.sc-homepage .sc-join p{color:#fff}
.sc-homepage .sc-join .sc-script{color:var(--sc-gold)}
.sc-homepage .sc-join-grid{align-items:center;gap:40px}
@media(max-width:781px){.sc-homepage .sc-hero{min-height:520px;padding:90px 0 65px}.sc-homepage .sc-intro-grid,.sc-homepage .sc-workshop-grid{gap:22px}.sc-homepage .sc-intro-grid>.wp-block-column:first-child,.sc-homepage .sc-workshop-card{margin-right:0}.sc-homepage .sc-photo{min-height:280px}.sc-homepage .sc-values-grid{gap:18px}.sc-homepage .sc-video-grid{gap:24px}.sc-homepage .sc-join{padding-block:70px}}
@media(prefers-reduced-motion:reduce){.sc-homepage .wp-block-button__link,.sc-homepage .sc-value-card{transition:none}.sc-homepage .wp-block-button__link:hover,.sc-homepage .sc-value-card:hover{transform:none}}




/* MAQUETTE APPROUVEE — HERO + CHEVAUCHEMENT (page 465 et accueil) */
body .sc-hero-cover.wp-block-cover {
  position:relative; isolation:isolate; overflow:visible !important;
  min-height:650px !important; padding:100px 32px 155px !important;
  display:flex; align-items:center; background-color:#32181b;
}
body .sc-hero-cover .wp-block-cover__image-background {object-position:center 46% !important}
body .sc-hero-cover .wp-block-cover__background {
  background:linear-gradient(90deg,rgba(19,9,11,.88) 0%,rgba(30,12,15,.66) 34%,rgba(38,15,16,.10) 75%) !important;
  opacity:1 !important;
}
body .sc-hero-cover .wp-block-cover__inner-container {width:100%;max-width:1180px;margin:0 auto;position:relative;z-index:2}
body .sc-hero-cover .sc-hero-content {width:100%;max-width:800px !important;margin:0 !important;background:transparent !important;box-shadow:none !important;padding:0 !important}
body .sc-hero-cover .sc-hero-content h1 {color:#fff !important;font-family:Georgia,'Times New Roman',serif;font-size:clamp(47px,5vw,78px) !important;font-weight:700;letter-spacing:-.045em;line-height:1.05 !important;max-width:820px !important;margin:14px 0 24px;text-shadow:0 3px 12px #180b0b55}
body .sc-hero-cover .sc-hero-content h1 em {display:block;color:#f0bb55 !important;font-family:'URW Chancery L','Brush Script MT','Segoe Script',cursive;font-size:1.04em;font-weight:400;letter-spacing:-.035em;line-height:1.1}
body .sc-hero-cover .sc-hero-content p {color:white !important;font-size:16px;line-height:1.55;max-width:540px;margin-bottom:14px;text-shadow:0 1px 5px #170b0b66}
body .sc-hero-cover .sc-hero-content p:first-child {font-size:12px;letter-spacing:.19em;font-weight:700;color:#f5d7ac !important}
body .sc-hero-cover .wp-block-buttons {display:inline-flex;vertical-align:middle;margin:16px 10px 0 0;gap:10px}
body .sc-hero-cover .wp-block-button__link {display:inline-flex;align-items:center;justify-content:center;background:#b53645 !important;color:#fff !important;border-radius:99px !important;padding:16px 26px !important;font-size:12px;font-weight:800;box-shadow:0 9px 24px #2b0d1640;transition:transform .2s}
body .sc-hero-cover .wp-block-buttons:nth-of-type(2) .wp-block-button__link {background:#fff9f2 !important;color:#67222b !important}
body .sc-hero-cover .wp-block-button__link:hover {transform:translateY(-3px)}
/* Ligne organique : SVG dessiné pour la transition, plutôt qu'un polygone */
body .sc-hero-cover::after {content:'';position:absolute;left:0;right:0;bottom:-2px;height:112px;z-index:3;pointer-events:none;background:url('../ornaments/transition-andalouse.svg') bottom center/100% 100% no-repeat}
/* Section qui déborde SUR le hero */
body .sc-andalousie-overlap {position:relative;isolation:isolate;z-index:5;overflow:visible !important;background:#faf5ef;padding-top:105px}
/* Rose poudré à droite, non noire */
body .sc-andalousie-overlap::before {content:'';position:absolute;z-index:1;right:-12px;top:-150px;width:clamp(200px,23vw,385px);height:clamp(220px,28vw,450px);background:url('../ornaments/arabesque-rose-poudre.svg') center/contain no-repeat;pointer-events:none}
/* Préserver le chevauchement des colonnes */
body .sc-andalousie-overlap .sc-intro-grid {position:relative;z-index:2;align-items:center;gap:0}
body .sc-andalousie-overlap .sc-intro-grid>.wp-block-column:first-child {position:relative;z-index:4;background:#fffaf6;border-radius:30px;padding:clamp(30px,4vw,58px);margin-right:-48px;box-shadow:0 22px 55px #4b22252c}
body .sc-andalousie-overlap .sc-intro-grid>.wp-block-column:last-child {position:relative;z-index:3;margin-top:-245px}
/* Cercle ocre derrière la photo (existant dans le thème enfant) */
body .sc-andalousie-overlap .sc-intro-grid>.wp-block-column:last-child::before {content:'';position:absolute;z-index:-1;left:-82px;top:-65px;width:250px;height:250px;background:url('../ornaments/cercle-pinceau-or.png') center/contain no-repeat;pointer-events:none}
body .sc-andalousie-overlap .sc-photo {padding:0;min-height:430px;border-radius:34px;overflow:hidden;box-shadow:0 24px 58px #3d191c45;background:#e4c2ad}
body .sc-andalousie-overlap .sc-photo img,body .sc-andalousie-overlap .wp-block-image img {display:block;width:100%;height:100%;min-height:430px;object-fit:cover;border-radius:34px}
/* Cas où le paragraphe provisoire est remplacé par un bloc Image directement */
body .sc-andalousie-overlap .sc-intro-grid>.wp-block-column:last-child .wp-block-image {margin:0;border-radius:34px;overflow:hidden;box-shadow:0 24px 58px #3d191c45}
@media(max-width:781px) {
 body .sc-hero-cover.wp-block-cover {min-height:570px !important;padding:90px 22px 115px !important}
 body .sc-hero-cover .sc-hero-content h1 {font-size:clamp(37px,9vw,57px) !important}
 body .sc-hero-cover .sc-hero-content h1 em {font-size:.95em}
 body .sc-hero-cover::after {height:65px}
 body .sc-andalousie-overlap {padding-top:55px}
 body .sc-andalousie-overlap::before {top:-90px;right:-30px;width:175px;height:220px}
 body .sc-andalousie-overlap .sc-intro-grid>.wp-block-column:first-child {margin-right:0}
 body .sc-andalousie-overlap .sc-intro-grid>.wp-block-column:last-child {margin-top:20px}
 body .sc-andalousie-overlap .sc-intro-grid>.wp-block-column:last-child::before {left:-20px;top:-35px;width:155px;height:155px}
 body .sc-andalousie-overlap .sc-photo,body .sc-andalousie-overlap .sc-photo img {min-height:300px}
}
@media(max-width:500px){body .sc-hero-cover .wp-block-buttons{display:flex;margin:10px 0 0}body .sc-hero-cover .wp-block-button__link{padding:13px 18px !important}}
@media(prefers-reduced-motion:reduce){body .sc-hero-cover .wp-block-button__link{transition:none}}
