/* ===== Fonts ===== */
@font-face{font-family:'Gotham SSm';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/GothamSSm-Book.woff2') format('woff2');}
@font-face{font-family:'Gotham SSm';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/GothamSSm-Medium.woff2') format('woff2');}
@font-face{font-family:'Gotham SSm';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/GothamSSm-Bold.woff2') format('woff2');}

/* ===== Tokens ===== */
:root{
  --rbt-rouge:#b40024; --rbt-fond:#fbf6f3; --rbt-fond2:#f5ebe6; --rbt-fond3:#f8ebee;
  --rbt-gris:#333; --rbt-gris2:#666; --rbt-radius:20px;
  --rbt-font:'Gotham SSm','Helvetica Neue',Arial,sans-serif;
  --rbt-header-h:110px;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{background:var(--rbt-fond);font-family:var(--rbt-font);color:var(--rbt-gris);-webkit-font-smoothing:antialiased;}
img{display:block;max-width:100%;height:auto;}

/* ===== Header sticky + pilules ===== */
.rbt-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.9);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 14px 24px rgba(0,0,0,.05);border-radius:0 0 var(--rbt-radius) var(--rbt-radius);}
.rbt-header__inner{max-width:1280px;margin:0 auto;display:flex;gap:30px;align-items:flex-start;padding:20px 40px;}
.rbt-header__brand{display:flex;flex-direction:column;gap:10px;flex-shrink:0;}
.rbt-header__logo{width:180px;height:41px;}
.rbt-header__baseline{font-weight:700;font-size:18px;color:#000;line-height:24px;}
.rbt-nav{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;flex:1;min-width:0;}
.rbt-pill{display:inline-block;text-decoration:none;padding:10px;border-radius:var(--rbt-radius);font-size:12px;line-height:16px;white-space:nowrap;background:var(--rbt-fond2);color:var(--rbt-rouge);box-shadow:0 4px .5px rgba(0,0,0,.1);}
.rbt-pill.is-active{background:var(--rbt-rouge);color:#fff;box-shadow:none;}

/* ===== Sections thème ===== */
.rbt-main{max-width:1280px;margin:0 auto;padding:30px 150px 40px;display:flex;flex-direction:column;gap:10px;}
.rbt-theme{background:var(--rbt-fond2);border-radius:var(--rbt-radius);padding:10px;display:flex;flex-direction:column;gap:10px;scroll-margin-top:var(--rbt-header-h);}
.rbt-theme--alt{background:var(--rbt-fond3);}
.rbt-theme__head{padding:10px 20px;display:flex;flex-direction:column;gap:5px;}
.rbt-theme__num{font-size:16px;line-height:20px;}
.rbt-theme__title{font-size:36px;line-height:1.08;font-weight:400;}
.rbt-theme__sub{font-size:14px;font-weight:700;line-height:1.3;color:var(--rbt-rouge);}
.rbt-theme__banner{border-radius:var(--rbt-radius);overflow:hidden;}
.rbt-theme__banner img{width:100%;aspect-ratio:3144/1779;object-fit:cover;}

/* ===== Bento ===== */
.rbt-bento{display:flex;gap:10px;align-items:stretch;}
.rbt-bento__col{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px;}
.rbt-bento--single .rbt-bento__col{flex-basis:100%;}
.rbt-bento__col > .rbt-box:last-child{flex:1;}

/* ===== Box ===== */
.rbt-box{background:#fff;border-radius:var(--rbt-radius);padding:40px;display:flex;flex-direction:column;gap:20px;}
.rbt-box__tag{display:flex;gap:10px;align-items:center;font-size:16px;font-weight:700;color:var(--rbt-rouge);line-height:22px;}
.rbt-box__icon{width:32px;height:32px;flex-shrink:0;}
.rbt-box__content{display:flex;flex-direction:column;gap:20px;flex:1;}

/* ===== Contenus (blocs natifs scopés) ===== */
.rbt-box h2,.rbt-box h3{font-size:29px;font-weight:700;letter-spacing:-.58px;line-height:1.1;color:#000;}
.rbt-box h4{font-size:18px;font-weight:700;color:var(--rbt-rouge);line-height:24px;}
.rbt-box p{font-size:14px;line-height:20px;color:var(--rbt-gris2);}
.rbt-box ul{list-style:disc;padding-left:24px;color:var(--rbt-gris2);font-size:14px;line-height:20px;display:flex;flex-direction:column;gap:2px;}
.rbt-box .wp-block-button__link{background:var(--rbt-rouge);color:#fff;border-radius:40px;padding:10px 20px;font-size:16px;font-weight:500;line-height:24px;text-decoration:none;}
.rbt-box .wp-block-image img,.rbt-box video{border-radius:12px;}
.rbt-box .wp-block-embed__wrapper iframe{width:100%;aspect-ratio:16/9;border-radius:12px;}
.rbt-box .wp-block-columns{gap:20px;}

/* ===== Carrousel ===== */
.rbt-carousel{border-radius:12px;overflow:hidden;}
.rbt-carousel .swiper-slide img{width:100%;object-fit:cover;}
.rbt-carousel .swiper-pagination-bullet-active{background:var(--rbt-rouge);}
/* Fallback sans JS : slides empilées tant que Swiper n'a pas initialisé */
.rbt-carousel:not(.swiper-initialized) .swiper-wrapper{display:flex;flex-direction:column;gap:10px;}

/* ===== Responsive ===== */
@media (max-width:1024px){
  :root{--rbt-header-h:150px;}
  .rbt-header__inner{flex-direction:column;gap:20px;padding:20px;}
  .rbt-header__brand{flex-direction:row;align-items:center;justify-content:space-between;width:100%;}
  .rbt-header__logo{width:150px;height:34px;}
  .rbt-nav{display:block;white-space:nowrap;overflow-x:auto;width:100%;min-width:0;padding-bottom:4px;scrollbar-width:none;}
  .rbt-nav::-webkit-scrollbar{display:none;}
  .rbt-nav .rbt-pill{margin-right:10px;}
  .rbt-main{padding:20px 10px 40px;}
  .rbt-bento{flex-direction:column;}
  .rbt-box{padding:30px;}
  .rbt-theme__title{font-size:30px;}
}
