/* =========================================================
   LES ORAGES - CSS UTILITAIRES ET COMPOSANTS
   ========================================================= */


/* =========================================================
   1. RÈGLES GLOBALES
   ========================================================= */

html {
	scroll-behavior: smooth;
}


/* =========================================================
   2. UTILITAIRES
   ========================================================= */

/* Liens soulignés dans un conteneur */
.souligne a {
	text-decoration: underline;
}

/* Texte dégradé */
.degrade-texte {
	background: linear-gradient(to right, #116baa 0%, #87c8e0 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}


/* =========================================================
   3. VISIBILITÉ RESPONSIVE
   ========================================================= */

/* Front uniquement */
.wp-site-blocks .show-mobile-only {
	display: none;
}

.wp-site-blocks .hide-mobile {
	display: block;
}

/* Sécurité éditeur : on garde tout visible dans le back */
.editor-styles-wrapper .show-mobile-only,
.editor-styles-wrapper .hide-mobile {
	display: block !important;
}


/* =========================================================
   4. FIL D’ARIANE
   ========================================================= */

p.fil-ariane {
	color: #666;
	font-size: 0.85rem;
}

p.fil-ariane a {
	color: #000 !important;
	text-decoration: none;
}

p.fil-ariane a:hover {
	text-decoration: underline;
}


/* =========================================================
   5. HEADER / NAVIGATION
   ========================================================= */

.wp-block-navigation .wp-block-ollie-mega-menu .wp-block-navigation-item__content.wp-block-ollie-mega-menu__toggle.wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary) !important;
}

.wp-block-ollie-mega-menu__toggle-icon {
	width: 0.7em !important;
}

.wp-container-12 {
    z-index: 100;
}


/* =========================================================
   6. BLOC CITATION
   ========================================================= */

.wp-block-quote,
.wp-block-quote.is-style-plain,
.wp-block-quote.is-style-default {
	border: 0 !important;
	border-left: 0 !important;
	padding: 0 !important;
}

.wp-block-quote {
	position: relative;
	margin: var(--wp--preset--spacing--medium) 0;
	font-family: var(--wp--preset--font-family--serif, Georgia, "Times New Roman", serif);
	font-weight: 400;
	line-height: var(--wp--custom--line-height--body, 1.5);
}

.wp-block-quote::before {
	content: "«";
	display: block;
	margin-bottom: 0.25em;
	font-family: inherit;
	font-size: 2.4em;
	line-height: 1;
	color: currentColor;
	opacity: 0.25;
}

.wp-block-quote.has-text-align-center::before {
	text-align: center;
}

.wp-block-quote.is-style-large {
	font-size: 1.05em;
}

.wp-block-quote.is-style-large::before {
	font-size: 2.8em;
}

.wp-block-quote p {
	margin: 0.25em 0 0;
}

.wp-block-quote cite {
	display: block;
	margin-top: 0.5em;
	font-size: var(--wp--preset--font-size--small) !important;
	color: var(--wp--preset--color--primary);
}


/* =========================================================
   7. TIMELINE GUTENBERG
   Groupe parent : .timeline
   Enfants : groupes contenant un <p class="timeline-date">
   ========================================================= */

.wp-block-group.timeline {
  --timeline-spacing: 50px;
  --timeline-radius: 4px;
  --timeline-date-width: 120px;
  --timeline-left-gap: 60px; /* nouvel espace à gauche */
  --timeline-dot-border: 4px;
  --timeline-dot-size: 11px;
  --timeline-line-width: 4px;
  --timeline-primary: var(--wp--preset--color--primary, #4298C3);

  border-left: var(--timeline-line-width) solid var(--timeline-primary);
  border-bottom-right-radius: var(--timeline-radius);
  border-top-right-radius: var(--timeline-radius);

  background: rgba(255, 255, 255, 0.03);

  margin: var(--timeline-spacing) 0 var(--timeline-spacing) calc(var(--timeline-date-width) + var(--timeline-left-gap));
  padding: var(--timeline-spacing);
  position: relative;
  line-height: 1.4;
  font-size: 1.03em;
  text-align: left;
  max-width: 30rem;
}

/* Étape */
.wp-block-group.timeline > .wp-block-group {
	position: relative;
	margin-bottom: var(--timeline-spacing);
	padding-bottom: calc(var(--timeline-spacing) * 0.5);
	border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

/* Dernière étape */
.wp-block-group.timeline > .wp-block-group:last-of-type {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* Pastille */
.wp-block-group.timeline > .wp-block-group::after {
	content: "";
	position: absolute;
	top: 25px;
	left: -3.6rem;
	width: var(--timeline-dot-size);
	height: var(--timeline-dot-size);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 var(--timeline-dot-border) var(--timeline-primary);
}

/* Date */
.wp-block-group.timeline .timeline-date {
	position: absolute;
	top: 20px;
	left: -200px;
	min-width: var(--timeline-date-width);
	margin: 0;
	text-align: right;
	font-size: 0.9em;
	opacity: 0.6;
}


/* =========================================================
   8. TAB SECTION
   ========================================================= */

.tab-section {
	--gutter: var(--wp--style--root--padding-left, 1.3rem);
	position: relative;
}

.tab-section__panel {
	padding: 1.3rem var(--gutter);
}

.tab-section__tab {
	display: inline-block;
	margin: 0 0 -1px var(--gutter);
	z-index: 2;
}

h2.tab-section__tab {
	margin-left: -1em !important;
	padding: 0.25em 1em;
}


/* =========================================================
   9. AGENDA
   ========================================================= */

.agenda-single-meta .agenda-cta {
	display: block;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.agenda-single-meta .agenda-cta .cool-button {
	display: inline-block;
	text-decoration: none;
}


/* =========================================================
   10. BOUTON
   ========================================================= */

.cool-button {
	padding: 10px 30px;
	border: 3px solid var(--wp--preset--color--primary);
	background-color: #fff;
	color: var(--wp--preset--color--primary);
	font-weight: 800;
	box-shadow: -3px 4px 0 0 var(--wp--preset--color--primary);
	transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.cool-button a {
	text-decoration: none;
}

.cool-button:hover {
	transform: translateY(2px);
	box-shadow: 0 0 0 0 var(--wp--preset--color--primary);
}

.cool-button:active {
	outline: none;
	background-color: var(--wp--preset--color--primary);
	color: #fff;
}

.cool-button:focus {
	outline: none;
}


/* =========================================================
   11. RESPONSIVE
   ========================================================= */

@media (max-width: 781px) {
	.wp-site-blocks .show-mobile-only {
		display: block;
	}

	.wp-site-blocks .hide-mobile {
		display: none;
	}
}

@media (max-width: 768px) {
  .wp-block-group.timeline {
    margin-left: 0;
    max-width: 100%;
    padding-left: 1.5rem;
  }

  .wp-block-group.timeline > .wp-block-group::after {
    left: -2rem;
    top: 5px;
  }

  .wp-block-group.timeline .timeline-date {
    position: static;
    display: block;
    text-align: left;
    margin-bottom: 0.25rem;
    opacity: 0.8;
  }
}