/* Univers Auto : enveloppe du site (en-tête, pied, pages internes) */
html.light body, body { background: #f7f8f8; color: #21312b; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 400; }
.um-corps { display: flex; flex-direction: column; min-height: 100vh; }

/* Bandeau + en-tête collants */
.um-haut { position: sticky; top: 0; left: 0; width: 100%; z-index: 50; }
.um-bandeau { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--bandeau-h, 40px); padding: 0 56px 0 16px; background: #32b487; color: whitesmoke; font-size: .85rem; position: relative; }
.um-bandeau[hidden] { display: none; }
.um-bandeau-texte { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; white-space: nowrap; }
.um-bandeau-fermer { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: whitesmoke; cursor: pointer; }
.um-haut > header.um-entete { position: static; top: auto; margin: 0; max-width: none; width: 100%; display: block; padding: 10px 16px; background: rgba(247, 248, 248, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(83, 110, 101, .15); }
.um-entete-pilule { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.um-logo { display: inline-flex; align-items: center; min-height: 48px; }
.um-logo img { height: 48px; width: auto; display: block; }
.um-menu-liste { list-passion-moto: none; margin: 0; padding: 4px 32px; display: flex; gap: 32px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(83, 110, 101, .15); box-shadow: 0 10px 30px -14px rgba(33, 49, 43, .25); }
.um-menu-liste a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; color: #21312b; text-decoration: none; font-weight: 400; }
.um-menu-liste a:hover, .um-menu-liste a[aria-current="page"] { color: #32b487; }
.um-burger { display: none; }
@media (max-width: 639px) {
  .um-entete-pilule { flex-direction: row; justify-content: space-between; gap: 32px; position: relative; }
  .um-logo img { height: 34px; }
  .um-logo { min-height: 44px; }
  .um-burger { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid rgba(83, 110, 101, .15); border-radius: 12px; color: #21312b; }
  .um-ico-fermer { display: none; }
  html.um-menu-ouvert .um-ico-fermer { display: block; }
  html.um-menu-ouvert .um-ico-ouvrir { display: none; }
  .um-menu { position: absolute; top: calc(100% + 10px); left: -16px; right: -16px; }
  .um-menu-liste { display: none; flex-direction: column; gap: 0; border-radius: 0 0 16px 16px; background: #f7f8f8; padding: 8px 24px 16px; }
  html.um-menu-ouvert .um-menu-liste { display: flex; }
  .um-menu-liste li { width: 100%; text-align: center; }
  .um-menu-liste a { width: 100%; justify-content: center; }
  .um-bandeau { font-size: .78rem; }
}

/* Pied de page */
footer.um-pied { max-width: none; width: 100%; margin: 64px 0 0; padding: 48px 16px 0; background: #ebf0ee; color: #21312b; border: 0; position: relative; overflow: hidden; }
.um-pied-int { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.um-pied-logo { display: inline-flex; min-height: 44px; align-items: center; }
.um-pied-logo img { height: 44px; width: auto; }
.um-pied-adresse { margin: 0 !important; font-size: .9rem; color: #536e65; }
.um-pied-liens { list-passion-moto: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.um-pied-liens a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; color: #21312b; text-decoration: none; }
.um-pied-liens a:hover { color: #32b487; text-decoration: underline; }
.um-pied-copie { margin: 0 !important; font-size: .85rem; color: #536e65; }
.um-pied-marque { text-align: center; line-height: 1; margin-top: 24px; height: 5.2rem; overflow: hidden; }
.um-pied-marque span { font-size: clamp(3.5rem, 10vw, 7rem); color: rgba(83, 110, 101, .5); opacity: .5; white-space: nowrap; }

/* Pages internes */
main.um-principal { width: 100%; max-width: none; margin: 0; padding: 0; flex: 1; display: block; }
.um-interne { width: min(100% - 32px, 1040px); margin: 48px auto 0; text-align: left; }
.um-interne h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; margin: 0 0 16px; text-align: left; }
.um-interne h1 .sigmar-ff, .um-interne h1.sigmar-ff { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; }
.um-interne h2 { font-weight: 700; font-size: 1.5rem; margin: 40px 0 12px; }
.um-interne h3 { font-weight: 700; font-size: 1.15rem; margin: 24px 0 8px; }
.um-texte p, .um-texte li, .um-chapo { max-width: 70ch; }
.um-interne .um-texte .um-chapo { max-width: calc(70ch / 1.15); }
@media (max-width: 639px) { .um-auteur-tete.um-auteur-tete { flex-direction: column; align-items: flex-start; } .um-auteur-tete.um-auteur-tete img { width: 120px; height: 120px; } }
.um-chapo { font-size: 1.15rem; color: #536e65; margin-bottom: 32px; }
.um-texte a, .um-interne .um-lien { color: #32b487; text-decoration: underline; text-underline-offset: 3px; }
.um-texte ul { padding-left: 1.2rem; list-passion-moto: disc; }
.um-texte li { margin-bottom: 8px; }
/* Pages internes (mentions, confidentialité, à propos, contact, auteur) : corps en 60ch (600 px, 80 caractères par ligne au plus),
   au lieu du plafond étroit du socle (54ch / 31em, environ 490 px). */
[data-usine-page="interne"] .um-texte :is(p, li) { max-width: 60ch; }
.um-interne > img.um-une { display: block; width: 100%; height: auto; border-radius: 16px; }
.um-interne > img.um-une + .um-texte { margin-top: 1.5rem; }
.um-interne .um-texte .ur-reseaux { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; }
.um-interne .um-texte .ur-reseaux + * { margin-top: 1.25rem; }
.um-fil { font-size: .9rem; line-height: 1.4; color: #536e65; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 0; min-height: 44px; }
.um-fil a { color: #536e65 !important; text-decoration: none !important; display: inline-flex; align-items: center; min-height: 44px; }
.um-fil a:hover { color: #32b487 !important; }
/* Contact : formulaire et « Pour quels sujets ? » côte à côte en bureau */
.um-contact-cols { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .um-contact-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.um-interne .um-contact-cols .um-carte-contact { max-width: none; margin: 0; }
.um-contact-cols h2 { margin-top: 0 !important; }
.um-contact-cols p, .um-contact-cols li { max-width: none !important; }
/* Page auteur : articles en cartes sur 2 colonnes */
.um-interne .um-liste-articles { list-passion-moto: none !important; padding: 0 !important; display: grid; gap: 16px; grid-template-columns: 1fr; max-width: none !important; }
@media (min-width: 720px) { .um-interne .um-liste-articles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) { .um-interne .um-liste-articles:has(> li:nth-child(4):last-child), .um-interne .um-liste-articles:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.um-interne .um-liste-articles li { max-width: none !important; margin: 0 !important; display: flex; flex-direction: column; gap: 6px; background: #f7f8f8; border-radius: 1rem; padding: 18px 20px; box-shadow: 0 1px 3px rgba(33, 49, 43, .08); }
.um-interne .um-liste-articles li a { color: #21312b; font-weight: 700; text-decoration: none; }
.um-interne .um-liste-articles li a:hover { color: #32b487; }
.um-interne .um-liste-articles time { color: #536e65; font-size: .9rem; }
.um-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; background: #21312b; color: #f7f8f8 !important; border: 0; cursor: pointer; transition: background .2s; text-decoration: none !important; font-weight: 400; white-space: nowrap; }
.um-bouton:hover { background: #32b487; }
.um-bouton-ligne { background: transparent; color: #32b487 !important; border: 1px solid #32b487; }
.um-bouton-ligne:hover { background: #32b487; color: #fff !important; }

/* Grilles de cartes */
.um-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 32px 0; }
@media (max-width: 1023px) { .um-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .um-grille { grid-template-columns: 1fr; } }
.um-carte { background: #fff; border: 1px solid rgba(83, 110, 101, .15); border-radius: 16px; box-shadow: 0 10px 30px -14px rgba(33, 49, 43, .25); overflow: hidden; display: flex; flex-direction: column; }
.um-carte img { width: 100%; height: 220px; object-fit: cover; display: block; }
.um-carte-corps { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.um-carte-corps h2, .um-carte-corps h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin: 0; }
.um-carte-corps a { color: #21312b; text-decoration: none; }
.um-carte-corps a:hover { color: #32b487; }
.um-carte-corps p { margin: 0 !important; color: #536e65; font-size: .95rem; }
.um-meta { font-size: .85rem; color: #536e65; }
.um-rubriques { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; padding: 0; list-passion-moto: none; }

/* Article */
.um-article { width: min(100% - 32px, 1180px); margin: 40px auto 0; }
.um-article .um-tete h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; text-align: left; margin: 8px 0 12px; }
.um-article .um-tete img.um-une { width: 100%; max-height: 560px; object-fit: cover; border-radius: 16px; margin: 20px 0 8px; }
.um-rubrique { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: #ebf0ee; color: #536e65 !important; text-decoration: none !important; font-size: .85rem; }
.um-auteur-portrait { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.um-centre-lien { text-align: center; margin: 40px 0; }
.um-grille-rubrique { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1024px) { .um-grille-rubrique { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .um-grille-rubrique { grid-template-columns: 1fr; } }
.um-equipe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; list-passion-moto: none; padding: 0; margin-top: 32px; }
@media (max-width: 640px) { .um-equipe { grid-template-columns: 1fr; } }
.um-equipe li a { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.um-equipe img, .um-auteur-tete img { border-radius: 9999px; background: #ebf0ee; object-fit: cover; flex: none; }
.um-equipe img { width: 96px; height: 96px; }
.um-auteur-tete img { width: 160px; height: 160px; }
.um-auteur-tete { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 24px 0; }
.um-liste-articles li { display: flex; flex-direction: column; margin-bottom: 12px; }
.um-liste-articles time { font-size: .9em; opacity: .75; }
/* Bandeau infos vivantes : bordeaux et texte whitesmoke à toutes les largeurs (l’emporte sur [data-bandeau] du kit) */
.um-haut .um-bandeau[data-bandeau] { background: #32b487; color: whitesmoke; }
.um-haut .um-bandeau[data-bandeau] :is(span, p, time, strong) { color: whitesmoke; }
.um-haut .um-bandeau .um-bandeau-fermer { color: whitesmoke; }
.um-haut .um-bandeau .um-bandeau-fermer:focus-visible { outline: 2px solid whitesmoke; outline-offset: -4px; }
/* Contact (tour builder 2) : même conteneur que mentions et à propos, carte claire, champs alignés à gauche */
.um-interne .um-carte-contact { background: #f7f8f8; border-radius: 1rem; padding: clamp(20px, 3vw, 32px); margin: 8px 0 24px; max-width: 40rem; text-align: left; box-shadow: 0 1px 3px rgba(33, 49, 43, .08); }
.um-interne .um-form-contact { display: grid; gap: 16px; text-align: left; justify-items: stretch; }
.um-interne .um-form-contact label { display: grid; gap: 4px; text-align: left; justify-items: stretch; }
.um-interne .um-form-contact input, .um-interne .um-form-contact textarea { width: 100%; text-align: left; font: inherit; }
.um-interne .um-form-contact #contact-retour { text-align: left; margin: 0; }
.um-interne .um-liste-contact { list-passion-moto: disc; padding-left: 1.2rem; margin: 0 0 16px; text-align: left; }
.um-interne .um-liste-contact li { display: list-item; text-align: left; }
