/* =========================================================================
   Monaco 2027 — Design System (ISO maquette Figma)
   Appliqué aux gabarits Elementor via les classes _css_classes (m27-*).
   Mobile-first ; paliers 768 / 1024 / 1440.
   ========================================================================= */

:root{
  --brand:#E30613; --brand-dark:#7D030A;
  --ink:#111315; --ink-body:#1A1D20; --ink-muted:#5E3F3B; --ink-soft:#525252;
  --surface:#FFFFFF; --surface-alt:#F8F9FA; --surface-card:#F4F5F7;
  --border:#EEEEF0; --border-soft:#E2E2E5;
  --blue:#0066B2; --green:#008850; --amber:#FF9E1B; --pink:#E0245E; --success:#00953E;
  --serif:"Newsreader",Georgia,serif; --sans:"Inter",-apple-system,"Segoe UI",sans-serif;
  --maxw:none; --gut:80px;
  --r-ctrl:4px; --r-card:8px; --r-media:16px;
}

/* ---- Base / resets portés sur le contenu Elementor ---------------------- */
body{font-family:var(--sans);color:var(--ink-body);background:var(--surface);}
.m27 h1,.m27 h2,.m27 h3,.m27 h4{font-family:var(--serif);color:var(--ink);margin:0;line-height:1.15;font-weight:500;}
.m27-eyebrow{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--brand);margin:0 0 8px;}
.m27-h2{font-family:var(--serif);font-weight:500;font-size:clamp(28px,4vw,40px);line-height:1.2;color:var(--ink);}
/* Titres de section en NOIR (maquette) ; seuls les surtitres sont rouges. Bandeaux rouge/sombre gardent le blanc. */
.m27-jeux h2,.m27-deleg h2,.m27-disc h2,.m27-welcome h2,.m27-links h2,.m27-sechead h2,.m27-h2{color:var(--ink) !important;}
/* Les widgets heading héritent couleur+police du Kit Elementor → on normalise en encre, puis on réapplique le rouge/les accents. */
.m27-sec .elementor-heading-title{color:var(--ink) !important;}
.m27-cta .elementor-heading-title,.m27-final .elementor-heading-title{color:#fff !important;}
.m27-hero__title .elementor-heading-title{color:var(--brand) !important;}
.m27-eyebrow .elementor-heading-title{color:var(--brand) !important;font-family:var(--sans) !important;font-weight:700 !important;}
.m27-lead{font-size:18px;line-height:1.62;color:var(--ink-body);}
.m27-muted{color:var(--ink-muted);}

/* Largeur de contenu : on force le conteneur interne des sections m27 */
/* Elementor impose max-width:1140px sur .elementor-section-boxed > .elementor-container → on force la pleine largeur. */
.m27-sec > .elementor-container,
.m27-sec > .e-con-inner{max-width:var(--maxw) !important;margin-inline:auto;width:100%;}
/* Les sections internes Elementor sont aussi plafonnées à 1140px par défaut → pleine largeur. */
.m27-sec .elementor-inner-section > .elementor-container{max-width:none !important;}
.m27-sec{padding-block:clamp(48px,8vw,96px);padding-inline:clamp(20px,5vw,var(--gut));}
.m27-sec--tight{padding-block:clamp(32px,5vw,56px);}
.m27-sec--alt{background:var(--surface-alt);}
.m27-sec--card{background:var(--surface-card);}
.m27-sec--ink{background:var(--ink);color:#fff;}

/* ---- Boutons ----------------------------------------------------------- */
/* Boutons : couvre le widget Button natif (.m27-btn = wrapper → .elementor-button) ET les <a class="m27-btn"> (header). */
.m27-btn .elementor-button,a.m27-btn{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--brand);color:#fff;border-radius:var(--r-ctrl);
  font-family:var(--sans);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;
  padding:12px 24px;text-decoration:none;border:1px solid var(--brand);line-height:1.2;transition:.15s;
}
.m27-btn .elementor-button:hover,a.m27-btn:hover{background:var(--brand-dark);border-color:var(--brand-dark);color:#fff;}
.m27-btn .elementor-button-icon,.m27-btn .elementor-button-icon svg{display:inline-flex;align-items:center;color:currentColor;fill:currentColor;width:1em;height:1em;}
/* Variante contour : texte NOIR, bordure rouge, flèche rouge (ex. « Découvrir les jeux »). */
.m27-btn--outline .elementor-button,a.m27-btn--outline{background:#fff;color:var(--ink);border-color:var(--brand);}
.m27-btn--outline .elementor-button .elementor-button-icon{color:var(--brand);fill:var(--brand);}
.m27-btn--outline .elementor-button:hover,a.m27-btn--outline:hover{background:var(--brand);color:#fff;}
.m27-btn--outline .elementor-button:hover .elementor-button-icon{color:#fff;fill:#fff;}
.m27-btn--light .elementor-button,a.m27-btn--light{background:#fff;color:var(--brand);border-color:#fff;}
.m27-btn--light .elementor-button:hover,a.m27-btn--light:hover{background:var(--ink);color:#fff;border-color:var(--ink);}
.m27-btn--ghost .elementor-button,a.m27-btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.5);}
/* Flèche des boutons natifs : vraie icône icon-arrow-right en masque CSS (prend currentColor). */
.m27-btn .elementor-button::after{content:"";display:inline-block;width:15px;height:12px;flex:0 0 auto;background-color:currentColor;-webkit-mask:url(../svg/icons/icon-arrow-right.svg) center/contain no-repeat;mask:url(../svg/icons/icon-arrow-right.svg) center/contain no-repeat;}
.m27-btn--outline .elementor-button::after{background-color:var(--brand);}
.m27-btn--outline .elementor-button:hover::after{background-color:#fff;}
.m27-btn--down .elementor-button::after{transform:rotate(90deg);}
/* Variante sans flèche. */
.m27-btn--noarrow .elementor-button::after{display:none;}
/* Rangée de boutons (section interne Elementor) — restent côte à côte. */
.m27-btn-row .elementor-widget-wrap{display:flex;flex-direction:row;flex-wrap:nowrap;gap:12px;align-items:center;}
.m27-btn-row .elementor-widget{width:auto;max-width:none;margin:0 !important;align-self:center;}
.m27-btn .elementor-button{white-space:nowrap;}
@media(max-width:600px){.m27-btn-row .elementor-widget-wrap{flex-wrap:wrap;}}
.m27-btn-row .elementor-widget-container,.m27-btn-row .elementor-button-wrapper{margin:0 !important;}

/* =========================================================================
   EN-TÊTE
   ========================================================================= */
.m27-header{background:#fff;border-bottom:1px solid var(--border);position:relative;z-index:50;}
.m27-header > .elementor-container,.m27-header > .e-con-inner{
  max-width:var(--maxw) !important;margin-inline:auto;width:100%;
  padding:16px clamp(20px,5vw,var(--gut));
}
/* En-tête : widget Menu (natif) + bouton, alignés à DROITE sur une ligne. */
.m27-header > .elementor-container > .elementor-column > .elementor-widget-wrap{
  display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:32px;
}
.m27-header > .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget{width:auto;max-width:none;margin:0;}
/* Widget Menu Elementor : look identique à l'ancienne nav. */
.m27-header__nav .elementor-nav-menu--main .elementor-nav-menu{display:flex;flex-wrap:nowrap;gap:28px;}
.m27-header__nav .elementor-nav-menu > li{margin:0;}
.m27-header__nav .elementor-item{font-family:var(--sans) !important;}
.m27-header__nav .elementor-nav-menu > li > a.elementor-item{
  color:var(--ink);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;
  padding:0;line-height:1.2;white-space:nowrap;
}
.m27-header__nav .elementor-nav-menu > li > a.elementor-item:hover,
.m27-header__nav .elementor-nav-menu > li > a.elementor-item.elementor-item-active{color:var(--brand);background:transparent;}
.m27-header__cta{flex:0 0 auto;}
.m27-btn__arrow{display:inline-flex;align-items:center;line-height:1;}
.m27-btn__arrow svg{width:16px;height:16px;display:block;}
/* Sélecteur de langue (TranslatePress) : look texte « FR ▾ », sans cadre. */
.m27-header__lang .trp-shortcode-switcher__wrapper{--text:var(--ink);--text-hover:var(--brand);--bg:transparent;--bg-hover:transparent;--border:none;--border-width:0;--font-size:12px;}
.m27-header__lang .trp-shortcode-switcher__wrapper,.m27-header__lang .trp-ls-language-name{font-family:var(--sans) !important;text-transform:uppercase;font-weight:700;letter-spacing:.05em;}
.m27-header__lang .trp-shortcode-switcher__wrapper a,.m27-header__lang .trp-shortcode-switcher__wrapper button,.m27-header__lang .trp-ls-language-name{color:var(--ink) !important;}
.m27-header__lang .trp-shortcode-switcher__wrapper a:hover,.m27-header__lang .trp-shortcode-switcher__wrapper a:hover .trp-ls-language-name{color:var(--brand) !important;}
/* Burger natif du widget Menu (mobile) + menu déroulant. */
.m27-header__nav .elementor-menu-toggle{color:var(--ink);}
.m27-header__nav .elementor-nav-menu--dropdown{background:#fff;border-bottom:1px solid var(--border);box-shadow:0 12px 20px -8px rgba(0,0,0,.15);}
.m27-header__nav .elementor-nav-menu--dropdown a.elementor-item{
  color:var(--ink) !important;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;
}
.m27-header__nav .elementor-nav-menu--dropdown a.elementor-item:hover{color:var(--brand) !important;background:transparent;}
/* Mobile/tablette : le widget se réduit au burger, le déroulant prend toute la largeur de l'en-tête. */
@media(max-width:1024px){
  .m27-header__nav{flex:0 0 auto;width:auto !important;}
  .m27-header__nav .elementor-menu-toggle{position:relative;margin:0;}
  /* conteneur de référence = .m27-header (position:relative) : on neutralise les positionnements intermédiaires */
  .m27-header > .elementor-container,
  .m27-header > .elementor-container > .elementor-column,
  .m27-header > .elementor-container > .elementor-column > .elementor-widget-wrap,
  .m27-header__nav{position:static !important;}
  .m27-header__nav .elementor-nav-menu--dropdown{position:absolute !important;left:0 !important;right:0 !important;top:100% !important;width:auto !important;max-height:none !important;height:auto !important;overflow:visible !important;padding:8px clamp(20px,5vw,var(--gut));}
  .m27-header__nav .elementor-nav-menu--dropdown .elementor-nav-menu{display:block;}
  .m27-header__nav .elementor-nav-menu--dropdown .elementor-item{display:block;white-space:nowrap;padding:12px 0;}
}

/* =========================================================================
   HERO
   ========================================================================= */
.m27-hero{background:#fff;padding-right:0;}
/* Image droite plus grande + collée au bord droit de l'écran (full-bleed à droite). */
.m27-hero.m27-sec > .elementor-container,.m27-hero.m27-sec > .e-con-inner{max-width:none;margin-right:0;}
.m27-hero__emblem,.m27-hero__emblem .elementor-widget-container{text-align:left !important;}
.m27-hero__emblem img{height:130px;width:auto;margin-left:0;}
.m27-hero__title .elementor-heading-title{font-family:var(--serif);font-weight:400;font-size:clamp(40px,6vw,56px);line-height:1.08;color:var(--brand) !important;}
.m27-hero__title em{font-style:italic;color:var(--brand) !important;}
.m27-hero__title{margin:16px 0;}
.m27-hero__lead .elementor-widget-container,.m27-hero__lead p{font-size:18px;line-height:1.62;color:var(--ink-body);max-width:540px;margin:0;}
.m27-btn-row{margin:28px 0;}
.m27-patronage,.m27-patronage .elementor-widget-container{display:flex;align-items:center;gap:12px;}
.m27-patronage::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--success);flex:0 0 auto;}
.m27-patronage p{margin:0;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-muted);}
.m27-hero__media img{width:100%;height:auto;border-radius:16px 0 0 16px;object-fit:cover;}
@media(max-width:767px){
  .m27-hero{padding-right:clamp(20px,5vw,var(--gut));}
  .m27-hero__media img{border-radius:16px;}
}

/* =========================================================================
   CHIFFRES CLÉS
   ========================================================================= */
.m27-stats{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.05);}
/* 4 cartes = 4 colonnes Elementor en grille avec gap (sinon elles se touchent). */
.m27-stats > .elementor-container{display:grid !important;grid-template-columns:repeat(4,1fr);gap:24px;align-items:stretch;}
.m27-stats > .elementor-container > .elementor-column{width:auto !important;}
/* La ligne d'en-tête (surtitre+icône) doit occuper toute la largeur de la carte. */
.m27-stat__head,.m27-stat__head > .elementor-container{width:100% !important;}
.m27-stat__head > .elementor-container > .elementor-column{width:100% !important;flex:1 1 100% !important;}
.m27-stat{background:var(--surface-card);border-radius:var(--r-ctrl);padding:20px;}
.m27-stat > .elementor-widget-wrap{gap:4px;}
.m27-stat .elementor-widget{margin:0;width:100%;}
/* Ligne d'en-tête : surtitre (gauche) + icône (droite) parfaitement alignés. */
.m27-stat__head .elementor-widget-wrap{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:8px;flex-wrap:nowrap;}
.m27-stat__head .elementor-widget{width:auto !important;margin:0 !important;}
.m27-stat__eyebrow .elementor-heading-title{font-family:var(--sans) !important;font-size:11px !important;font-weight:700 !important;text-transform:uppercase;letter-spacing:.1em;line-height:1;}
.m27-stat--brand .m27-stat__eyebrow .elementor-heading-title{color:var(--brand) !important;}
.m27-stat--blue .m27-stat__eyebrow .elementor-heading-title{color:var(--blue) !important;}
.m27-stat--green .m27-stat__eyebrow .elementor-heading-title{color:var(--green) !important;}
.m27-stat--amber .m27-stat__eyebrow .elementor-heading-title{color:var(--amber) !important;}
.m27-stat__icon img{width:18px;height:18px;display:block;}
.m27-stat__value .elementor-heading-title{font-family:var(--serif) !important;font-weight:500;font-size:28px;line-height:1;color:var(--ink) !important;margin-top:4px;}
.m27-stat__label .elementor-widget-container,.m27-stat__label p{font-size:14px;color:var(--ink-muted);line-height:1.5;margin:0;}

/* =========================================================================
   LES JEUX
   ========================================================================= */
.m27-jeux{background:var(--surface-alt);}
/* Colonne texte « Les Jeux » : rythme vertical resserré (maquette compacte). */
.m27-jeux .elementor-widget{margin-block-end:0 !important;}
.m27-jeux .m27-eyebrow{margin-bottom:6px !important;}
.m27-jeux .m27-h2{margin-bottom:16px !important;}
.m27-jeux .m27-lead{margin-bottom:12px !important;}
.m27-jeux .m27-muted{margin-bottom:0 !important;}
.m27-jeux .m27-lead p,.m27-jeux .m27-muted p{margin:0 !important;}
.m27-jeux .m27-values{margin-top:16px !important;}
.m27-jeux__media{position:relative;}
.m27-jeux__media img{width:100%;height:auto;border-radius:var(--r-card);}
/* Stampcards = section interne (grille de 3 colonnes) chevauchant l'image. */
.m27-jeux__stamps{margin-top:-40px !important;position:relative;z-index:2;}
.m27-jeux__stamps > .elementor-container{display:grid !important;grid-template-columns:repeat(3,1fr);gap:12px;padding:0 16px;}
.m27-jeux__stamps .elementor-column{width:auto !important;}
.m27-jeux__stamps .elementor-widget-wrap{align-content:start;}
.m27-stampcard{background:#fff;border-radius:var(--r-ctrl);padding:12px 6px;box-shadow:0 10px 15px -3px rgba(0,0,0,.1);text-align:center;min-width:0;}
.m27-stampcard .elementor-widget{width:100%;margin:0;}
.m27-stampcard__year .elementor-heading-title{font-family:var(--serif) !important;font-size:clamp(20px,2vw,26px);font-weight:600;color:var(--brand) !important;line-height:1;}
.m27-stampcard__label .elementor-widget-container,.m27-stampcard__label p{font-size:9.5px;font-weight:600;text-transform:uppercase;letter-spacing:.02em;color:var(--ink-muted);margin:4px 0 0;line-height:1.3;}
/* Cartes valeurs = section interne (grille de 3 colonnes). */
.m27-values{margin-top:24px !important;}
.m27-values > .elementor-container{display:grid !important;grid-template-columns:repeat(3,1fr);gap:12px;align-items:start;}
.m27-values > .elementor-container > .elementor-column{width:auto !important;}
.m27-value{background:#fff;border-radius:var(--r-ctrl);padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.05);}
/* Contenu empilé, aligné à gauche, espacement régulier (icône › titre › texte). */
.m27-value > .elementor-widget-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:8px;}
.m27-value .elementor-widget{width:auto;margin:0;}
.m27-value__icon,.m27-value__icon .elementor-widget-container{text-align:left !important;}
.m27-value__icon img{width:24px;height:24px;display:block;}
.m27-value__title .elementor-heading-title{font-family:var(--sans) !important;font-size:11px !important;font-weight:600 !important;text-transform:uppercase;letter-spacing:.1em;color:var(--ink) !important;margin:0 0 4px;line-height:1.2;}
.m27-value__text .elementor-widget-container,.m27-value__text p{font-size:12px;color:var(--ink-muted);margin:0;line-height:1.55;}

/* =========================================================================
   DÉLÉGATIONS (Loop Grid)
   ========================================================================= */
.m27-deleg{background:#fff;}
.m27-deleg .m27-sechead{text-align:center;max-width:672px;margin:0 auto 40px;}
.m27-deleg-grid .elementor-grid,.m27-deleg-grid{--grid-template-columns:repeat(3,1fr);}
/* Carte rendue par shortcode [m27_delegation_card] = div simple, alignée en ligne. */
.m27-delegation{display:flex;align-items:center;gap:16px;background:var(--surface-card);border-radius:var(--r-ctrl);padding:16px;height:100%;}
.m27-delegation .m27-flag{flex:0 0 auto;display:inline-flex;}
.m27-delegation__body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;}
.m27-delegation.is-host,.m27-delegation:has(.m27-badge-host){background:rgba(227,6,19,.05);}
.m27-delegation .m27-flag img{width:40px;height:25px;object-fit:cover;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);display:block;}
.m27-delegation__body{display:flex;flex-direction:column;gap:2px;min-width:0;}
.m27-delegation__name{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700;letter-spacing:.04em;color:var(--ink);}
.m27-delegation__meta{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.09em;color:var(--ink-muted);}
.m27-delegation__star{margin-left:auto;flex:0 0 auto;display:inline-flex;align-items:center;}
.m27-delegation__star img{width:16px;height:16px;}
.m27-badge-host{flex:0 0 auto;display:inline-block;background:var(--brand);color:#fff;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:2px 6px;border-radius:2px;line-height:1.4;}

/* =========================================================================
   COMPÉTITIONS (Loop Grid de cartes)
   ========================================================================= */
.m27-disc{background:var(--surface-alt);}
/* En-tête : texte à gauche + lien calendrier à droite (maquette). */
.m27-disc__head{margin-bottom:40px;}
.m27-disc__head > .elementor-container{display:flex !important;flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px;max-width:none !important;}
.m27-disc__head > .elementor-container > .elementor-column{width:auto !important;}
.m27-disc__head .m27-eyebrow{margin-bottom:6px !important;}
.m27-disc__head .m27-h2{margin-bottom:12px !important;}
.m27-disc__head .m27-lead p{margin:0;}
.m27-disc-grid .elementor-grid,.m27-disc-grid{--grid-template-columns:repeat(4,1fr);}
/* Pas de carte blanche : l'image est posée sur le fond de section (maquette). */
.m27-discipline{background:transparent;box-shadow:none;padding:0 0 16px;height:100%;text-align:center;}
.m27-discipline .elementor-widget{margin-block-end:0 !important;}
.m27-discipline__img{aspect-ratio:1/1;max-width:164px;margin-inline:auto;border-radius:var(--r-card);overflow:hidden;}
.m27-discipline__img img{width:100%;height:100%;object-fit:cover;display:block;}
.m27-discipline__name .elementor-heading-title{font-family:var(--sans) !important;font-size:16px !important;font-weight:600 !important;text-transform:uppercase;letter-spacing:.06em;color:var(--ink) !important;}
.m27-discipline__name{margin:12px 12px 6px !important;}
.m27-discipline__place .elementor-heading-title{font-family:var(--sans) !important;font-size:11px !important;font-weight:600 !important;letter-spacing:.09em;color:var(--ink-muted) !important;}
.m27-discipline__place{margin:0 12px;}
.m27-arrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--ink);text-decoration:none;}
.m27-arrow img{width:11px;height:11px;}
/* Lien-flèche "Consulter le calendrier complet" (bouton natif). */
.m27-arrowlink{margin-top:32px;}
.m27-arrowlink .elementor-button{background:transparent;border:0;padding:0;color:var(--ink);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;display:inline-flex;align-items:center;gap:8px;line-height:1.2;white-space:nowrap;}
.m27-arrowlink .elementor-button:hover{background:transparent;color:var(--brand);}
.m27-arrowlink .elementor-button::after{content:"";display:inline-block;width:13px;height:11px;flex:0 0 auto;background-color:var(--brand);-webkit-mask:url(../svg/icons/icon-arrow-right.svg) center/contain no-repeat;mask:url(../svg/icons/icon-arrow-right.svg) center/contain no-repeat;}

/* =========================================================================
   CTA INSCRIPTIONS (bandeau rouge)
   ========================================================================= */
.m27-cta{background:var(--brand);color:#fff;box-shadow:0 8px 10px -6px rgba(0,0,0,.1),0 20px 25px -5px rgba(0,0,0,.1);}
.m27-cta h2{color:#fff;font-size:clamp(28px,4vw,40px);}
.m27-cta .m27-pill{margin-bottom:16px;}
.m27-cta .m27-pill .elementor-heading-title{display:inline-block;background:rgba(255,255,255,.1);border-radius:12px;padding:4px 12px;font-size:11px !important;font-weight:600 !important;text-transform:uppercase;letter-spacing:.1em;color:rgba(255,255,255,.9) !important;font-family:var(--sans) !important;}
.m27-cta p{color:rgba(255,255,255,.9);font-size:18px;line-height:1.62;max-width:672px;margin:0;}
.m27-cta__media img{width:100%;border-radius:var(--r-media);transform:rotate(2deg);}
/* Colonnes CTA : centrage vertical + espace texte/image + image plaquée à droite. */
.m27-cta > .elementor-container{align-items:center;}
.m27-cta > .elementor-container > .elementor-column:first-child > .elementor-widget-wrap{padding-right:80px;}
.m27-cta > .elementor-container > .elementor-column:last-child > .elementor-widget-wrap{padding:0;overflow:visible;}
.m27-cta__media{overflow:visible;}
.m27-cta__media img{width:calc(100% + 72px);max-width:none;}
/* Rythme vertical CTA resserré. */
.m27-cta .elementor-widget{margin-block-end:0 !important;}
.m27-cta .m27-h2{margin-bottom:16px !important;}
.m27-cta .m27-btn-row{margin-top:32px !important;}
/* Bouton « Télécharger le manuel technique » : icône document à gauche + icône téléchargement à droite. */
.m27-btn--doc .elementor-button::before{content:"";display:inline-block;width:14px;height:16px;flex:0 0 auto;background-color:currentColor;-webkit-mask:url(../svg/icons/icon-doc.svg) center/contain no-repeat;mask:url(../svg/icons/icon-doc.svg) center/contain no-repeat;}
.m27-btn--doc .elementor-button::after{width:14px;height:14px;-webkit-mask-image:url(../svg/icons/icon-download.svg);mask-image:url(../svg/icons/icon-download.svg);}
/* Bouton « Télécharger le manuel technique » : fond rouge, texte + bordure blancs. */
.m27-cta .m27-btn--doc .elementor-button{background:var(--brand);color:#fff;border-color:#fff;}
.m27-cta .m27-btn--doc .elementor-button:hover{background:#fff;color:var(--brand);border-color:#fff;}

/* =========================================================================
   MONACO VOUS ACCUEILLE
   ========================================================================= */
.m27-welcome{background:#fff;}
/* Cartes accueil = section interne (grille 2 colonnes). */
.m27-welcome__cards{margin-top:0 !important;}
.m27-welcome__cards > .elementor-container{display:grid !important;grid-template-columns:repeat(2,1fr);gap:16px;align-items:stretch;}
.m27-welcome__cards .elementor-column{width:auto !important;}
.m27-wcard{background:var(--surface-card);border-radius:var(--r-card);padding:24px;box-shadow:0 1px 2px rgba(0,0,0,.05);}
.m27-wcard > .elementor-widget-wrap{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;height:100%;}
.m27-wcard .elementor-widget{width:100% !important;max-width:100%;margin:0;}
.m27-wcard .m27-wcard__icon.elementor-widget{width:40px !important;max-width:40px !important;height:40px;flex:0 0 auto;border-radius:var(--r-ctrl);display:flex !important;align-items:center;justify-content:center;margin-bottom:12px !important;background:rgba(0,102,178,.1);}
.m27-wcard--blue  .m27-wcard__icon.elementor-widget{background:rgba(0,102,178,.1);}
.m27-wcard--amber .m27-wcard__icon.elementor-widget{background:rgba(255,158,27,.1);}
.m27-wcard--red   .m27-wcard__icon.elementor-widget{background:rgba(227,6,19,.1);}
.m27-wcard--green .m27-wcard__icon.elementor-widget{background:rgba(0,136,80,.1);}
.m27-wcard__icon img{width:22px;height:22px;display:block;}
.m27-wcard__title .elementor-heading-title{font-family:var(--serif) !important;font-size:22px;font-weight:500;color:var(--ink) !important;margin:0 0 8px;line-height:1.3;}
.m27-wcard__text .elementor-widget-container,.m27-wcard__text p{font-size:14px;color:var(--ink-muted);line-height:1.62;margin:0 0 16px;}
.m27-wcard__text{flex:1 1 auto;}
.m27-wcard__link .elementor-button{background:transparent;border:0;padding:0;color:var(--brand);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;display:inline-flex;align-items:center;gap:6px;line-height:1.2;}
.m27-wcard__link .elementor-button:hover{background:transparent;color:var(--brand-dark);}
.m27-wcard__link .elementor-button::after{content:"";display:inline-block;width:13px;height:11px;flex:0 0 auto;background-color:currentColor;-webkit-mask:url(../svg/icons/icon-arrow-right.svg) center/contain no-repeat;mask:url(../svg/icons/icon-arrow-right.svg) center/contain no-repeat;}
.m27-welcome__media img{width:100%;height:100%;object-fit:cover;border-radius:var(--r-media);}
/* Titre pleine largeur (section head) puis rangée cartes (60%) + image (40%). */
.m27-welcome-head{padding-block-end:0 !important;}
.m27-welcome-head .m27-lead{max-width:760px;}
.m27-welcome{padding-block-start:40px !important;}
.m27-welcome > .elementor-container{align-items:stretch;}
.m27-welcome > .elementor-container > .elementor-column:last-child > .elementor-widget-wrap{height:100%;display:flex;}
.m27-welcome__media{height:100%;width:100%;display:flex;}
.m27-welcome__media figure,.m27-welcome__media .elementor-image{height:100%;width:100%;margin:0;}

/* =========================================================================
   SITES & APPLICATIONS UTILES
   ========================================================================= */
.m27-links{background:var(--surface-alt);}
.m27-links .m27-sechead{text-align:center;max-width:672px;margin:0 auto 40px;}
/* Cartes liens = section interne (grille 3 colonnes). */
/* Grille liens : cartes à largeur fixe, centrées (dernière rangée centrée aussi). */
.m27-links__grid > .elementor-container{display:flex !important;flex-wrap:wrap;justify-content:center;gap:40px;align-items:stretch;}
.m27-links__grid .elementor-column{flex:0 1 340px !important;width:340px !important;max-width:100%;}
.m27-link{background:var(--surface-card);padding:24px;}
.m27-link > .elementor-widget-wrap{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:16px;height:100%;}
.m27-link .elementor-widget{width:100% !important;max-width:100%;margin:0;}
.m27-link__logo{height:48px !important;display:flex !important;align-items:center;}
.m27-link__logo img{max-height:48px;width:auto;object-fit:contain;}
.m27-link__name .elementor-heading-title{font-family:var(--serif) !important;font-size:24px;font-weight:500;color:var(--ink) !important;margin:0;line-height:1.3;}
.m27-link__text .elementor-widget-container,.m27-link__text p{font-size:14px;color:var(--ink-soft);line-height:1.62;margin:0;}
.m27-link__text{flex:1 1 auto;}
.m27-link__cta .elementor-button{background:transparent;border:0;padding:0;color:var(--ink);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;display:inline-flex;align-items:center;gap:0;line-height:1.2;}
/* Libellé masqué visuellement (conservé pour l'accessibilité) : seule la flèche reste. */
.m27-link__cta .elementor-button-text{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.m27-link__cta .elementor-button:hover{background:transparent;color:var(--brand);}
.m27-link__cta .elementor-button::after{content:"";display:inline-block;width:13px;height:11px;flex:0 0 auto;background-color:var(--brand);-webkit-mask:url(../svg/icons/icon-arrow-right.svg) center/contain no-repeat;mask:url(../svg/icons/icon-arrow-right.svg) center/contain no-repeat;}

/* =========================================================================
   BANDEAU FINAL
   ========================================================================= */
/* Fond image porté par le réglage natif Elementor (background_image de la section). */
.m27-final{position:relative;background-color:var(--ink);color:#fff;text-align:center;overflow:hidden;background-size:cover !important;background-position:center !important;}
.m27-final::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#111315 0%,rgba(17,19,21,.5) 50%,rgba(17,19,21,.6) 100%);z-index:1;}
.m27-final > .elementor-container,.m27-final > .e-con-inner{position:relative;z-index:2;}
.m27-final .elementor-widget{text-align:center;}
.m27-final__eyebrow .elementor-heading-title{color:#FFDAD5 !important;font-size:12px !important;font-weight:700 !important;text-transform:uppercase;letter-spacing:.1em;font-family:var(--sans) !important;}
.m27-final h2,.m27-final .m27-h2 .elementor-heading-title{color:#fff !important;font-size:clamp(28px,4vw,40px);margin:8px 0;}
.m27-final__dates .elementor-heading-title{font-family:var(--serif) !important;font-size:28px !important;font-weight:500;letter-spacing:.03em;color:#fff !important;margin:12px 0;}
.m27-final p{color:rgba(255,255,255,.8);font-size:18px;max-width:576px;margin:0 auto;}
.m27-final .m27-btn-row{margin-top:32px;}
.m27-final .m27-btn-row .elementor-widget-wrap{justify-content:center;}

/* =========================================================================
   PIED DE PAGE
   ========================================================================= */
.m27-footer{background:#fff;padding:48px clamp(20px,5vw,var(--gut)) 48px;}
.m27-footer > .elementor-container,.m27-footer > .e-con-inner{max-width:var(--maxw) !important;margin-inline:auto;width:100%;}
.m27-footer__top{display:grid;grid-template-columns:1.4fr 1fr;gap:48px;padding-bottom:48px;border-bottom:1px solid var(--border);}
/* Marque : logo vasque à gauche, texte centré verticalement à sa droite. */
.m27-footer__brand{display:flex;align-items:center;gap:24px;}
.m27-footer__logo{flex:0 0 auto;}
.m27-footer__logo img{width:174px;height:auto;margin-bottom:0;}
.m27-footer p{font-size:14px;color:var(--ink-muted);line-height:1.62;margin:0 0 12px;}
.m27-footer strong{color:var(--ink);font-weight:600;}
/* Lignes d'infos avec icône. */
.m27-footer__line{display:flex;align-items:flex-start;gap:10px;}
.m27-footer__ico{width:15px;height:15px;flex:0 0 auto;margin-top:3px;}
.m27-footer h3{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--ink);border-bottom:1px solid var(--border);padding-bottom:12px;margin:6px 0 12px;}
.m27-footer__info a{color:var(--ink);text-decoration:none;}
.m27-footer__bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;}
.m27-footer__legal{display:flex;flex-wrap:wrap;gap:24px;}
.m27-footer__legal a{color:var(--ink-muted);font-size:14px;text-decoration:none;}
.m27-footer__copy{color:var(--ink-muted);font-size:12px;letter-spacing:.02em;}

/* ---- Bouton flottant --------------------------------------------------- */
.m27-fab{position:fixed;right:20px;bottom:20px;z-index:999;width:56px;height:56px;border-radius:50%;background:var(--brand);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(0,0,0,.2);}
.m27-fab img{width:26px;height:26px;}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
/* Les labels stampcards ne tiennent sur une ligne qu'en desktop. */
@media(min-width:768px){
  .m27-stampcard__label .elementor-widget-container,.m27-stampcard__label p{white-space:nowrap;}
}
@media(max-width:1024px){
  .m27-stats > .elementor-container{grid-template-columns:repeat(2,1fr);}
  .m27-disc-grid .elementor-grid,.m27-disc-grid{--grid-template-columns:repeat(2,1fr);}
  .m27-deleg-grid .elementor-grid,.m27-deleg-grid{--grid-template-columns:repeat(2,1fr);}
  .m27-links__grid > .elementor-container{grid-template-columns:repeat(2,1fr);}
  .m27-footer__top{grid-template-columns:1fr;gap:24px;}
}
@media(max-width:767px){
  .m27-stats > .elementor-container{grid-template-columns:1fr;}
  .m27-disc-grid .elementor-grid,.m27-disc-grid{--grid-template-columns:1fr;}
  .m27-deleg-grid .elementor-grid,.m27-deleg-grid{--grid-template-columns:1fr;}
  .m27-values > .elementor-container{grid-template-columns:repeat(3,1fr);}
  .m27-welcome__cards > .elementor-container{grid-template-columns:1fr;}
  .m27-links__grid > .elementor-container{grid-template-columns:1fr;}
}
@media(max-width:600px){
  /* CTA : image sans débordement + boutons empilés pleine largeur + padding symétrique. */
  .m27-cta__media img{width:100%;}
  .m27-cta > .elementor-container > .elementor-column:first-child > .elementor-widget-wrap{padding-inline:0;}
  .m27-cta .m27-btn-row .elementor-widget-wrap{flex-direction:column;align-items:stretch;}
  .m27-cta .m27-btn-row .m27-btn,.m27-cta .m27-btn-row .m27-btn .elementor-button{width:100%;}
  .m27-cta .m27-btn-row .elementor-button{white-space:normal;justify-content:center;text-align:center;}
  /* Footer : logo au-dessus du texte. */
  .m27-footer__brand{flex-direction:column;align-items:flex-start;gap:20px;}
  /* Valeurs « Les Jeux » : empilées pour éviter tout débordement. */
  .m27-values > .elementor-container{display:grid !important;grid-template-columns:1fr !important;}
  .m27-values > .elementor-container > .elementor-column{width:100% !important;max-width:100% !important;}
}

/* Masque le titre "Accueil" injecté par le template si présent */
.page-id-70 .entry-title,.elementor-page .page-header{display:none;}
