/* ==========================================================================
   Page Sécurité & vie privée — charte SpiKto v3
   Vue : app/Views/site/securite.php · préfixe .sec-
   ========================================================================== */

/* Briques communes de la page */
.sec-section { display: flex; flex-direction: column; gap: 22px; margin-top: clamp(14px, 3vw, 36px); scroll-margin-top: 16px; }
.sec-entete { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.sec-entete .s-sous-titre { line-height: 1.5; }
.sec-entete .s-sous-titre strong { color: var(--s-encre); }
.sec-h2 { font-size: clamp(27px, 3.2vw, 40px); }
.sec-surligne { padding: 0 .08em; box-shadow: inset 0 -.32em 0 var(--s-jaune); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sec-lien { font-weight: 800; color: var(--s-encre); text-decoration: underline; text-decoration-color: var(--s-rose); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sec-lien:hover { text-decoration-color: var(--s-encre); }
.s-site-contenu a:not(.s-btn):focus-visible { outline: 3px solid var(--s-bleu); outline-offset: 2px; border-radius: 6px; }

/* Hero */
.sec-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding-top: clamp(4px, 2vw, 24px); }
.sec-hero__texte { display: flex; flex-direction: column; gap: 16px; }
.sec-hero__texte .s-sous-titre { max-width: 640px; line-height: 1.5; }
.sec-hero__texte .s-sous-titre strong { color: var(--s-encre); }
.sec-hero__actions { margin-top: 8px; }
.sec-hero__visuel { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.sec-hero__visuel .s-bulle { max-width: 300px; text-align: center; }
.sec-hero__visuel .s-mascotte { width: 230px; height: auto; }

/* Engagements clés */
.sec-engagements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.sec-engagement { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 12px 18px; text-align: center; }
.sec-engagement .s-pastille { margin-bottom: 4px; }
.sec-engagement__titre { font-size: 16px; font-weight: 900; line-height: 1.25; }
.sec-engagement__precision { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; color: var(--d-texte); overflow-wrap: anywhere; }
.sec-engagement[data-couleur="gris"] .sec-engagement__precision { text-transform: none; letter-spacing: .02em; font-size: 12px; }

/* Cartes de contenu */
.sec-grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sec-grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sec-carte { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.sec-carte__titre { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--s-f-titre); font-weight: 800; font-size: 22px; line-height: 1.15; }
.sec-carte p { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 600; color: var(--s-texte); }
.sec-carte strong { color: var(--s-encre); }

/* Tableau des mesures techniques */
.sec-tableau-cadre { padding: 6px 24px; }
.sec-tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.sec-tableau th, .sec-tableau td { padding: 14px 12px; text-align: left; vertical-align: top; border-top: 2px solid var(--s-lin); }
.sec-tableau thead th { border-top: 0; padding-top: 16px; padding-bottom: 12px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--s-encre-douce); }
.sec-tableau tbody th { width: 230px; font-weight: 900; color: var(--s-encre); line-height: 1.35; }
.sec-tableau__detail { font-weight: 600; line-height: 1.55; color: var(--s-texte); }
.sec-tableau__detail strong { color: var(--s-encre); font-weight: 900; }
.sec-tableau thead th:last-child, .sec-tableau__etat { width: 140px; }
.sec-tableau code, .sec-bloc code { padding: 1px 7px; border-radius: 6px; background: var(--s-creme); border: 1px solid var(--s-lin); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 700; color: var(--s-encre); overflow-wrap: anywhere; }
.sec-etat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--s-r-pilule); background: var(--s-vert-t); color: var(--s-vert-x); font-size: 13px; font-weight: 900; white-space: nowrap; }

/* Divulgation responsable */
.sec-divulgation { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.sec-bloc { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--s-r-carte); }
.sec-bloc--contact { border: 3px solid var(--s-trait, var(--s-encre)); box-shadow: 0 5px 0 var(--s-ombre-dure, var(--s-encre)); }
.sec-bloc--teinte { background: var(--d-teinte); }
.sec-bloc .sec-carte__titre { font-size: 20px; }
.sec-contacts { margin: 0; display: flex; flex-direction: column; }
.sec-contacts > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 2px solid var(--s-lin); }
.sec-contacts > div:first-child { border-top: 0; padding-top: 0; }
.sec-contacts dt { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--s-encre-douce); }
.sec-contacts dd { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
.sec-contacts__note { display: block; font-size: 14px; font-weight: 600; color: var(--s-texte); }
.sec-puces { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sec-puces li { position: relative; padding-left: 26px; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--s-encre); }
.sec-puces li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--d-plein); border: 2px solid var(--s-trait, var(--s-encre)); }
.sec-puces strong { font-weight: 900; }

/* Notification de violation */
.sec-incident { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 980px; }
.sec-incident li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; font-size: 15px; font-weight: 600; line-height: 1.55; color: var(--s-texte); }
.sec-incident strong { color: var(--s-encre); font-weight: 900; }

/* Appel à l'action final (fond jaune-t : le fond très clair de la pose « pouce » s'y fond grâce à
   mix-blend-mode: darken ; les poses « coucou » et « index », sur fond crème, y laisseraient un rectangle) */
.sec-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 4vw, 44px); align-items: center; margin-top: clamp(14px, 3vw, 36px); padding: clamp(22px, 4vw, 40px) clamp(20px, 4vw, 48px); background: var(--s-jaune-t); border: 3px solid var(--s-trait, var(--s-encre)); border-radius: 28px; }
.sec-cta__mascotte { width: 180px; height: auto; }
.sec-cta__texte { display: flex; flex-direction: column; gap: 14px; }
.sec-cta__texte .sec-actions { margin-top: 6px; }

/* Responsive */
@media (max-width: 1100px) {
	.sec-engagements { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sec-divulgation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sec-bloc--contact { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.sec-hero { grid-template-columns: minmax(0, 1fr); }
	.sec-hero__visuel { flex-direction: row; justify-content: flex-start; align-items: center; gap: 4px; }
	.sec-hero__visuel .s-mascotte { order: -1; width: 140px; }
	.sec-hero__visuel .s-bulle { font-size: 19px; text-align: left; }
	.sec-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)); }
	.sec-grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.sec-grille-2, .sec-grille-3, .sec-divulgation, .sec-incident { grid-template-columns: minmax(0, 1fr); }
	.sec-cta { grid-template-columns: minmax(0, 1fr); }
	.sec-cta__mascotte { width: 120px; }

	/* Tableau → une fiche par mesure (rôles ARIA posés dans la vue pour garder la sémantique) */
	.sec-tableau-cadre { padding: 4px 18px; }
	.sec-tableau, .sec-tableau tbody, .sec-tableau tr, .sec-tableau th, .sec-tableau td { display: block; width: auto; }
	.sec-tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.sec-tableau tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-top: 2px solid var(--s-lin); }
	.sec-tableau tbody tr:first-child { border-top: 0; }
	.sec-tableau th, .sec-tableau td { padding: 0; border: 0; }
	.sec-tableau tbody th { width: auto; }
	.sec-tableau__etat { grid-row: 1; grid-column: 2; width: auto; }
	.sec-tableau thead th:last-child { width: auto; }
	.sec-tableau__detail { grid-column: 1 / -1; font-size: 14px; }
}
@media (max-width: 560px) {
	.sec-engagements { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.sec-engagement { padding: 16px 10px 14px; }
	.sec-engagement__titre { font-size: 15px; }
	.sec-actions .s-btn { width: 100%; padding-inline: 20px; gap: 10px; }
	/* Cartes compactes : pastille et titre sur la même ligne, texte dessous */
	.sec-carte { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px 14px; padding: 18px 20px; }
	.sec-carte p { grid-column: 1 / -1; }
	.sec-carte__titre { font-size: 20px; }
	.sec-bloc { padding: 20px 18px; }
	.sec-cta { padding: 20px 18px; }
}
