/*
Theme Name: SCS Ambition Group
Theme URI: https://scsambitiongroup.com/
Author: SCS Ambition Group
Description: Thème léger et accessible du groupe SCS Ambition, sans constructeur de pages. Charte : blanc, noir #1C1F1F, rouge #E73133, police Inter.
Version: 2.5.1
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: scs-ambition
*/

/* ---------- Police (auto-hébergée, sous-ensemble latin) ---------- */
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-var-latin.woff") format("woff");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Jetons de la charte ---------- */
:root {
	--ink: #1C1F1F;
	--ink-2: #2A2E2E;
	--grey-700: #3F4242;
	--grey-500: #6B6F6F;
	--grey-200: #D9DADA;
	--grey-100: #ECECEC;
	--grey-50: #F6F6F6;
	--white: #FFFFFF;
	--crimson: #E73133;      /* grands titres, aplats, décor */
	--red-deep: #9F1417;     /* boutons et petits textes rouges (contraste AA) */
	--red-darker: #68000B;
	--rose: #FFA2A2;
	--blush: #FFF2F1;
	--blush-2: #FFE1DF;
	--radius: 20px;
	--wrap: 1240px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--red-deep); }
a:hover { color: var(--red-darker); }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 20px; border-radius: 9999px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; color: var(--white); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding: 104px 0; }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); }
.h-section { font-size: clamp(2.125rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--grey-700); }

/* ---------- Pages construites dans l'éditeur (blocs) ----------
   Les blocs Groupe ajoutent leurs propres marges : on les neutralise pour que
   la mise en page vienne uniquement du CSS de la page (boîte « Code de la page »). */
/* Sur un thème classique, WordPress ajoute dans chaque Groupe une boîte intérieure
   (.wp-block-group__inner-container) : on la rend « transparente » pour que les grilles
   et flex des sections s'appliquent directement aux blocs qu'elles contiennent. */
.wp-block-group__inner-container { display: contents; }
.contenu-blocs :where(.wp-block-group, .wp-block-group__inner-container) > *, .contenu-blocs > * { margin-block: 0; }
.contenu-blocs mark, .contenu-blocs mark.has-inline-color { background: none; }

/* ---------- Liens ----------
   Pas de soulignement dans l'en-tête, le pied de page et les boutons ; au survol, le lien passe en gras.
   Dans le texte courant des pages (.entry), le soulignement reste : c'est ce qui permet
   de repérer un lien sans se fier à la couleur seule (RGAA, critère 10.6). */
.site-header a, .site-footer a, .btn { text-decoration: none; }
.site-header a:hover, .site-footer a:hover { text-shadow: 0 0 .65px currentColor, 0 0 .65px currentColor; } /* « gras » au survol, sans décalage */

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 9999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background .18s ease, color .18s ease; }
.btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .7; }
.btn--primary { background: var(--red-deep); color: var(--white); }
.btn--primary:hover { background: var(--red-darker); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light::before { background: var(--crimson); opacity: 1; }
.btn--light:hover { background: var(--blush); color: var(--ink); }
.btn--outline-light { border-color: var(--white); color: var(--white); }
.btn--outline-light::before { display: none; }
.btn--outline-light:hover { background: var(--white); color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--grey-100); }
.site-header__inner { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-logo img { height: 30px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--red-deep); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); }
.icon-btn:hover { background: var(--ink); color: var(--white); }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 9999px; border: 0; background: var(--ink); color: var(--white); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 1024px) {
	.menu-toggle { display: inline-flex; }
	.main-nav { display: none; order: 3; flex-basis: 100%; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 4px 0 12px; }
	.main-nav a { display: flex; padding: 10px 0; border-top: 1px solid var(--grey-100); }
	.header-actions .btn { display: none; }
}
@media (max-width: 600px) {
	.site-header__inner { min-height: 64px; }
	.site-logo img { height: 22px; }
	.header-actions .icon-btn { display: none; } /* LinkedIn reste dans le pied de page */
}


/* ---------- Pages simples (mentions, confidentialité…) ---------- */
.page-header { background: var(--ink); color: var(--white); padding: 72px 0 56px; }
.page-header h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.entry { max-width: 780px; margin: 0 auto; padding: 64px 24px 104px; font-size: 1.0625rem; line-height: 1.7; }
.entry h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 12px; line-height: 1.25; }
.entry h3 { font-size: 1.25rem; font-weight: 700; margin: 28px 0 10px; }
.entry p, .entry ul, .entry ol, .entry table { margin: 0 0 16px; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: 6px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 1rem; table-layout: fixed; }
.entry th, .entry td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--grey-200); vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
.entry th { background: var(--blush); font-weight: 700; }
.entry figure { margin: 0 0 16px; }
.entry .wp-block-table { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 72px 0 32px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-grid h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid p { color: var(--grey-200); }
.footer-logo img { height: 28px; width: auto; margin-bottom: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--grey-700); font-size: .875rem; color: var(--grey-200); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 767px) {
	.section { padding: 72px 0; }
}

/* ==========================================================================
   Protection contre les styles globaux d'Elementor
   Tant qu'Elementor reste actif (page MB France), ses « réglages du site »
   s'appliquent à toutes les pages (.elementor-kit-X h1, a, button…).
   Ces règles, plus précises, redonnent la main au thème.
   ========================================================================== */
body.scs-theme { font-family: var(--font); color: var(--ink); line-height: 1.6; }
body.scs-theme h1, body.scs-theme h2, body.scs-theme h3, body.scs-theme h4 { font-family: var(--font); color: inherit; text-transform: none; }
body.scs-theme .footer-grid h2 { color: var(--rose); text-transform: uppercase; }
body.scs-theme a { color: var(--red-deep); }
body.scs-theme a:hover { color: var(--red-darker); }
body.scs-theme a.btn--primary, body.scs-theme a.btn--primary:hover { color: var(--white); }
body.scs-theme a.btn--light, body.scs-theme a.btn--light:hover { color: var(--ink); }
body.scs-theme a.btn--outline-light { color: var(--white); }
body.scs-theme a.btn--outline-light:hover { color: var(--ink); }
body.scs-theme .main-nav a { color: var(--ink); }
body.scs-theme .main-nav a:hover, body.scs-theme .main-nav .current-menu-item > a { color: var(--red-deep); }
body.scs-theme a.icon-btn { color: var(--ink); }
body.scs-theme a.icon-btn:hover { color: var(--white); }
body.scs-theme .site-footer a { color: var(--white); }
body.scs-theme .skip-link, body.scs-theme .skip-link:focus { color: var(--white); }
body.scs-theme button.menu-toggle { background: var(--ink); color: var(--white); font-family: var(--font); border: 0; border-radius: 9999px; }
