/* Assurance Chien Mango : gabarit commun */
html { scroll-padding-top: 8rem; }
[id], h2, h3 { scroll-margin-top: 8rem; }
body { font-family: var(--font-primary, Roboto, system-ui, sans-serif); color: var(--c-texte, #1f2937); background: var(--c-fond, #fff); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--c-voile); color: #fff; padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.ico { flex: none; vertical-align: middle; }

/* En-tête */
.sh { position: sticky; top: 0; left: 0; width: 100%; z-index: 50; background: #fff; box-shadow: 0 1px 0 #e5e7eb; }
.sh-in { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; box-sizing: border-box; }
.sh-bandeau { background: var(--c-voile); color: #fff; font-size: .875rem; width: 100%; }
.sh-bandeau-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.sh-infos { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; }
.sh-sep { opacity: .7; }
.sh-fermer { background: transparent; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; min-width: 44px; min-height: 44px; cursor: pointer; }
.sh-barre-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.sh-gauche { display: flex; align-items: center; gap: 2rem; min-width: 0; }
.sh-logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.sh-logo img { height: 52px; width: auto; display: block; }
.sh-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.sh-nav a { color: var(--c-secondaire); text-decoration: none; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; }
.sh-nav a:hover, .sh-nav a[aria-current="page"] { color: var(--c-primaire); border-bottom-color: var(--c-primaire); }

.sh-droite { display: flex; align-items: center; gap: .75rem; }
.sh-bouton { white-space: nowrap; }
.sh-burger { display: none; background: transparent; border: 1px solid #d1d5db; border-radius: var(--r-bouton, .25rem); color: var(--c-secondaire); min-width: 44px; min-height: 44px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 1023px) {
	.sh-burger { display: inline-flex; }
	.sh-bouton { padding: .5rem .875rem; }
	.sh-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 8px 24px #959da533; padding: .5rem 1.5rem 1rem; }
	.sh-nav.ouvert { display: block; }
	.sh-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.sh-nav a { width: 100%; }

	.sh-barre { position: relative; }
}
@media (max-width: 639px) {
	.sh-in { padding: 0 1rem; }
	.sh-logo img { height: 38px; }
	.sh-barre-in { min-height: 4rem; }
	.sh-infos { font-size: .8125rem; }
}

/* Pied de page */
.sf { background: var(--c-voile); color: #fff; margin-top: 4rem; }
.sf a { color: #fff; }
.sf-in { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.5rem 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; box-sizing: border-box; }
.sf-logo { display: inline-block; background: #fff; padding: .5rem .75rem; border-radius: var(--r-bouton, .25rem); }
.sf-logo img { height: 40px; width: auto; display: block; }
.sf-marque p { line-height: 1.6; margin-top: 1rem; }
.sf-titre { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1rem; color: #fff; }
.sf ul { list-style: none; margin: 0; padding: 0; }
.sf li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.sf li a:hover { text-decoration: underline; }
.sf address { font-style: normal; line-height: 1.7; }
.sf-legal { border-top: 1px solid #ffffff33; text-align: center; padding: 1rem 1.5rem 1.5rem; font-size: .875rem; }
.sf-legal a { display: inline-block; padding: .75rem 0; }
@media (max-width: 899px) { .sf-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .sf-in { grid-template-columns: 1fr; } }

/* Boutons */
.cs-button-solid { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .75rem 1.5rem; background: var(--c-primaire); color: #fff; border: var(--btn-bord, 1px solid transparent); border-radius: var(--r-bouton, .25rem); font-weight: 700; text-decoration: none; box-sizing: border-box; }
.cs-button-solid:hover { background: var(--c-secondaire); color: #fff; }

/* Cartes article */
.ca { display: flex; flex-direction: column; background: #fff; border-radius: .25rem; box-shadow: 0 8px 24px #959da533; overflow: hidden; position: relative; transition: transform .2s; min-width: 0; }
.ca:hover { transform: translateY(-2px); }
.ca-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; max-height: 480px; }
.ca-corps { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ca-tag { color: var(--c-primaire); font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ca-titre { font-size: 1.1875rem; line-height: 1.35; margin: 0; }
.ca-titre a { color: var(--c-secondaire); text-decoration: none; }
.ca-titre a::after { content: ""; position: absolute; inset: 0; }
.ca-titre a:hover { color: var(--c-primaire); }
.ca-resume { margin: 0; line-height: 1.55; color: #374151; }
.ca-meta { margin: auto 0 0; font-size: .875rem; color: #4b5563; display: flex; gap: .75rem; flex-wrap: wrap; }

/* Pages internes */
.pu { width: 100%; max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 3rem; box-sizing: border-box; }
.pu-fil { font-size: .875rem; color: #4b5563; margin-bottom: 1.5rem; }
.pu-fil a { color: var(--c-primaire); display: inline-block; padding: .75rem 0; }
.pu-topper { color: var(--c-primaire); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .875rem; margin: 0 0 .5rem; }
.pu h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; color: var(--c-secondaire); margin: 0 0 1rem; }
.pu-intro { font-size: 1.1875rem; line-height: 1.6; max-width: 60ch; color: #374151; margin: 0 0 2.5rem; }
.pu p, .pu li { max-width: 60ch; line-height: 1.7; }
.pu h2 { color: var(--c-secondaire); }
.pu-md { padding-top: 3rem; }
.pu-md h1 { margin-bottom: 1.5rem; }
.pu-md a, .pu-prose a { color: var(--c-primaire); }
.pu-grille { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 700px) { .pu-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pu-grille .ca p { max-width: none; }
.pu-suite { margin-top: 2rem; }
.pu-suite a { color: var(--c-primaire); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.pu-liste { list-style: none; padding: 0; margin: 0 0 2rem; }
.pu-liste li { border-bottom: 1px solid #e5e7eb; padding: .75rem 0; display: flex; flex-direction: column; gap: .25rem; }
.pu-liste a { color: var(--c-secondaire); font-weight: 600; font-size: 1.0625rem; min-height: 44px; display: inline-flex; align-items: center; }
.pu-liste-meta { font-size: .875rem; color: #4b5563; }
.pu-archive h2 { font-size: 1.5rem; border-bottom: 2px solid var(--c-primaire); padding-bottom: .5rem; }
.pu-membre { text-align: center; background: #fff; box-shadow: 0 8px 24px #959da533; border-radius: .25rem; padding: 1.5rem; }
.pu-membre img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.pu-membre h2 { font-size: 1.25rem; margin: 1rem 0 .25rem; }
.pu-membre h2 a { color: var(--c-secondaire); }
.pu-membre p { margin: .25rem auto; }
.pu-role { color: #374151; }
.pu-nb { color: var(--c-primaire); font-weight: 700; }
.pu-prose { margin-top: 2.5rem; }
.pu-auteur { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2.5rem; }
.pu-auteur img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; flex: none; }
.pu-auteur p { font-size: 1.125rem; margin: 0; }
@media (max-width: 639px) { .pu-auteur { flex-direction: column; } .pu-auteur img { width: 140px; height: 140px; } .pu { padding: 1.5rem 1rem 2.5rem; } }
.pu-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 699px) { .pu-contact { grid-template-columns: 1fr; } }
.pu-bloc { background: #f5f7fb; border-radius: .25rem; padding: 1.5rem; min-width: 0; }
.pu-bloc h2 { display: flex; align-items: center; gap: .5rem; margin-top: 0; font-size: 1.25rem; }
.pu-bloc .cs-button-solid { word-break: break-all; }
.pu-bloc address { font-style: normal; line-height: 1.7; }
.pu-h2 { margin-top: 1rem; }

/* Article */
.au-article { width: 100%; max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 0; box-sizing: border-box; }
.au-fil { font-size: .875rem; color: #4b5563; }
.au-fil a { color: var(--c-primaire); }
.au-rubrique a { color: var(--c-primaire); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .875rem; text-decoration: none; }
.au-article h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; color: var(--c-secondaire); }
.au-chapo { font-size: 1.1875rem; line-height: 1.6; color: #374151; }
.au-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: .25rem; display: block; }
.au-outils { max-width: 760px; margin: 2rem auto 0; }

/* Widgets */
.wu { background: #fff; border: 1px solid #e5e7eb; border-radius: .25rem; box-shadow: 0 8px 24px #959da533; padding: 1.5rem; box-sizing: border-box; min-width: 0; }
.wu-titre { margin: 0 0 1rem; font-size: 1.25rem; color: var(--c-secondaire); }
.wu-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wu-form label { display: flex; flex-direction: column; gap: .375rem; font-size: .9375rem; font-weight: 600; color: #374151; }
.wu-form input { min-height: 44px; padding: .5rem .75rem; border: 1px solid #9ca3af; border-radius: .25rem; font: inherit; font-size: 1rem; }
.wu-resultats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wu-resultats p { margin: 0; background: #f5f7fb; border-radius: .25rem; padding: 1rem; display: flex; flex-direction: column; gap: .25rem; font-size: .9375rem; }
.wu-resultats output { font-size: 1.75rem; font-weight: 700; color: var(--c-primaire); }
.wu-note { font-size: .875rem; color: #4b5563; margin: 1rem 0 0; }
.wu-liste { list-style: none; margin: 0; padding: 0; }
.wu-liste label { display: flex; gap: .75rem; align-items: center; min-height: 44px; cursor: pointer; }
.wu-liste input { width: 22px; height: 22px; accent-color: var(--c-primaire); flex: none; }
.wu-compteur { margin: 1rem 0 0; font-weight: 600; }
.wu-compteur strong { color: var(--c-primaire); font-size: 1.25rem; }
@media (max-width: 479px) { .wu-form, .wu-resultats { grid-template-columns: 1fr; } }

/* pré-contrôle : colonnes ≥ 300 px */
.ca-corps { padding: 1.25rem 1rem; }
@media (max-width: 480px) { .au-article { padding-left: .5rem; padding-right: .5rem; } }
.pu-auteur-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 1rem; }
[data-usine-bloc] a.cs-button-solid, [data-usine-bloc] a.cs-button-solid:visited { background: #1d4ed8; color: #fff; }
[data-usine-bloc] a.cs-button-solid:hover { background: #001f3f; color: #fff; }
.pu-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: 2.5rem; max-width: 760px; }
.pu-form label { display: grid; gap: .375rem; font-weight: 700; }
.pu-form .pu-form-large { grid-column: 1 / -1; }
.pu-form input, .pu-form textarea { font: inherit; padding: .75rem 1rem; border: 1px solid #6b7280; border-radius: .25rem; background: #fff; color: #111827; }
.pu-form textarea { min-height: 10rem; }
.pu-form .cs-button-solid { justify-self: start; border: 0; cursor: pointer; }
.pu-form [data-honeypot] { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pu-form-retour { grid-column: 1 / -1; margin: 0; min-height: 1.5em; }
@media (max-width: 599px) { .pu-form { grid-template-columns: 1fr; } }

/* footer : la colonne marque garde au moins 320 px (texte de 60 caractères et plus) */
@media (min-width: 1024px) { :is([data-usine-bloc="footer"], footer.sf) .sf-in { grid-template-columns: minmax(320px, 1.4fr) repeat(3, minmax(0, 1fr)); } }
