/* The Dot × Divi: let the client's design (site.css / home-v1.css) win over Divi's global defaults, and keep the sticky pieces working */
.et-l--header,.et-l--header .et_builder_inner_content,.et-l--footer,.et-l--footer .et_builder_inner_content{display:contents}
body:not(.et-fb) .dot-flat,body:not(.et-fb) .dot-flat .et_pb_row,body:not(.et-fb) .dot-flat .et_pb_column,body:not(.et-fb) .dot-flat .et_pb_module,
body:not(.et-fb) .dot-flat .et_pb_text_inner,body:not(.et-fb) .dot-flat .et_pb_code_inner,body:not(.et-fb) .dot-flat .et_pb_fullwidth_code{display:contents}
/* Visual Builder: keep the normal module boxes (so they can be selected) but full width and without Divi's paddings */
.et-fb .dot-flat .et_pb_row{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
.et-fb .dot-flat .et_pb_column{margin:0!important}
.dot-flat .et_pb_module{margin-bottom:0!important}
.dot-flat #intro.pblock{margin-top:clamp(28px,4vw,56px)}
.dot-flat.et_pb_section{background:transparent;padding:0}
#page-container,#et-boc,#et-main-area,#main-content,.et-l{overflow:visible}
body{font-family:var(--f-body);font-size:16px;line-height:1.6;color:var(--ink);background:var(--paper)}
body #page-container{padding-top:0!important}
.et_pb_section.dot-flat .et_pb_fullwidth_code{padding:0}
.dot-flat h1,.dot-flat h2,.dot-flat h3,.dot-flat h4,.dot-flat h5,.dot-flat h6,.top h1,.top h2,.top h3,footer h4{padding-bottom:0}
.dot-flat p,footer p,.drawer p{padding-bottom:0}
.dot-flat ul,.dot-flat ol,footer ul,.drawer ul{padding:0;margin:0;list-style:none}
.dot-flat a,.top a,.drawer a,footer a{text-decoration:none}
.dot-flat img{max-width:none}
:where(.dot-flat,.top,.drawer) button{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-transform:none;line-height:inherit}
.dot-flat input,.dot-flat select,.dot-flat textarea{font:inherit}
@media(max-width:980px){#main-content .et_pb_section.dot-flat{padding:0}}
/* WordPress adds class "page" to <body>: the theme's .page entrance animation must not turn the body into a containing block for fixed elements */
body.page,body.page-template-default{animation:none!important;transform:none!important}
body.admin-bar .top{top:32px}
@media(max-width:782px){body.admin-bar .top{top:46px}}
html body{font-size:16px;line-height:1.6;color:var(--ink)}
/* inside the Divi builder, links must not take Divi's blue (zero specificity so the design's own colours still win) */
:where(.top,.drawer,footer,.dot-flat) a{color:inherit}

/* Visual Builder: les animations d'apparition dépendent du JS (non chargé dans le builder) -> tout afficher */
.et-fb .dot-flat [data-reveal],
.et-fb .dot-flat [data-stagger]>*,
.et-fb .dot-flat .pillar,
.et-fb .dot-flat .fig2,
.et-fb .dot-flat .chead .chips span,
.et-fb .dot-flat .talk h2 .w,
.et-fb .dot-flat .closed .stamp{opacity:1!important;transform:none!important;transition:none!important}

/* l'ancien wrapper .pwrap ajoutait un padding-haut avant le premier bloc */
.dot-flat .pw-first{margin-top:clamp(28px,4vw,56px)}

/* Cartes News : titres et extraits tronqués pour que toutes les cartes aient la même hauteur */
.post h3,.post p{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.post h3{-webkit-line-clamp:4;line-clamp:4}
.post p{-webkit-line-clamp:3;line-clamp:3}
@media (min-width:761px){.news .post{min-height:400px}}

/* Divi impose une couleur aux titres (h1-h6) : on laisse le design du client décider (blanc dans le hero, etc.). Spécificité volontairement basse : toute règle de classe du thème garde la priorité. */
html body :where(.dot-flat,.drawer) :is(h1,h2,h3,h4,h5,h6):not(footer *){color:inherit}

/* Divi force "word-wrap: break-word" sur le site : on rétablit le comportement du thème (un mot seul ne se coupe pas, ex. "Landing") */
:where(.dot-flat,.top,.drawer,footer),:where(.dot-flat,.top,.drawer,footer) *{word-wrap:normal;overflow-wrap:normal;word-break:normal}

/* Cartes programmes (accueil) : les titres démarrent tous à la même hauteur, quelle que soit la longueur du titre ou de la description */
html body #view-home .prog,html body .dot-flat .prog{display:grid;grid-template-rows:auto 1fr auto;align-content:stretch}
html body #view-home .prog b,html body .dot-flat .prog b{align-self:start;margin-top:clamp(18px,3vw,40px)}

/* Articles WordPress (/news/<slug>/) : mise en forme du contenu de l'article */
html body .dot-flat .art-body p{margin:0 0 16px}
html body .dot-flat .art-body h2,html body .dot-flat .art-body h3,html body .dot-flat .art-body h4{margin:28px 0 12px;font-family:var(--f-display);text-transform:uppercase;line-height:1}
html body .dot-flat .art-body a{text-decoration:underline;text-underline-offset:3px}
html body .dot-flat .art-body img,html body .dot-flat .art-body video,html body .dot-flat .art-body iframe{max-width:100%;height:auto;border-radius:var(--r)}
html body .dot-flat .art-body ul{list-style:disc;padding-left:1.3em;margin:0 0 16px}
html body .dot-flat .art-body ol{list-style:decimal;padding-left:1.3em;margin:0 0 16px}
html body .dot-flat .art-body blockquote{margin:20px 0;padding-left:18px;border-left:3px solid var(--c);font-style:italic}
.events.no-photo{grid-template-columns:minmax(0,1fr)}
.lang a{font:600 12px/1 var(--f-body);letter-spacing:.04em;padding:8px 10px;border-radius:999px;color:var(--mute);text-decoration:none;transition:background-color 160ms ease,color 160ms ease}
.lang a[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
@media (hover:hover) and (pointer:fine){.lang a:not([aria-pressed="true"]):hover{color:var(--ink)}}
footer .legal .dev a{color:#FF8A1F;text-decoration:none;font-weight:600;transition:color .2s}
footer .legal .dev a:hover{color:#FFA94D}
.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:clamp(28px,4vw,48px)}
.pager a,.pager .cur{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--ink,#0b0b0b);color:var(--ink,#0b0b0b);font-weight:700;font-size:14px;text-decoration:none;transition:background .2s,color .2s}
.pager a:hover{background:var(--ink,#0b0b0b);color:#fff}
.pager .cur{background:var(--red,#e30613);border-color:var(--red,#e30613);color:#fff}
.pager .pg-prev,.pager .pg-next{gap:6px}
/* Couleur d'accent des programmes (le conteneur .pwrap du gabarit est aplati par Divi : on la réapplique sur chaque rangée) */
.acc-landing{--accent:var(--landing);--accent-t:var(--landing-t);--accent-ink:#fff}
.acc-camp{--accent:var(--camp);--accent-t:var(--camp-t);--accent-ink:var(--ink)}
.acc-expert{--accent:var(--expert);--accent-t:var(--expert-t);--accent-ink:#fff}
.acc-green{--accent:var(--green);--accent-t:var(--green-t);--accent-ink:#fff}
.acc-red{--accent:var(--red);--accent-t:var(--red-t);--accent-ink:#fff}
.acc-pink{--accent:var(--pink);--accent-t:var(--pink-t);--accent-ink:var(--ink)}
/* Accueil : icône de l'événement (choisie dans le back-office) au-dessus du mois, alignés sur la hauteur du jour */
.events .ev .d{align-items:flex-start}
.ev .d .mo{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:space-between;align-self:flex-start;height:.8em;margin-top:.06em;gap:0}
.ev .d .mo .ico{display:block;width:18px;height:18px;color:var(--c,var(--ink))}
.ev .d .mo .ico svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ev .d .mo small{margin:0;line-height:1}

/* hero: reduce gap under header */
#view-home .hero,.hero{padding-block:56px 72px;min-height:0}
@media (max-width:640px){#view-home .hero,.hero{padding-block:40px 48px}}

/* liens du header, du menu mobile et du footer : héritent la couleur (évite le bleu #2ea3f2 du CSS global de Divi, chargé après le nôtre en production) */
header.top nav a,header a.brand,.sheet nav a,footer a{color:inherit}

/* page d'accueil en production : le CSS global de Divi (chargé après le nôtre) remettait Open Sans, gris et fond blanc sur body ; on le reprend avec une spécificité plus haute */
html body{font-family:var(--f-body);font-size:16px;line-height:1.6;color:var(--ink);background-color:var(--paper)}
