/*
Theme Name: Comète Live
Theme URI: https://cometelive.fr
Author: Comète Live
Description: Thème bloc sur mesure pour Comète Live — prestataire technique vidéo, son, lumière et live streaming. Tout le contenu est en blocs natifs, modifiable dans l’éditeur.
Version: 1.0.14
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comete-live
*/

/* Registre relevé sur la référence : 2 familles sans-serif (titres droits gras semi-condensés,
   sans italique — demande client), un seul accent rouge (celui du logo), fond blanc / gris #F8F8F8,
   bandes pleine largeur, angles 10-12 px + boutons pilule, hero et grilles centrés.
   Règle de conversion : les classes de la maquette sont posées sur les blocs (className).
   Le CSS des blocs est imprimé APRÈS cette feuille : toute surcharge d'un style de bloc est
   donc écrite plus spécifique (ex. .wp-block-image.hero-photo img), jamais seulement plus tard. */

:root {
  --rouge: #E00B1B;
  --rouge-fonce: #B80916;
  --noir: #000000;
  --carte: #1B1B1B;
  --blanc: #FFFFFF;
  --gris: #F8F8F8;
  --texte: #5B667B;
  --trait: #E7E8EB;
  --titre: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --corps: Manrope, system-ui, sans-serif;
  --wrap: 1170px;
  --rayon: 10px;
  --ico-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6.5A2.5 2.5 0 0 1 4.5 4h15A2.5 2.5 0 0 1 22 6.5v11a2.5 2.5 0 0 1-2.5 2.5h-15A2.5 2.5 0 0 1 2 17.5v-11zm2.3-.5L12 11.6 19.7 6H4.3zM20 7.9l-7.4 5.4a1 1 0 0 1-1.2 0L4 7.9v9.6c0 .3.2.5.5.5h15c.3 0 .5-.2.5-.5V7.9z'/%3E%3C/svg%3E");
  --ico-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.2 2.5c.5-.2 1.1 0 1.4.5l1.8 3.4c.3.5.2 1.1-.2 1.5L8.8 9.2c1.1 2.4 3.1 4.4 5.5 5.5l1.3-1.4c.4-.4 1-.5 1.5-.2l3.4 1.8c.5.3.7.9.5 1.4l-.9 2.6c-.3.8-1.1 1.4-2 1.3C10.4 19.5 4.5 13.6 3.8 5.9c-.1-.9.4-1.7 1.3-2l2.1-1.4z'/%3E%3C/svg%3E");
  --ico-lieu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  --ico-devis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M9 2h6a1 1 0 0 1 1 1v1h2.5A1.5 1.5 0 0 1 20 5.5v15a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 20.5v-15A1.5 1.5 0 0 1 5.5 4H8V3a1 1 0 0 1 1-1zm1 2v2h4V4h-4zM8 11h8v2H8v-2zm0 4h6v2H8v-2z'/%3E%3C/svg%3E");
  --ico-bulle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H10l-5.2 4.2A.5.5 0 0 1 4 20.8V17a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
  --ico-reglages: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2h2v6h2v3H7v11H5V11H3V8h2V2zm6 0h2v12h2v3h-2v5h-2v-5H9v-3h2V2zm6 0h2v3h2v3h-2v14h-2V8h-2V5h2V2z'/%3E%3C/svg%3E");
  --ico-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 10.5V7a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1v-3.5l4.3 3.4a.4.4 0 0 0 .7-.3V7.4a.4.4 0 0 0-.7-.3L17 10.5z'/%3E%3C/svg%3E");
  --ico-lecture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4 3h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm6 5v8l6-4-6-4z'/%3E%3C/svg%3E");
  --ico-casque: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a9 9 0 0 0-9 9v6a3 3 0 0 0 3 3h2v-8H5v-1a7 7 0 0 1 14 0v1h-3v8h2.9a3 3 0 0 1-2.9 2h-3v2h3a5 5 0 0 0 5-5v-8a9 9 0 0 0-9-9z'/%3E%3C/svg%3E");
  --ico-fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 16px/1.5 var(--corps); color: var(--texte); background: var(--blanc); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; } /* height:auto obligatoire : sinon l'attribut height des blocs image l'emporte sur aspect-ratio */
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* Espacement automatique de Gutenberg : coupé à la source dans theme.json (blockGap 0px),
   filet de sécurité ici À SPÉCIFICITÉ NULLE — jamais .wp-block-group > * (écraserait nos marges). */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
.screen-reader-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; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.bande { padding: 100px 0; }
.bande.grise { background: var(--gris); }
.bande.noire { background: var(--noir); }

.titre { font: 700 46px/1.12 var(--titre); color: var(--noir); letter-spacing: .005em; hyphens: none; text-wrap: balance; }
.sombre .titre { color: var(--blanc); }
.bande .tete { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.tete p { margin-top: 20px; font-size: 18px; line-height: 1.55; }
.sombre .tete p { color: rgba(255, 255, 255, .78); }

/* Boutons : la classe du bloc atterrit sur le conteneur div.wp-block-button, le style vise le lien. */
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 30px; border-radius: 999px; background: var(--rouge); color: var(--blanc); font: 600 17px/1 var(--corps); border: 1.5px solid var(--rouge); text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.wp-block-button .wp-block-button__link:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); color: var(--blanc); }
.wp-block-button.btn-ghost .wp-block-button__link { background: transparent; border-color: rgba(255, 255, 255, .85); }
.wp-block-button.btn-ghost .wp-block-button__link:hover { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.wp-block-buttons { gap: 16px; }

.lien { line-height: 1; }
.lien a { display: inline-flex; align-items: center; gap: 8px; color: var(--rouge); font: 700 15.5px/1 var(--corps); }
.lien a::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--ico-fleche) center / contain no-repeat; mask: var(--ico-fleche) center / contain no-repeat; transition: transform .2s; }
.lien a:hover::after { transform: translateX(3px); }

/* Icônes : masques CSS (un SVG inline n'est pas un bloc natif) */
.ico-mail { --ico: var(--ico-mail); } .ico-tel { --ico: var(--ico-tel); } .ico-lieu { --ico: var(--ico-lieu); } .ico-devis { --ico: var(--ico-devis); }
.ico-bulle { --ico: var(--ico-bulle); } .ico-reglages { --ico: var(--ico-reglages); } .ico-camera { --ico: var(--ico-camera); }
.ico-lecture { --ico: var(--ico-lecture); } .ico-casque { --ico: var(--ico-casque); }

/* ---------- En-tête ---------- */
.entete { position: absolute; inset: 0 0 auto; z-index: 50; color: var(--blanc); transition: background .25s; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.wp-block-site-logo.logo a { display: block; }
.wp-block-site-logo.logo img { width: 205px; height: auto; }
.wp-block-navigation.menu { margin-left: auto; color: var(--blanc); }
.wp-block-navigation.menu .wp-block-navigation__container { gap: 44px; }
.wp-block-navigation.menu .wp-block-navigation-item__content { position: relative; display: block; font: 600 18px/1 var(--corps); padding: 10px 0; color: var(--blanc); }
.wp-block-navigation.menu .current-menu-item > .wp-block-navigation-item__content::after,
.wp-block-navigation.menu .wp-block-navigation-item__content:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--rouge); }
.wp-block-navigation.menu .wp-block-navigation__responsive-container-open,
.wp-block-navigation.menu .wp-block-navigation__responsive-container-close { color: var(--blanc); }
.wp-block-navigation.menu .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
/* Panneau mobile : le CSS du bloc pose un fond blanc, imprimé après cette feuille — seul !important justifié du thème */
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--noir) !important; color: var(--blanc) !important; padding: 22px 24px 32px; }
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; align-items: stretch; }
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { gap: 0; align-items: stretch; width: 100%; }
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { width: 100%; padding: 18px 0; text-align: center; font-size: 20px; }
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content::after,
.wp-block-navigation.menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover::after { left: calc(50% - 22px); right: auto; width: 44px; bottom: 9px; }
body.colle .entete { position: fixed; background: rgba(0, 0, 0, .74); backdrop-filter: blur(6px); }
body.colle .nav { height: 78px; }
body.admin-bar.colle .entete { top: 32px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 720px; display: grid; place-items: center; text-align: center; color: var(--blanc); overflow: hidden; background: #111; }
.wp-block-image.hero-photo { position: absolute; inset: 0; margin: 0; }
.wp-block-image.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 20, .62) 0%, rgba(16, 18, 32, .45) 50%, rgba(8, 10, 16, .78) 100%); }
.hero-contenu { position: relative; z-index: 1; padding: 120px 0 60px; }
.hero h1 { font: 700 72px/1.04 var(--titre); letter-spacing: .005em; hyphens: none; text-wrap: balance; max-width: 980px; margin-inline: auto; color: var(--blanc); }
.hero .hero-sous { margin: 26px auto 0; max-width: 640px; font: 400 22px/1.45 var(--corps); color: rgba(255, 255, 255, .9); }
.hero .hero-actions { justify-content: center; flex-wrap: wrap; margin-top: 42px; }

/* ---------- Présentation : une photo ---------- */
.presentation { display: grid; grid-template-columns: 1.05fr 1fr; gap: 96px; align-items: center; }
.wp-block-image.presentation-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; border-radius: var(--rayon); }
.presentation-texte p { margin-top: 26px; font-size: 16.5px; line-height: 1.6; }
.presentation-texte p + p { margin-top: 16px; }
.presentation-texte .wp-block-buttons { margin-top: 36px; }

/* ---------- Prestations : grille 2 x 2 ---------- */
.prestations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.prestation { display: grid; grid-template-columns: 44% 1fr; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: 0 10px 34px rgba(0, 0, 0, .07); }
.wp-block-image.prestation-photo { height: 100%; }
.wp-block-image.prestation-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.prestation-corps { padding: 34px 32px 30px; display: flex; flex-direction: column; }
.prestation h3 { font: 700 28px/1.15 var(--titre); color: var(--noir); }
.prestation p { margin-top: 14px; font-size: 15.5px; line-height: 1.5; }
.prestation .lien { margin-top: auto; padding-top: 22px; line-height: 1; }

/* ---------- Événements : cartes photo pleine hauteur ---------- */
.evenements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.evenement { position: relative; height: 470px; border-radius: 12px; overflow: hidden; color: var(--blanc); background: var(--carte); }
.wp-block-image.evenement-photo { position: absolute; inset: 0; margin: 0; }
.wp-block-image.evenement-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.wp-block-image.evenement-photo.bas img { object-position: 50% 85%; }
.evenement:hover .wp-block-image.evenement-photo img { transform: scale(1.04); }
.evenement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .88) 100%); }
.evenement-corps { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 30px 30px 32px; }
.evenement h3 { font: 400 27px/1.2 var(--corps); letter-spacing: -.01em; color: var(--blanc); }
.evenement p { margin-top: 12px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .85); }

/* ---------- Étapes / engagements ---------- */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.etape { text-align: center; }
.etape::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto; background: var(--rouge); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.etape h3.wp-block-heading { margin-top: 24px; font: 700 25px/1.2 var(--titre); color: var(--noir); }
.etape p { margin-top: 12px; font-size: 15.5px; line-height: 1.5; }

/* ---------- Appel à l'action ---------- */
.appel { position: relative; overflow: hidden; color: var(--blanc); text-align: center; padding: 130px 0; background: #0b0b10; }
.wp-block-image.appel-photo { position: absolute; inset: 0; margin: 0; }
.wp-block-image.appel-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.appel::after { content: ""; position: absolute; inset: 0; background: rgba(6, 8, 14, .66); }
.appel .wrap { position: relative; z-index: 1; }
.appel .titre { font-size: 60px; }
.appel p { margin: 22px auto 0; max-width: 560px; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.appel .wp-block-buttons { justify-content: center; margin-top: 40px; }
.appel .courriel { margin-top: 22px; font-weight: 600; font-size: 16px; color: var(--blanc); }

/* ---------- Pied de page ---------- */
.pied { background: var(--noir); color: var(--blanc); padding: 84px 0 36px; }
.pied-grille { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 44px; align-items: start; }   /* colonnes à la taille de leur contenu, espace libre réparti également */
.wp-block-site-logo.pied-logo img { width: 210px; height: auto; }
.pied-marque p { margin-top: 26px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .75); max-width: 300px; }
.pied-marque .pied-lieu { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: var(--blanc); font-weight: 600; }
.pied-lieu::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 1px; background: var(--rouge); -webkit-mask: var(--ico-lieu) center / contain no-repeat; mask: var(--ico-lieu) center / contain no-repeat; }
.pied-grille .pied-carte { width: 360px; max-width: 100%; aspect-ratio: 320 / 191; margin: -14px 0 0 auto; background: url("assets/img/carte-montreuil.svg") center / contain no-repeat; }
.pied h3 { font: 700 22px/1.2 var(--titre); margin-bottom: 22px; color: var(--blanc); }
.pied-contact .courriel a { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; }
.pied-contact .courriel a::before { content: ""; width: 20px; height: 20px; flex: none; background: var(--rouge); -webkit-mask: var(--ico-mail) center / contain no-repeat; mask: var(--ico-mail) center / contain no-repeat; }
.pied-contact .telephone { margin-top: 14px; }
.pied-contact .telephone a { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; }
.pied-contact .telephone a::before { content: ""; width: 20px; height: 20px; flex: none; background: var(--rouge); -webkit-mask: var(--ico-tel) center / contain no-repeat; mask: var(--ico-tel) center / contain no-repeat; }
.pied-contact .wp-block-buttons { margin-top: 24px; }
.pied-contact .wp-block-button .wp-block-button__link { height: 42px; font-size: 16px; }
.pied .pied-bas { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 70px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: rgba(255, 255, 255, .7); }
.pied-legal { display: flex; gap: 28px; }

/* ---------- Pages internes ---------- */
.hero-page { min-height: 470px; }
.hero-page.court { min-height: 400px; }
.hero-page .hero-contenu { padding: 130px 0 64px; }
.hero-page h1 { font-size: 62px; }
.hero-page .hero-sous { font-size: 20px; }
.bande.serree { padding: 44px 0 0; }
.sombre .presentation-texte p { color: rgba(255, 255, 255, .8); }

.ancres { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.ancres p { display: flex; }
.ancres a { display: inline-flex; align-items: center; height: 42px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--noir); color: var(--noir); font: 600 16px/1 var(--corps); transition: background .2s, color .2s; }
.ancres a:hover { background: var(--noir); color: var(--blanc); }

.detail-bande { padding: 88px 0; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 92px; align-items: center; }
.detail.inverse .detail-photo { order: 2; }
.wp-block-image.detail-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.detail-texte p { margin-top: 24px; font-size: 16.5px; line-height: 1.6; }
.detail-texte .liste { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.liste li { position: relative; padding-left: 26px; color: var(--noir); font-weight: 600; font-size: 16px; line-height: 1.4; }
.liste li::before { content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); }
.detail-texte .lien { margin-top: 30px; font-size: 16px; line-height: 1.2; }

.duo-carte { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.duo-carte .wp-block-buttons { margin-top: 34px; }
.carte-grande { width: 100%; max-width: 520px; aspect-ratio: 320 / 191; margin-left: auto; background: url("assets/img/carte-montreuil.svg") center / contain no-repeat; }

.projets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 30px; }
.wp-block-image.projet-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.projet .cat { margin-top: 20px; color: var(--rouge); font: 700 14px/1 var(--corps); }
.projet h3 { margin-top: 10px; font: 700 26px/1.15 var(--titre); color: var(--noir); }
.projet p:last-child { margin-top: 10px; font-size: 15.5px; line-height: 1.5; }

.contact-grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.contact-infos .info { margin-top: 44px; }
.info h3 { display: flex; align-items: center; gap: 16px; font: 700 26px/1.2 var(--titre); color: var(--blanc); }
.info h3::before { content: ""; width: 26px; height: 26px; flex: none; background: var(--rouge); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.info p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .82); max-width: 400px; }
.info p a { color: var(--blanc); border-bottom: 1px solid rgba(255, 255, 255, .35); }

/* Formulaire : Contact Form 7 posé par core/shortcode, gabarit aux classes de la maquette */
.formulaire { background: var(--blanc); border-radius: 16px; padding: 40px 44px; color: var(--noir); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.champ.large { grid-column: 1 / -1; }
.champ label { display: block; margin-bottom: 10px; font: 600 15.5px/1.2 var(--corps); }
.champ label i { color: var(--rouge); font-style: normal; }
.champ .wpcf7-form-control-wrap { display: block; }
.champ input, .champ textarea { display: block; width: 100%; height: 46px; padding: 0 14px; border: 1px solid #E6E8EC; border-radius: 6px; background: var(--gris); font: 400 16px var(--corps); color: var(--noir); }
.champ textarea { display: inline-block; vertical-align: baseline; height: 150px; padding: 12px 14px; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--rouge); }
.formulaire .wpcf7-submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin-top: 28px; padding: 0 30px; border: 1.5px solid var(--rouge); border-radius: 999px; background: var(--rouge); color: var(--blanc); font: 600 17px/1 var(--corps); cursor: pointer; transition: background .2s, border-color .2s; }
.formulaire .wpcf7-submit:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.formulaire .wpcf7-spinner { display: none; }
.formulaire .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: var(--rouge); font-size: 13.5px; }
.formulaire .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--trait); border-radius: 8px; font-size: 14.5px; color: var(--noir); }
.formulaire .wpcf7 form.sent .wpcf7-response-output { border-color: #1E9E5A; }
.formulaire .wpcf7 form.invalid .wpcf7-response-output, .formulaire .wpcf7 form.failed .wpcf7-response-output { border-color: var(--rouge); }
.formulaire .wpcf7 form.init .wpcf7-response-output, .formulaire .wpcf7 form.resetting .wpcf7-response-output, .formulaire .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.formulaire .mention { margin-top: 14px; font-size: 13.5px; color: var(--texte); text-align: center; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wp-block-navigation.menu .wp-block-navigation__container { gap: 30px; }
  .presentation { gap: 56px; }
  .prestations { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-grille .pied-carte { width: 100%; max-width: 360px; margin-left: 0; }
}
@media (max-width: 900px) {
  .nav { height: 72px; }
  .wp-block-site-logo.logo img { width: 170px; }
  .wp-block-navigation.menu .wp-block-navigation__container { gap: 22px; }
  .wp-block-navigation.menu .wp-block-navigation-item__content { font-size: 16px; }
  .bande { padding: 72px 0; }
  .hero { min-height: 640px; }
  .hero h1 { font-size: 46px; }
  .hero .hero-sous { font-size: 18px; }
  .titre { font-size: 36px; }
  .bande .tete { margin-bottom: 44px; }
  .presentation { grid-template-columns: 1fr; gap: 40px; }
  .evenements { grid-template-columns: 1fr; }
  .evenement { height: 400px; }
  .appel { padding: 96px 0; }
  .appel .titre { font-size: 42px; }
  .hero-page { min-height: 400px; }
  .hero-page h1 { font-size: 42px; }
  .hero-page .hero-sous { font-size: 17px; }
  .detail-bande { padding: 64px 0; }
  .detail, .duo-carte, .contact-grille { grid-template-columns: 1fr; gap: 40px; }
  .detail.inverse .detail-photo { order: 0; }
  .carte-grande { margin: 0 auto; }
  .projets { grid-template-columns: 1fr 1fr; }
  .formulaire { padding: 30px 22px; }
}
@media (max-width: 782px) { body.admin-bar.colle .entete { top: 46px; } }
@media (max-width: 600px) {
  .prestation { grid-template-columns: 1fr; }
  .wp-block-image.prestation-photo { height: auto; }
  .wp-block-image.prestation-photo img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .etapes { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; gap: 40px; }
  .pied .pied-bas { flex-direction: column; }
  .projets { grid-template-columns: 1fr; }
  .champs { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 40px; }
  .hero.hero-page h1 { font-size: 42px; }
  .appel .titre { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
.wp-block-buttons.centre { justify-content: center; }

/* Pages légales */
.legal { max-width: 820px; }
.legal h2.wp-block-heading { margin-top: 52px; font: 700 28px/1.2 var(--titre); color: var(--noir); }
.legal > .wp-block-heading:first-child { margin-top: 0; }
.legal p, .legal .wp-block-list { margin-top: 14px; font-size: 16.5px; line-height: 1.65; }
.legal .wp-block-list { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--noir); font-weight: 700; }
.legal a { color: var(--rouge); text-decoration: underline; text-underline-offset: 3px; }
.legal p.maj { margin-top: 52px; font-size: 14px; color: #8A93A3; }
@media (max-width: 600px) { .legal h2.wp-block-heading { margin-top: 40px; font-size: 24px; } }

/* Liens email et téléphone protégés : masqués le temps que app.js les reconstitue (sans JavaScript, le repli vers Contact reste visible). */
.js .cl-protege:not(.ok) { visibility: hidden; }

/* Formulaire : champ piège hors écran, case de vérification Cloudflare Turnstile (vide tant que l'intégration n'est pas configurée). */
.cl-piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .verif { margin-top: 24px; }
.formulaire .verif:empty { display: none; }
