/*
Theme Name: OA Marque
Author: Organic Alliance, DSI
Description: Thème parent commun aux sites de marque du groupe : gabarits, styles, polices, formulaire, description pour les moteurs. Neutre : chaque marque a son thème enfant (couleurs, logo, en-tête, pied de page). Enfants : oa-bioacademy, oa-delices.
Version: 1.5.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: oa-marque
*/

/* Pas d'espace entre en-tête, contenu et pied de page */
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group { margin-block: 0; }
/* Pas de bande blanche entre deux sections pleine largeur du contenu */
.wp-block-post-content > .alignfull { margin-block-start: 0; }

:focus-visible { outline: 3px solid var(--wp--preset--color--secondary); outline-offset: 2px; }

/* En-tête */
.oa-header { background: var(--wp--preset--color--white); border-bottom: 1px solid #ece5ec; padding-block: 14px; }
.oa-header-inner { gap: 16px; align-items: center; }
.oa-header .wp-block-site-logo { flex-shrink: 0; }
.oa-nav { font-family: var(--wp--preset--font-family--titres); font-weight: 600; font-size: 1.125rem; gap: 6px 26px; }
.oa-nav a { color: var(--wp--preset--color--ink); text-decoration: none; }
.oa-nav a:hover { color: var(--wp--preset--color--primary); }
/* Bouton du menu : la règle de WordPress « .wp-block-navigation .wp-block-navigation-item__content » (couleur héritée) l'emportait */
.oa-nav .oa-nav-cta > a.wp-block-navigation-item__content { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--white); padding: 10px 18px; border-radius: 6px; }
.oa-nav .oa-nav-cta > a.wp-block-navigation-item__content:hover { color: var(--wp--preset--color--white); background: #5f1054; }
/* Logo en médaillon (écrans larges, en-têtes avec la classe oa-header-medaillon) : 112 px, il déborde sur le bandeau sans agrandir l'en-tête */
@media (min-width: 782px) {
  .oa-header { position: relative; z-index: 20; }
  .oa-header-medaillon .wp-block-site-logo { width: 112px; height: 64px; }
  .oa-header-medaillon .wp-block-site-logo a { display: block; }
  .oa-header-medaillon .wp-block-site-logo img { width: 112px !important; height: 112px !important; max-width: none; box-sizing: border-box; border: 4px solid var(--wp--preset--color--white); box-shadow: 0 8px 20px rgba(43, 15, 40, .28); }
}

/* Phrase de présentation et logos bio (pied de page) */
.oa-slogan { margin: 0; font-family: var(--wp--preset--font-family--titres); font-weight: 600; line-height: 1.3; }
.oa-logos-bio { margin: 0; flex-shrink: 0; }
.oa-logos-bio img { height: auto; display: block; }

/* Vidéo, citation, bandeau des partenaires */
.oa-video video { width: 100%; display: block; border-radius: 12px; background: var(--wp--preset--color--deep); }
.oa-quote { margin: 0; padding: 0; border: 0; }
.oa-quote p { font-family: var(--wp--preset--font-family--titres); font-weight: 600; font-size: 1.375rem; line-height: 1.35; }
.oa-partenaires img { width: 491px; max-width: 100%; height: auto; }
.oa-panel.oa-partenaires { background: var(--wp--preset--color--tint); }
.oa-photo img { border-radius: 12px; width: 100%; height: auto; }

/* Textes utilitaires */
.oa-eyebrow { font-family: var(--wp--preset--font-family--titres); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.oa-eyebrow em { font-style: normal; }
.oa-lead { font-size: 1.1875rem; max-width: 34em; }
.oa-note { font-size: 0.9375rem; color: var(--wp--preset--color--muted); }
.oa-kicker { font-family: var(--wp--preset--font-family--titres); font-weight: 600; font-size: 1.0625rem; color: var(--wp--preset--color--muted); margin-bottom: 0 !important; }
.oa-kicker + * { margin-top: 2px !important; }
.oa-kicker-up { font-family: var(--wp--preset--font-family--titres); font-weight: 600 !important; font-size: 0.875rem !important; letter-spacing: 0.09em; text-transform: uppercase; color: var(--wp--preset--color--muted) !important; }
.oa-citation { font-family: var(--wp--preset--font-family--titres); font-weight: 600; font-size: 1.5rem; line-height: 1.3; }
.oa-link-strong a, a.oa-link-strong { font-weight: 700; text-decoration: none; }

/* Bandeau d'accroche */
.oa-hero { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--white); }
.oa-hero h1, .oa-hero h2 { color: var(--wp--preset--color--white); }
.oa-hero .oa-eyebrow { color: var(--wp--preset--color--secondary); }
.oa-hero .oa-lead { color: #f4eaf3; }
.oa-hero .oa-note { color: #eadbe8; }
.oa-hero-cols { gap: 0 !important; margin-block: 0; }
.oa-hero-text { padding-block: 72px; padding-right: 48px; }
.oa-hero-media { align-self: stretch !important; }
.oa-hero-media .wp-block-image, .oa-hero-media figure { height: 100%; margin: 0; }
.oa-hero-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 68% center; display: block; }
@media (max-width: 781px) { .oa-hero-text { padding-right: 0; padding-block: 48px 32px; } .oa-hero-media img { min-height: 260px; } }

/* Pages intérieures (modèle « landing ») : bandeau bas, photo sur toute la largeur, titre par-dessus */
.page-template-landing .oa-hero { position: relative; overflow: hidden; }
.page-template-landing .oa-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-template-landing .oa-hero-media img { min-height: 0; object-position: center; }
.page-template-landing .oa-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(119, 20, 105, .95) 0%, rgba(119, 20, 105, .85) 35%, rgba(119, 20, 105, .2) 75%, rgba(119, 20, 105, 0) 100%); }
.page-template-landing .oa-hero-text { position: relative; z-index: 1; padding-block: 88px; padding-right: 0; }
@media (max-width: 781px) {
  .page-template-landing .oa-hero-text { padding-block: 56px; }
  .page-template-landing .oa-hero-media::after { background: rgba(119, 20, 105, .8); }
}

/* Boutons */
.oa-btn-secondary .wp-block-button__link { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--deep); }
.oa-btn-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--white); border: 2px solid var(--wp--preset--color--white); padding: 12px 22px; font-weight: 600; }
.oa-btn-deep .wp-block-button__link { background: var(--wp--preset--color--deep); color: var(--wp--preset--color--white); }

/* Sections */
.oa-section { padding-block: 80px; }
.oa-bg-tint { background: var(--wp--preset--color--tint); }
.oa-intro { max-width: var(--wp--style--global--content-size) !important; font-size: 1.0625rem; }

/* Cartes */
.oa-card { background: var(--wp--preset--color--tint); border-radius: 10px; padding: 24px; }
.oa-card h3 { color: var(--wp--preset--color--ink); font-size: 1.375rem; }
.oa-infos .oa-card h2 { color: var(--wp--preset--color--primary); font-size: 1.5rem; margin-top: 0; }
.oa-infos .oa-card h3 { margin-bottom: 0; }
.oa-card-white { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 26px; }
.oa-card-white h3 { font-size: 1.875rem; line-height: 1.05; }
.oa-panel { background: var(--wp--preset--color--white); border-radius: 12px; padding: 32px; }
.oa-panel h3 { color: var(--wp--preset--color--ink); font-size: 1.625rem; }

/* Hexagones des saisons */
.oa-hex { width: 76px; height: 66px; clip-path: polygon(25% 2%, 75% 2%, 100% 50%, 75% 98%, 25% 98%, 0% 50%); display: flex; align-items: center; justify-content: center; }
.oa-hex--petit { width: 64px; height: 56px; flex: 0 0 64px; }
.oa-hex--printemps { background: var(--wp--preset--color--printemps); }
.oa-hex--ete { background: var(--wp--preset--color--ete); }
.oa-hex--automne { background: var(--wp--preset--color--automne); }
.oa-hex--hiver { background: var(--wp--preset--color--hiver); }
.oa-season-mini { border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 18px 20px; gap: 16px; }
.oa-season-mini p { margin: 0; }
.oa-season-name { font-family: var(--wp--preset--font-family--titres); font-weight: 700; font-size: 1.625rem; line-height: 1.05; color: var(--wp--preset--color--primary); }

/* Liste numérotée des 7 thématiques */
.oa-numlist { list-style: none; padding: 0; counter-reset: oa-num; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 12px 40px; }
.oa-numlist > li { counter-increment: oa-num; display: flex; align-items: center; gap: 14px; }
.oa-numlist > li::before { content: counter(oa-num); flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--white); font-weight: 700; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }

/* Fiches thématiques (page Nos formations) */
.oa-theme-grid { counter-reset: oa-theme; gap: 20px; }
.oa-theme-card { background: var(--wp--preset--color--tint); border-radius: 12px; padding: 28px; }
.oa-theme-card > h3 { color: var(--wp--preset--color--ink); }
/* Photo d'origine petite (182 × 151 px) : vignette à côté du titre plutôt qu'agrandie au-dessus */
.oa-theme-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; align-content: start; gap: 18px 20px; }
.oa-theme-card > * { margin: 0 !important; }
.oa-theme-card > .wp-block-columns { grid-column: 1 / -1; }
.oa-theme-photo img { width: 112px; height: 93px; object-fit: cover; border-radius: 8px; display: block; }
.oa-theme-card ul { padding-left: 20px; margin-top: 8px; }
.oa-cta-card { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--deep); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.oa-cta-card h3 { color: var(--wp--preset--color--deep); font-size: 1.75rem; }

/* Formateur */
.oa-round img { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; width: 260px; max-width: 100%; }

/* Formulaire (Contact Form 7) */
.oa-form-card { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 32px; }
.oa-form-card h3 { color: var(--wp--preset--color--ink); font-size: 1.625rem; }
.oa-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-bottom: 18px; }
@media (max-width: 600px) { .oa-form-grid { grid-template-columns: minmax(0, 1fr); } }
.oa-form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
.oa-form-grid .oa-full { grid-column: 1 / -1; }
.oa-form-grid > p:empty { display: none; }
.oa-form-card fieldset p { margin: 0; }
.oa-form-card input[type="text"], .oa-form-card input[type="email"], .oa-form-card input[type="tel"], .oa-form-card select, .oa-form-card textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; font-weight: 400; padding: 11px 12px; border: 1px solid #bfb3c0; border-radius: 6px; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }
.oa-form-card input[type="submit"] { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--white); border: 0; border-radius: 6px; padding: 14px 26px; font-family: var(--wp--preset--font-family--titres); font-weight: 700; font-size: 1.1875rem; cursor: pointer; }
.oa-form-card .oa-note { margin-top: 12px; }
.oa-form-card textarea { min-height: 150px; resize: vertical; }
.oa-form-card fieldset { border: 0; padding: 0; margin: 0; }
.oa-form-card legend { font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; padding: 0; }
.oa-form-card .wpcf7-list-item { display: block; margin: 4px 0; }
.oa-form-card .wpcf7-list-item label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 1rem; }
.oa-form-card input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--wp--preset--color--primary); }

/* Pied de page : 3 colonnes (logo et phrase, liens, logos bio), filet vert en haut */
.oa-footer { background: var(--wp--preset--color--deep); color: #eadbe8; padding-block: 56px; border-top: 4px solid var(--wp--preset--color--secondary); }
.oa-footer-cols { gap: 32px 56px; margin: 0; }
.oa-footer-brand { display: flex; align-items: center; gap: 22px; }
.oa-footer-brand > * { margin: 0 !important; }
.oa-footer-brand .wp-block-site-logo { flex-shrink: 0; }
.oa-footer .oa-slogan { color: #eadbe8; font-family: var(--wp--preset--font-family--texte); font-weight: 400; font-size: 1rem; line-height: 1.55; max-width: 420px; }
.oa-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.oa-footer-links a { color: var(--wp--preset--color--white); text-decoration: none; font-family: var(--wp--preset--font-family--titres); font-weight: 600; font-size: 1.0625rem; }
.oa-footer-links a:hover, .oa-footer-links a:focus-visible { color: var(--wp--preset--color--secondary); text-decoration: underline; }
.oa-footer-bio { display: flex; justify-content: flex-end; }
.oa-footer .oa-logos-bio img { width: 140px; background: var(--wp--preset--color--white); padding: 8px; border-radius: 8px; }
@media (max-width: 781px) { .oa-footer-bio { justify-content: flex-start; } }

/* Page S'inscrire / Nous contacter : texte à gauche, formulaire à droite (maquette validée) */
.oa-contact-cols { gap: 32px 56px; }
.oa-contact-text h2, .oa-contact-cols .oa-form-card h2 { font-size: 1.75rem; }
.oa-contact-text h2:not(:first-child) { margin-top: 32px; }

/* « Discutons-en ! » mène à la page d'inscription */
.oa-infos h3 a { color: var(--wp--preset--color--primary); text-decoration: none; }
.oa-infos h3 a::after { content: " →"; }
.oa-infos h3 a:hover { text-decoration: underline; }

/* Pages de texte (modèle « page », ex. mentions légales) : titres de section à taille raisonnable */
main.oa-section .wp-block-post-content h2 { font-size: 1.625rem; margin-top: 2em; }
main.oa-section .wp-block-post-content h3 { font-size: 1.25rem; }
