/*
Theme Name: Alcoolympiades
Theme URI: https://alcoolympiades.fr
Author: Les orgas
Description: Thème du site des Alcoolympiades. Thème « blocs » : tout se modifie dans l'éditeur (Apparence → Éditeur), rien n'est verrouillé. Les chiffres de l'édition (date, places, cagnotte, repères) se règlent dans Apparence → Édition.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alcoolympiades
*/

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
body{-webkit-font-smoothing:antialiased}
/* Le nom ne se coupe jamais : pas de césure, pas de coupure forcée de mot */
h1,h2,h3,h4,h5,h6,p,li,.wp-block-site-title{hyphens:manual;-webkit-hyphens:manual;overflow-wrap:normal;word-break:normal}
.nom{white-space:nowrap}
img{max-width:100%;height:auto}
:where(.wp-site-blocks)>*{margin-block-start:0}
main.wp-block-group{margin-top:0}
.wp-block-post-content>*:first-child{margin-block-start:0}
.wp-block-post-content>.alignfull{margin-block-start:0}

/* ---------- Styles de paragraphe ---------- */
.is-style-surtitre{font-size:14px!important;font-weight:600;letter-spacing:.3em;text-transform:uppercase;color:var(--wp--preset--color--rouge)}
.is-style-note{font-size:14px;color:#5E5E59}
.is-style-alerte{font-size:14px;font-weight:600;color:var(--wp--preset--color--rouge)}
.is-style-chapo{font-size:clamp(19px,2vw,22px);line-height:1.45}
.is-style-chiffre{font-family:var(--wp--preset--font-family--titre);font-weight:800;text-transform:uppercase;line-height:1;font-size:clamp(40px,5vw,56px)}

/* ---------- Titre « nom » : une seule ligne, taille adaptée à l'écran ---------- */
.is-style-nom{white-space:nowrap;font-size:min(84px,calc((100vw - 48px) / 13.6))}

/* ---------- Sections (groupes) ---------- */
.is-style-braise{background:radial-gradient(ellipse at 30% 30%,#2A1212 0%,#0D0D0D 58%,#050505 100%);color:var(--wp--preset--color--papier);position:relative}
.is-style-braise::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;background-image:repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 1px,transparent 1px 4px)}
.is-style-braise>*{position:relative;z-index:1}
.is-style-feu{background:radial-gradient(ellipse at 70% 40%,#E83A2E 0%,#D7261E 40%,#9E1B15 100%);color:var(--wp--preset--color--noir)}
.is-style-carte{background:#fff;border:2px solid var(--wp--preset--color--noir);padding:clamp(20px,3vw,28px)}
.is-style-carte-sombre{background:var(--wp--preset--color--noir);color:var(--wp--preset--color--papier);padding:26px;border-left:8px solid var(--wp--preset--color--rouge)}
.is-style-bloc{border-top:4px solid currentColor;padding-top:14px}
.is-style-bloc-rouge{border-top:4px solid var(--wp--preset--color--rouge);padding-top:14px}
.is-style-cadre{border:2px solid var(--wp--preset--color--gris-fonce);padding:26px}
.is-style-cadre-rouge{border:2px solid var(--wp--preset--color--rouge);background:rgba(215,38,30,.08);padding:26px}
.is-style-bloc>*,.is-style-bloc-rouge>*{margin-block-start:0}
.is-style-bloc>*+*,.is-style-bloc-rouge>*+*{margin-block-start:10px}
/* Texte secondaire adouci sur fond sombre */
.is-style-braise p:not([class*="-color"]):not(.is-style-surtitre):not(.is-style-alerte),
.has-noir-background-color p:not([class*="-color"]):not(.is-style-surtitre):not(.is-style-alerte){color:var(--wp--preset--color--gris-clair)}
.is-style-braise .is-style-note,.has-noir-background-color .is-style-note{color:var(--wp--preset--color--gris)}

/* ---------- Boutons ---------- */
.wp-block-button.is-style-noir .wp-block-button__link{background:var(--wp--preset--color--noir);color:var(--wp--preset--color--papier)}
.wp-block-button.is-style-noir .wp-block-button__link:hover{background:#2b2b2a}
.wp-block-button.is-style-ligne .wp-block-button__link{background:transparent;color:inherit;box-shadow:inset 0 0 0 2px currentColor}
.wp-block-button.is-style-ligne .wp-block-button__link:hover{background:rgba(127,127,127,.15);color:inherit}
.wp-block-button__link{min-height:48px;display:inline-flex;align-items:center;justify-content:center}

/* ---------- Listes « étapes » et chiffres ---------- */
.is-style-etape{border-top:4px solid var(--wp--preset--color--noir);padding-top:16px}
.is-style-etape:first-child{border-color:var(--wp--preset--color--rouge)}
.is-style-chiffre-bande{border-left:2px solid var(--wp--preset--color--gris-fonce);padding:4px 24px}
.is-style-chiffre-bande>*{margin:0}
.is-style-chiffre-bande>*+*{margin-top:6px}
.legende{font-weight:600;letter-spacing:.2em;text-transform:uppercase;font-size:13px}

/* ---------- Article de règlement ---------- */
.is-style-article{border-bottom:1px solid var(--wp--preset--color--ligne);padding:22px 0}
.is-style-article>.wp-block-column:first-child{flex-basis:150px!important;flex-grow:0!important}
@media (max-width:781px){.is-style-article{gap:6px}}

/* ---------- FAQ ---------- */
.wp-block-details summary{cursor:pointer;font-weight:600;font-size:18px}
.wp-block-details>p{max-width:70ch;margin-top:10px}

/* ---------- Pastille orgas ---------- */
.pastille{flex:none;width:64px;height:64px;border-radius:50%;background:var(--wp--preset--color--noir);color:var(--wp--preset--color--papier);display:flex;align-items:center;justify-content:center;font-family:var(--wp--preset--font-family--titre);font-weight:800;font-size:20px;margin:0!important}

/* ---------- En-tête ---------- */
.site-entete{gap:14px 28px}
.site-entete .wp-block-site-logo img{height:46px;width:auto}
.site-entete .marque{margin-right:auto}
.site-entete .wp-block-navigation .current-menu-item>a,.site-entete .wp-block-navigation a[aria-current="page"]{color:var(--wp--preset--color--rouge)}
.site-entete .wp-block-navigation a:hover{color:var(--wp--preset--color--rouge)}
.wp-block-navigation__responsive-container.is-menu-open{background:var(--wp--preset--color--noir)!important;color:var(--wp--preset--color--papier)!important}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{font-family:var(--wp--preset--font-family--titre);text-transform:uppercase;font-size:22px;gap:18px}
@media (max-width:599px){
}

/* ---------- Pied de page ---------- */
.site-pied{border-top:1px solid var(--wp--preset--color--gris-fonce)}
.site-pied p{margin:0}
.site-pied a{text-decoration:none}

/* ---------- Bloc compte à rebours ---------- */
.alco-compte{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.alco-compte>div{min-width:110px;border:2px solid currentColor;padding:14px 16px;text-align:center}
.alco-compte .n{font-family:var(--wp--preset--font-family--titre);font-weight:800;font-size:clamp(32px,4vw,44px);line-height:1;display:block}
.alco-compte small{display:block;font-size:13px;letter-spacing:.2em;text-transform:uppercase;margin-top:6px}
.alco-compte.is-fini{font-family:var(--wp--preset--font-family--titre);font-weight:800;text-transform:uppercase;font-size:28px}
.alco-compte.a-gauche{justify-content:flex-start}

/* ---------- Bloc jauge / repères de prix ---------- */
.alco-prix{display:flex;flex-direction:column;gap:14px}
.alco-prix .reperes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:10px}
.alco-prix .reperes>div{border-top:3px solid currentColor;padding-top:10px}
.alco-prix .reperes .v{font-family:var(--wp--preset--font-family--titre);font-weight:800;text-transform:uppercase;font-size:clamp(22px,2.6vw,30px);line-height:1.05;display:block;margin-top:4px}
.alco-prix .reperes .v{white-space:nowrap}
.alco-prix .reperes .v em{font-style:normal;font-size:.55em;vertical-align:middle}
.alco-prix .reperes small{display:block;font-size:14px;line-height:1.4;margin-top:4px;opacity:.85}
.alco-prix .su{font-size:14px;font-weight:600;letter-spacing:.3em;text-transform:uppercase;color:var(--wp--preset--color--rouge)}
.alco-prix .etat{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px}
.alco-prix .etat .v{font-family:var(--wp--preset--font-family--titre);font-weight:800;font-size:28px}
.alco-prix .zones{display:grid;font-size:13px;font-weight:600;line-height:1.25}
.alco-prix .zones span{border-left:2px solid currentColor;border-top:2px solid currentColor;padding:6px 8px 8px;min-width:0;margin-left:-1px}
.alco-prix .zones span:first-child{margin-left:0}
.alco-prix .zones span:last-child{border-right:2px solid currentColor}
.alco-prix .zones .z1{opacity:.65}
.alco-prix .zones .z2{color:var(--wp--preset--color--rouge);border-color:var(--wp--preset--color--rouge)}
.alco-prix .jauge{position:relative;height:14px;background:rgba(140,140,134,.3)}
.alco-prix .jauge i{position:absolute;left:0;top:0;bottom:0;background:var(--wp--preset--color--rouge)}
.alco-prix .jauge b{position:absolute;top:-5px;bottom:-5px;width:2px;background:currentColor;margin-left:-1px}
.alco-prix .echelle{position:relative;height:18px;font-size:13px;opacity:.8}
.alco-prix .echelle span{position:absolute;top:0;white-space:nowrap}
.alco-prix p{margin:0}
.alco-prix .alerte{font-size:14px;font-weight:600;color:var(--wp--preset--color--rouge)}
.alco-prix .pnote{font-size:14px;opacity:.75}
@media (max-width:599px){
  .alco-prix .reperes{grid-template-columns:1fr;gap:12px}
  .alco-prix .zones{font-size:11px}
  .alco-prix .zones span{padding:5px 5px 6px}
}

/* ---------- Bloc inscription (emplacement) ---------- */
.alco-inscription-vide{border:2px dashed currentColor;padding:24px;text-align:center}
.alco-inscription-vide p{margin:0}
.alco-inscription-vide p+p{margin-top:8px}

/* ---------- Mobile ---------- */
@media (max-width:781px){
  .wp-block-columns{gap:32px!important}
}
.email{overflow-wrap:anywhere;font-weight:600}
.site-pied p{overflow-wrap:anywhere}
mark{background:none;color:inherit}
@media (max-width:599px){
  .site-entete{flex-wrap:nowrap!important;gap:8px!important}
  .site-entete .wp-block-site-title{font-size:12px!important}
  .site-entete .wp-block-site-logo{flex:none}
  .site-entete .wp-block-site-logo img{height:34px}
  .site-entete .marque{gap:8px!important;flex:0 0 auto}
  .site-entete .wp-block-buttons{flex:none;order:2}
  .site-entete .wp-block-navigation{order:3;flex:none}
  .site-entete .bouton-entete .wp-block-button__link{padding:9px 12px!important;font-size:12px!important;min-height:36px}
  .alco-compte{gap:8px}
  .alco-compte>div{min-width:0;flex:1 1 0;padding:12px 6px}
}
@media (max-width:380px){.site-entete .wp-block-site-title{font-size:11px!important}.site-entete .wp-block-site-logo img{height:30px}}
/* Tablette : marque + bouton sur la 1re ligne, menu sur la 2e */
@media (min-width:600px) and (max-width:1080px){
  .site-entete .marque{order:1}
  .site-entete .wp-block-buttons{order:2}
  .site-entete .wp-block-navigation{order:3;flex:1 0 100%}
  .site-entete .wp-block-navigation__container{justify-content:flex-start!important;gap:10px 24px!important}
}
.is-style-chiffre-bande .is-style-chiffre{white-space:nowrap;font-size:clamp(36px,4vw,56px)}
.art-num.is-style-chiffre{font-size:22px;white-space:nowrap;margin:0}

/* ---------- Bloc palmarès ---------- */
.alco-palmares{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:var(--wp--preset--spacing--l)}
.alco-palmares .carte-edition>*{margin:0}
.alco-palmares .carte-edition>*+*{margin-top:12px}
.alco-palmares ul{padding-left:18px}
.alco-palmares li{margin-bottom:6px}
.alco-palmares small{opacity:.75}
.alco-palmares .a-venir li{color:var(--wp--preset--color--gris)}
