/* ==========================================================================
   Page publique « Origine » (app/Views/site/origine.php) — charte SpiKto v3
   Préfixe des classes : .og-   (s'appuie sur les jetons et composants de spikto-v3.css)
   ========================================================================== */

/* Rythme vertical : le gabarit espace déjà les blocs de 20px, on aère les sections */
.og-section { scroll-margin-top: 16px; padding-top: clamp(20px, 4vw, 44px); }
.og-entete { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; max-width: 760px; }
.og-entete--centre { align-items: center; text-align: center; margin-inline: auto; }
.og-entete .s-sous-titre { max-width: 680px; }
.og-entete .s-titre, .og-final .s-titre { text-wrap: balance; }

/* Surlignage façon feutre (aplat jaune, pas de dégradé) */
.og-surligne { box-shadow: inset 0 -.32em 0 var(--s-jaune); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.og-accent { color: var(--s-rose-x); }
.og-insecable { white-space: nowrap; }
.og-appel { font-size: .45em; vertical-align: super; color: var(--s-rose-x); }

.og-texte { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 600; color: var(--s-texte); }
.og-texte strong { color: var(--s-encre); font-weight: 800; }
.og-texte--fort { font-size: clamp(17px, 1.6vw, 19px); color: var(--s-encre); }
.og-note { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--s-encre-douce); }
.og-note--italique { font-style: italic; }
.og-note--pied { margin-top: 6px; padding-top: 12px; border-top: 2px solid var(--s-lin); font-size: 12.5px; }
.og-note--pied sup { color: var(--s-rose-x); font-weight: 900; }

.og-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 6px; }

/* Liens dans le texte : soulignés, focus visible */
.og-section a:not(.s-btn), .og-liens a { font-weight: 800; color: var(--s-encre); text-underline-offset: 3px; }
.og-hero a:focus-visible, .og-section a:focus-visible { outline: 3px solid var(--s-bleu); outline-offset: 3px; border-radius: 6px; }

/* --------------------------------------------------------------------------
   En-tête de page : texte + SpiKto qui raconte
   -------------------------------------------------------------------------- */
.og-hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(20px, 4vw, 48px); align-items: center; padding-top: clamp(8px, 2vw, 24px); }
.og-hero__texte { display: flex; flex-direction: column; gap: 16px; }
.og-hero__chapo { margin: 0; max-width: 600px; font-size: 16px; line-height: 1.6; font-weight: 600; color: var(--s-texte); }
.og-hero__chapo strong { color: var(--s-encre); font-weight: 900; }
.og-hero__visuel { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.og-hero__visuel .s-bulle { align-self: flex-end; max-width: 250px; }
.og-hero__visuel .s-mascotte { width: 270px; height: auto; }

/* --------------------------------------------------------------------------
   Frise des dates clés
   -------------------------------------------------------------------------- */
.og-frise { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.og-frise::before { content: ""; position: absolute; left: 6%; right: 6%; top: 25px; border-top: 3px dotted var(--s-lin-fonce); }
.og-frise li { position: relative; display: flex; }
.og-frise__lien {
	flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
	padding: 0 4px 6px; border-radius: 18px; text-decoration: none; color: var(--s-encre);
}
.og-frise__annee {
	display: inline-flex; align-items: center; justify-content: center; min-width: 96px; min-height: 52px; padding: 6px 16px;
	background: var(--d-plein); border: 3px solid var(--s-trait, var(--s-encre)); border-radius: var(--s-r-pilule); box-shadow: 0 4px 0 var(--s-ombre-dure, var(--s-encre));
	font-family: var(--s-f-titre); font-weight: 800; font-size: 24px; line-height: 1; color: var(--s-encre);
	transition: transform .12s ease, box-shadow .12s ease;
}
.og-frise__texte { font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--s-texte); }
.og-frise__texte strong { color: var(--s-encre); font-weight: 900; }
.og-frise__lien:hover .og-frise__annee { transform: translateY(-2px); box-shadow: 0 6px 0 var(--s-ombre-dure, var(--s-encre)); }
.og-frise .og-frise__lien:focus-visible { outline: 3px solid var(--s-bleu); outline-offset: 4px; }
.og-frise__aujourdhui .og-frise__annee { background: var(--s-encre); color: var(--s-creme-clair); font-size: 19px; }

/* --------------------------------------------------------------------------
   Blocs « texte + photo »
   -------------------------------------------------------------------------- */
.og-duo { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 52px); align-items: center; }
.og-duo__texte { display: flex; flex-direction: column; gap: 14px; }
.og-duo__texte .s-titre { margin-bottom: 4px; }

.og-photo { margin: 0; }
.og-photo img { display: block; width: 100%; height: auto; aspect-ratio: 905 / 526; object-fit: cover; border-radius: 18px; border: 2px solid var(--s-lin); background: var(--s-creme); }
.og-photo--produits img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.og-photo--43 img { aspect-ratio: 4 / 3; object-position: 50% 30%; }

/* Citation */
.og-citation {
	margin: clamp(12px, 3vw, 28px) 0 0; padding: clamp(24px, 4vw, 44px) clamp(20px, 5vw, 64px);
	display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
	background: var(--d-teinte); border-radius: 28px;
}
.og-citation__texte { margin: 0; max-width: 900px; }
.og-citation__texte p { margin: 0; font-family: var(--s-f-titre); font-weight: 800; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.15; color: var(--s-encre); }
.og-citation__source { max-width: 680px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.5; font-weight: 700; color: var(--s-texte); }
.og-citation__source strong { color: var(--s-encre); font-weight: 900; }

/* Récits (cartes texte + image, en alternance) */
.og-recit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(18px, 3.5vw, 40px); align-items: center; padding: clamp(20px, 3.4vw, 36px); }
.og-recit + .og-recit { margin-top: 18px; }
.og-recit--inverse .og-photo { order: -1; }
.og-recit__texte { display: flex; flex-direction: column; gap: 12px; }
.og-recit__titre { margin: 2px 0 2px; font-family: var(--s-f-titre); font-weight: 800; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.1; }
.og-recit__titre--bulle { margin: 4px 0 10px; }
.og-recit__titre--bulle .s-bulle { font-size: clamp(24px, 2.8vw, 32px); }
.og-chute { margin: 2px 0 0; padding: 12px 16px; background: var(--s-creme-clair); border: 2.5px solid var(--s-trait, var(--s-encre)); border-radius: 16px; font-family: var(--s-f-titre); font-weight: 800; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.25; }

.og-etiquette {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
	background: var(--d-plein); border: 2px solid var(--s-trait, var(--s-encre)); border-radius: var(--s-r-pilule);
	font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--s-encre);
}

/* 5 formes, 5 couleurs */
.og-cinq { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.og-cinq li { width: 30px; height: 30px; background: var(--d-plein); border: 2.5px solid var(--s-trait, var(--s-encre)); border-radius: 50%; }
.og-cinq li:nth-child(2) { border-radius: 8px; }
.og-cinq li:nth-child(3) { border-radius: 50% 50% 8px 8px; }
.og-cinq li:nth-child(4) { border-radius: 8px 50% 8px 50%; }
.og-cinq li:nth-child(5) { border-radius: 50% 8px; }

/* Noms de domaine déposés */
.og-domaines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.og-domaines li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--s-texte); }
.og-domaines strong { color: var(--s-encre); font-weight: 900; }

/* Résultats reconnus */
.og-prix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.og-prix__carte { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; border-top: 8px solid var(--d-plein); }
.og-prix__type { margin-top: 6px; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--d-texte); }
.og-prix__titre { margin: 0; font-family: var(--s-f-titre); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; }

/* Valeurs */
.og-valeurs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.og-valeurs li {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 168px; padding: 18px 12px; text-align: center;
	background: var(--d-teinte); border-radius: var(--s-r-carte);
}
.og-valeurs strong { font-family: var(--s-f-titre); font-weight: 800; font-size: 20px; line-height: 1.15; }

/* Appel final */
.og-final {
	display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(16px, 4vw, 48px); align-items: center;
	margin-top: clamp(16px, 3vw, 32px); padding: clamp(22px, 4vw, 40px);
	background: var(--d-teinte); border: 3px solid var(--s-trait, var(--s-encre)); border-radius: 28px; box-shadow: 0 6px 0 var(--s-ombre-dure, var(--s-encre));
}
.og-final__mascotte { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.og-final__mascotte .s-bulle { align-self: flex-end; }
.og-final__mascotte .s-mascotte { width: 230px; height: auto; }
.og-final__texte { display: flex; flex-direction: column; gap: 14px; }
.og-liens { margin: 4px 0 0; font-size: 14px; line-height: 1.8; font-weight: 700; color: var(--s-texte); }
.og-liens a { display: inline-block; padding: 4px 0; }

/* --------------------------------------------------------------------------
   Tablette et mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.og-frise { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
	.og-frise::before { display: none; }
}
@media (max-width: 960px) {
	.og-hero { grid-template-columns: minmax(0, 1fr); }
	.og-hero__visuel { order: -1; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 4px; }
	.og-hero__visuel .s-mascotte { width: 120px; }
	.og-hero__visuel .s-bulle { align-self: center; max-width: none; font-size: 19px; }
	.og-hero__visuel .s-bulle::after { left: -10px; bottom: auto; top: 20px; border: 0; border-left: 2.5px solid var(--s-trait, var(--s-encre)); border-bottom: 2.5px solid var(--s-trait, var(--s-encre)); }
	.og-duo, .og-recit { grid-template-columns: minmax(0, 1fr); }
	.og-recit--inverse .og-photo { order: 0; }
	.og-prix { grid-template-columns: minmax(0, 1fr); }
	.og-final { grid-template-columns: minmax(0, 1fr); }
	.og-final__mascotte { flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
	.og-final__mascotte .s-mascotte { width: 120px; }
	.og-final__mascotte .s-bulle { align-self: center; font-size: 19px; }
	.og-final__mascotte .s-bulle::after { left: -10px; bottom: auto; top: 20px; border: 0; border-left: 2.5px solid var(--s-trait, var(--s-encre)); border-bottom: 2.5px solid var(--s-trait, var(--s-encre)); }
}
@media (max-width: 640px) {
	/* Frise verticale : un trait à gauche, l'année en pastille */
	.og-frise { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.og-frise::before { display: block; left: 47px; right: auto; top: 26px; bottom: 26px; border-top: 0; border-left: 3px dotted var(--s-lin-fonce); }
	.og-frise__lien { flex-direction: row; align-items: center; gap: 14px; text-align: left; padding: 7px 0; }
	.og-frise__annee { flex: none; min-width: 96px; min-height: 46px; font-size: 21px; padding: 4px 12px; }
	.og-frise__aujourdhui .og-frise__annee { font-size: 15px; }
	.og-prix__carte { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: center; padding: 18px; }
	.og-prix__carte .s-pastille { grid-row: span 2; width: 56px; height: 56px; border-width: 2.5px; }
	.og-prix__carte .s-pastille svg { width: 28px; height: 28px; }
	.og-prix__type { margin-top: 0; }
	.og-prix__carte .og-texte { grid-column: 1 / -1; margin-top: 6px; }
	.og-valeurs li { min-height: 140px; }
	.og-valeurs strong { font-size: 17px; }
	.og-actions .s-btn { width: 100%; }
	.og-citation { border-radius: 22px; }
	.og-final { box-shadow: 0 4px 0 var(--s-ombre-dure, var(--s-encre)); }
}
