/* ==========================================================================
   Oumy Nails Academy — styles principaux
   Palette issue du logo : corail pailleté, rouge profond, pêche, noir.
   ========================================================================== */

:root {
	--c-primary: #E8452C;
	--c-primary-rgb: 232, 69, 44;
	--c-secondary: #B3261E;
	--c-accent: #F79A6B;
	--c-dark: #121010;
	--c-ink: #1E1A19;
	--c-muted: #6B5E5A;
	--c-line: #F0DDD4;
	--c-cream: #FFF6F1;
	--c-soft: #FDEDE6;
	--c-white: #fff;
	--c-teal: #2FA4B4;

	--grad-glitter: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 45%, var(--c-secondary) 100%);
	--sparkle:
		radial-gradient(circle at 20% 30%, rgba(255, 235, 220, .9) 0 1px, transparent 1.6px),
		radial-gradient(circle at 70% 60%, rgba(255, 210, 160, .8) 0 1.2px, transparent 2px),
		radial-gradient(circle at 40% 85%, rgba(255, 255, 255, .7) 0 .8px, transparent 1.4px);

	--f-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-head: "Playfair Display", Georgia, "Times New Roman", serif;
	--f-script: "Dancing Script", "Brush Script MT", cursive;

	--radius: 18px;
	--radius-sm: 10px;
	--radius-lg: 28px;
	--shadow-sm: 0 2px 8px rgba(30, 26, 25, .06);
	--shadow: 0 14px 40px -12px rgba(30, 26, 25, .18);
	--shadow-glow: 0 18px 40px -14px rgba(var(--c-primary-rgb), .6);
	--header-h: 78px;
	--ease: cubic-bezier(.22, .8, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--c-ink);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-secondary); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	font-weight: 700;
	line-height: 1.2;
	color: var(--c-ink);
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
::selection { background: var(--c-primary); color: #fff; }
:focus-visible { outline: 3px solid rgba(var(--c-primary-rgb), .45); outline-offset: 2px; border-radius: 4px; }

.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:focus {
	clip: auto; width: auto; height: auto; z-index: 100000; top: 8px; left: 8px;
	padding: 10px 16px; background: #fff; color: var(--c-ink); border-radius: 8px; box-shadow: var(--shadow);
}

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1340px; }

/* ---------- Boutons ---------- */
.btn,
.wp-block-button__link,
button[type="submit"]:not(.search-submit):not([class*="tutor-"]):not([class*="elementor"]),
input[type="submit"]:not([class*="elementor"]) {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.6em;
	font-family: var(--f-body); font-size: .95rem; font-weight: 600; line-height: 1.2;
	border-radius: 999px; border: 2px solid transparent; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
	text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary,
.wp-block-button__link,
button[type="submit"]:not(.search-submit):not([class*="tutor-"]):not([class*="elementor"]),
input[type="submit"]:not([class*="elementor"]) {
	background: var(--grad-glitter); color: #fff; box-shadow: var(--shadow-glow);
}
.btn--primary:hover, .wp-block-button__link:hover { color: #fff; box-shadow: 0 22px 44px -14px rgba(var(--c-primary-rgb), .75); }
.btn--dark { background: var(--c-dark); color: #fff; }
.btn--dark:hover { background: var(--c-primary); color: #fff; }
.btn--light { background: #fff; color: var(--c-secondary); }
.btn--light:hover { color: var(--c-primary); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--c-ink); }
.btn--outline { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--sm { padding: .55em 1.1em; font-size: .88rem; }
.btn--lg { padding: 1em 2em; font-size: 1rem; }
.btn .icon { flex-shrink: 0; }

/* ---------- Bandeau d'annonce ---------- */
.announcement {
	background: var(--grad-glitter); color: #fff; font-size: .85rem; font-weight: 500;
	text-align: center; padding: 8px 0;
}
.announcement .icon { display: inline-block; vertical-align: -3px; }

/* ---------- En-tête ---------- */
.site-header {
	position: relative; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid rgba(240, 221, 212, .7);
	transition: box-shadow .3s;
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar.has-sticky-header .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 8px 30px -14px rgba(30, 26, 25, .25); }
.site-header > .container, .announcement > .container { max-width: 1340px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.site-logo { display: flex; align-items: center; gap: 12px; color: var(--c-ink); flex-shrink: 0; }
.site-logo:hover { color: var(--c-ink); }
.site-logo__img { width: auto; height: 58px; max-width: 160px; object-fit: contain; }
/* Taille du logo verrouillée : WooCommerce et d'autres extensions imposent « height: auto » aux images */
.site-header .site-logo .site-logo__img { width: auto !important; height: 58px !important; max-width: 160px !important; max-height: none; }
.site-footer .site-logo .site-logo__img { width: auto !important; height: 72px !important; max-width: 180px !important; }
.site-logo__name, .site-logo__tagline { white-space: nowrap; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__name { font-family: var(--f-script); font-size: 1.65rem; font-weight: 700; color: var(--c-primary); }
.site-logo__tagline { font-size: .66rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--c-ink); }

.main-nav { margin-left: auto; }
.main-nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block; padding: 10px 14px; font-size: .94rem; font-weight: 500; color: var(--c-ink);
	border-radius: 999px; transition: background .2s, color .2s;
}
.main-nav .menu > li > a:hover,
.main-nav .menu > .current-menu-item > a,
.main-nav .menu > .current_page_item > a,
.main-nav .menu > .current-menu-ancestor > a { color: var(--c-primary); background: var(--c-soft); }
.main-nav .sub-menu, .main-nav .children {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
	list-style: none; margin: 0; padding: 8px; background: #fff;
	border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--c-line);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.main-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { border-radius: var(--radius-sm); }
.main-nav .sub-menu a:hover { background: var(--c-soft); color: var(--c-primary); }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-3px) rotate(45deg); }
.main-nav__mobile-actions { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 6px; }
.site-header__actions { margin-left: 8px; }
.main-nav .menu > li > a { white-space: nowrap; }
.icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--c-ink); cursor: pointer; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--c-soft); color: var(--c-primary); }
.cart-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: var(--c-primary); color: #fff; font-size: .68rem; font-weight: 700;
	line-height: 18px; text-align: center;
}
.cart-count.is-empty { display: none; }
.header-account { margin-left: 6px; }
.menu-toggle { display: none; }
.menu-toggle__close { display: none; }

.header-search { border-top: 1px solid var(--c-line); padding: 16px 0; background: #fff; }

.search-form { position: relative; display: flex; max-width: 640px; margin: 0 auto; }
.search-field {
	flex: 1; width: 100%; padding: 14px 56px 14px 22px; font: inherit; font-size: .95rem;
	border: 2px solid var(--c-line); border-radius: 999px; background: #fff; color: var(--c-ink);
	transition: border-color .2s, box-shadow .2s;
}
.search-field:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(var(--c-primary-rgb), .12); }
.search-submit {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	width: 42px; height: 42px; border: 0; border-radius: 50%;
	background: var(--grad-glitter); color: #fff; cursor: pointer; display: grid; place-items: center;
}

/* ---------- Héros ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--c-dark); color: #fff;
	padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.hero__glow {
	position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(600px 420px at 78% 45%, rgba(var(--c-primary-rgb), .55), transparent 70%),
		radial-gradient(500px 360px at 10% 110%, rgba(179, 38, 30, .45), transparent 70%),
		radial-gradient(380px 300px at 0% 0%, rgba(247, 154, 107, .18), transparent 70%);
}
.hero__sparkles {
	position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
	background-image: var(--sparkle);
	background-size: 46px 46px, 73px 73px, 101px 101px;
	animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .18; } to { opacity: .45; } }

.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; margin-bottom: 22px;
	font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--c-accent); background: rgba(var(--c-primary-rgb), .14);
	border: 1px solid rgba(var(--c-primary-rgb), .35); border-radius: 999px;
}
.hero__title { color: #fff; font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.08; margin-bottom: 22px; }
.hero__title::after {
	content: ""; display: block; width: 90px; height: 5px; margin-top: 22px; border-radius: 5px;
	background: var(--grad-glitter);
}
.hero__text { font-size: clamp(1rem, 1.4vw, 1.12rem); color: rgba(255, 255, 255, .78); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; }
.hero__stats li {
	display: flex; flex-direction: column; min-width: 130px; padding: 14px 20px;
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
}
.hero__stats strong { font-family: var(--f-head); font-size: 1.6rem; line-height: 1.1; color: #fff; }
.hero__stats span { font-size: .8rem; color: rgba(255, 255, 255, .6); }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__ring {
	position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
	border: 2px dashed rgba(247, 154, 107, .35); animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__img { position: relative; width: 100%; max-width: 500px; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); animation: float 7s ease-in-out infinite; }
.hero__img--photo { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 8px solid transparent; background: var(--grad-glitter) border-box; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero__chip {
	position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
	background: #fff; color: var(--c-ink); font-size: .85rem; font-weight: 600;
	border-radius: 999px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.hero__chip .icon { color: var(--c-primary); }
.hero__chip--1 { left: 0; bottom: 18%; }
.hero__chip--2 { right: 2%; top: 12%; animation-delay: -3s; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.section--soft { background: var(--c-cream); }
.section--page { padding: clamp(40px, 6vw, 80px) 0; }
.section--tutor { padding-top: 32px; }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.script-title { display: block; font-family: var(--f-script); font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--c-primary); line-height: 1; margin-bottom: 6px; }
.section-title { margin-bottom: 14px; }
.section-text { color: var(--c-muted); margin: 0; }
.section-foot { text-align: center; margin-top: 48px; }
.empty-note { text-align: center; color: var(--c-muted); padding: 40px; background: var(--c-cream); border-radius: var(--radius); }

.section--dark { background: var(--c-dark); color: rgba(255, 255, 255, .8); overflow: hidden; isolation: isolate; }
.section--dark .section-title, .section--dark h3 { color: #fff; }
.section--dark::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(600px 400px at 100% 0%, rgba(var(--c-primary-rgb), .28), transparent 70%), radial-gradient(500px 400px at 0% 100%, rgba(179, 38, 30, .25), transparent 70%);
}

/* ---------- Cartes de cours ---------- */
.course-grid, .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-grid--2 { grid-template-columns: repeat(2, 1fr); }
.no-sidebar .post-grid--2 { grid-template-columns: repeat(3, 1fr); }
.course-grid > div, .post-grid > div { display: flex; }
.course-card, .post-card {
	display: flex; flex-direction: column; width: 100%;
	background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.course-card:hover, .post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.course-card__media, .post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-soft); }

.site-logo__img, .hero__img, .about__frame img, .entry-thumb img { display: block; }
.course-card__media img, .post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.course-card:hover .course-card__media img, .post-card:hover .post-card__media img { transform: scale(1.06); }
.course-card__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
	background: var(--sparkle), var(--grad-glitter); background-size: 30px 30px, 50px 50px, 70px 70px, cover;
}
.course-card__badge {
	position: absolute; top: 14px; left: 14px; padding: 5px 12px;
	font-size: .72rem; font-weight: 600; letter-spacing: .04em;
	color: var(--c-ink); background: rgba(255, 255, 255, .94); border-radius: 999px;
}
.course-card__body, .post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.course-card__rating { display: flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--c-muted); margin-bottom: 8px; }
.course-card__rating .icon { color: #F5A623; }
.course-card__rating strong { color: var(--c-ink); }
.course-card__title, .post-card__title { font-size: 1.18rem; margin-bottom: 12px; }
.course-card__title a, .post-card__title a { color: var(--c-ink); }
.course-card__title a:hover, .post-card__title a:hover { color: var(--c-primary); }
.course-card__meta { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .85rem; color: var(--c-muted); }
.course-card__meta li { display: flex; align-items: center; gap: 6px; }
.course-card__meta .icon { color: var(--c-primary); }
.course-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--c-line); }
.price { font-family: var(--f-head); font-size: 1.2rem; font-weight: 700; color: var(--c-ink); }
.price del { font-size: .85rem; color: var(--c-muted); font-weight: 400; margin-right: 4px; }
.price ins { text-decoration: none; color: var(--c-primary); }
.price--free { color: #1E9E6A; }
.course-card__link { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; }
.course-card__link .icon { transition: transform .25s; }
.course-card__link:hover .icon { transform: translateX(4px); }
.post-card__excerpt { font-size: .93rem; color: var(--c-muted); margin-bottom: 14px; }
.post-card__excerpt p { margin: 0; }
.post-card .course-card__link { margin-top: auto; }

/* ---------- Points forts ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
	text-align: center;
	padding: 34px 26px; border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
	transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.feature:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .07); border-color: rgba(var(--c-primary-rgb), .5); }
.feature__icon {
	display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px;
	border-radius: 18px; color: #fff; background: var(--grad-glitter); box-shadow: var(--shadow-glow);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { font-size: .92rem; margin: 0; color: rgba(255, 255, 255, .65); }

.steps {
	counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
	list-style: none; margin: 56px 0 0; padding: 26px; border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
}
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; color: #fff; font-size: .95rem; }
.steps__num {
	flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	font-family: var(--f-head); font-weight: 700; color: var(--c-primary); background: #fff;
}

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about__frame {
	position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
	overflow: hidden; background: var(--c-dark); box-shadow: var(--shadow);
}
.about__frame::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	border: 8px solid transparent; background: var(--grad-glitter) border-box;
	-webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__frame .about__logo { object-fit: contain; padding: 12%; }
.about__content p { color: var(--c-muted); font-size: 1.04rem; }
.checklist { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 500; font-size: .95rem; }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--grad-glitter);
}
.checklist li::after {
	content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Appel à l'action ---------- */
.section--cta { padding-top: 0; }
.section--soft + .section--cta { padding-top: clamp(64px, 8vw, 110px); background: var(--c-cream); }
.cta {
	position: relative; overflow: hidden; isolation: isolate; text-align: center;
	padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 64px); border-radius: 36px;
	background: var(--grad-glitter); color: #fff; box-shadow: var(--shadow-glow);
}
.cta__sparkles {
	position: absolute; inset: 0; z-index: -1; opacity: .6;
	background-image: var(--sparkle); background-size: 30px 30px, 47px 47px, 63px 63px;
}
.cta h2 { color: #fff; max-width: 720px; margin: 0 auto 14px; }
.cta p { max-width: 560px; margin: 0 auto 30px; color: rgba(255, 255, 255, .9); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Bannière de page ---------- */
.page-hero {
	position: relative; overflow: hidden; isolation: isolate; text-align: center;
	padding: clamp(48px, 7vw, 90px) 0; background: var(--c-dark); color: #fff;
}
.page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--sparkle), radial-gradient(500px 260px at 50% 120%, rgba(var(--c-primary-rgb), .55), transparent 70%);
	background-size: 46px 46px, 73px 73px, 101px 101px, cover;
}
.page-hero__title { color: #fff; margin: 0 auto; max-width: 900px; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero__title span { color: var(--c-accent); }
.page-hero__subtitle, .page-hero .archive-description { max-width: 640px; margin: 14px auto 0; color: rgba(255, 255, 255, .7); }
.page-hero__cats { margin-bottom: 14px; }
.page-hero__cats a { display: inline-block; padding: 4px 14px; margin: 0 3px; border-radius: 999px; background: rgba(var(--c-primary-rgb), .2); color: var(--c-accent); font-size: .8rem; font-weight: 600; }
.page-hero .entry-meta { justify-content: center; margin-top: 16px; color: rgba(255, 255, 255, .65); }

/* ---------- Mise en page avec barre latérale ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.no-sidebar .layout { grid-template-columns: minmax(0, 1fr); }
.no-sidebar .layout > .entry { max-width: 820px; margin: 0 auto; width: 100%; }
.layout__side { position: sticky; top: calc(var(--header-h) + 24px); }
.widget { padding: 26px; margin-bottom: 24px; background: var(--c-cream); border-radius: var(--radius); }
.widget-title { font-size: 1.1rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--grad-glitter); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--c-ink); }
.widget a:hover { color: var(--c-primary); }
.widget .search-form { max-width: none; }

/* ---------- Contenu ---------- */
.entry-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--c-muted); margin-bottom: 10px; }
.entry-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.entry-thumb { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; }
.entry-thumb img { width: 100%; }
.entry-content { font-size: 1.04rem; }
.entry-content > * { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote, .wp-block-quote {
	margin: 2em 0; padding: 24px 28px; border-left: 4px solid var(--c-primary);
	background: var(--c-cream); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--f-head); font-size: 1.15rem; font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--c-line); text-align: left; }
.entry-content th { background: var(--c-cream); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content pre { overflow: auto; padding: 18px; background: var(--c-dark); color: #f3e7e2; border-radius: var(--radius-sm); }
.alignwide { max-width: 1180px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: 8px; }
.sticky .post-card { border-color: var(--c-primary); }

.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.entry-tags a { padding: 5px 14px; font-size: .82rem; border-radius: 999px; background: var(--c-soft); color: var(--c-secondary); }

.post-navigation { margin: 40px 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 18px 22px; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink); transition: border-color .2s; }
.post-navigation a:hover { border-color: var(--c-primary); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-primary); }
.nav-title { font-weight: 600; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
	border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-ink); font-weight: 600;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--grad-glitter); color: #fff; border-color: transparent; }

/* ---------- Formulaires ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], textarea, select {
	width: 100%; padding: 12px 16px; font: inherit; font-size: .95rem; color: var(--c-ink);
	background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm);
	transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(var(--c-primary-rgb), .12); }
label { font-weight: 500; font-size: .92rem; }

/* ---------- Commentaires ---------- */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--c-line); }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 22px; margin-bottom: 16px; border-radius: var(--radius); background: var(--c-cream); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8rem; margin: 4px 0 10px; }
.comment-metadata a { color: var(--c-muted); }
.comment-form p { margin-bottom: 16px; }

/* ---------- 404 & vide ---------- */
.error-404, .empty-state { text-align: center; }
.error-404__code {
	display: block; font-family: var(--f-head); font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1;
	background: var(--grad-glitter); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-404 .search-form, .empty-state .search-form { margin: 28px auto; }
.empty-state { padding: 48px 24px; background: var(--c-cream); border-radius: var(--radius-lg); }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: var(--c-dark); color: rgba(255, 255, 255, .65); font-size: .93rem; }
.glitter-line { height: 5px; background: var(--sparkle), var(--grad-glitter); background-size: 12px 12px, 18px 18px, 24px 24px, cover; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.site-footer .site-logo__name { color: var(--c-accent); }
.site-footer .site-logo__tagline { color: rgba(255, 255, 255, .7); }
.site-logo--footer { margin-bottom: 18px; }
.site-logo--footer .site-logo__img { height: 72px; }
.site-footer .widget-title { color: #fff; font-family: var(--f-body); font-size: 1rem; font-weight: 600; }
.site-footer .widget { padding: 0; background: none; }
.site-footer .widget li { border-color: rgba(255, 255, 255, .08); }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: var(--c-accent); }
.footer-menu, .footer-menu .menu, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu .menu { display: block; }
.site-footer__col .menu { list-style: none; margin: 0; padding: 0; }
.site-footer__col .menu li { margin-bottom: 10px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact .icon { flex-shrink: 0; color: var(--c-primary); margin-top: 3px; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	background: rgba(255, 255, 255, .06); color: #fff; transition: background .25s, transform .25s;
}
.social-links a:hover { background: var(--grad-glitter); color: #fff; transform: translateY(-3px); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .85rem; text-align: center; }

.whatsapp-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
	background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
	transition: transform .25s;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.whatsapp-float::before {
	content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
	animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) and (min-width: 961px) {
	.site-header__inner { gap: 16px; }
	.main-nav .menu a { padding: 8px 10px; font-size: .9rem; }
	.site-logo__tagline { display: none; }
	.header-account span { display: none; }
	.header-account { padding: .55em; }
}

@media (max-width: 1100px) {
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}


/* ---------- Menu mobile ----------
   Activé par la classe .is-mobile-nav sur <html> : sous 960 px, ou automatiquement
   dès que le menu ne tient plus sur une ligne (voir assets/js/main.js). */
.is-mobile-nav .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.is-mobile-nav .menu-toggle { display: inline-flex; }
.is-mobile-nav .hide-mobile { display: none; }
.is-mobile-nav .site-header__actions { margin-left: auto; }
.is-mobile-nav .main-nav {
		position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(86vw, 360px);
		margin: 0; padding: 90px 20px 30px; overflow-y: auto;
		background: #fff; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .3);
		transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
	}
.is-mobile-nav .nav-open .main-nav { transform: none; visibility: visible; }
.is-mobile-nav .nav-open .menu-toggle { position: relative; z-index: 70; }
.is-mobile-nav .nav-open .menu-toggle__open { display: none; }
.is-mobile-nav .nav-open .menu-toggle__close { display: block; }
.is-mobile-nav .nav-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(18, 16, 16, .5); }
.is-mobile-nav .nav-open { overflow: hidden; }
.is-mobile-nav .nav-open .site-header { z-index: 65; }
.is-mobile-nav .main-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
.is-mobile-nav .main-nav .menu a { padding: 12px 16px; font-size: 1rem; border-radius: var(--radius-sm); }
.is-mobile-nav .main-nav .sub-menu, .is-mobile-nav .main-nav .children {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
		padding: 0 0 0 14px; min-width: 0; display: none; background: transparent;
	}
.is-mobile-nav .main-nav li.is-open > .sub-menu { display: block; }
.is-mobile-nav .main-nav .menu-item-has-children > a::after { float: right; margin-top: 8px; }
.is-mobile-nav .main-nav__mobile-actions { display: block; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.is-mobile-nav .main-nav__mobile-actions .btn { width: 100%; margin: 0; padding: .55em 1.1em; }
.is-mobile-nav .main-nav__mobile-actions .header-account span { display: inline; }

@media (max-width: 960px) {
	:root { --header-h: 68px; }
	.site-header .site-logo .site-logo__img { height: 48px !important; }
	.site-logo__name { font-size: 1.4rem; }

	.hero__inner, .about { grid-template-columns: 1fr; }
	.hero__content { text-align: center; }
	.hero__title::after { margin-left: auto; margin-right: auto; }
	.hero__text { margin-left: auto; margin-right: auto; }
	.hero__actions, .hero__stats { justify-content: center; }
	.hero__visual { max-width: 420px; margin: 0 auto; order: -1; }
	.about__media { max-width: 420px; margin: 0 auto; width: 100%; }

	.course-grid, .post-grid, .no-sidebar .post-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.layout { grid-template-columns: 1fr; }
	.layout__side { position: static; }
}

@media (max-width: 640px) {
	body { font-size: 15px; }
	.container { padding: 0 16px; }
	.site-logo__text { display: none; }
	.icon-btn { width: 40px; height: 40px; }
	.course-grid, .post-grid, .post-grid--2, .no-sidebar .post-grid--2 { grid-template-columns: 1fr; gap: 22px; }
	.feature-grid, .steps, .checklist { grid-template-columns: 1fr; }
	.hero__actions .btn { width: 100%; }
	.hero__stats li { flex: 1 1 30%; min-width: 0; padding: 12px; text-align: center; }
	.hero__stats strong { font-size: 1.3rem; }
	.hero__chip { font-size: .75rem; padding: 8px 12px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.cta__actions .btn { width: 100%; }
	.whatsapp-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* ==========================================================================
   Elementor
   ========================================================================== */
.site-main--elementor { width: 100%; }
.site-main--elementor > .elementor,
.elementor-template-full-width .site-content > .elementor,
.elementor-page .site-main--elementor .entry-content { width: 100%; }
/* Les widgets Elementor gardent leurs propres styles */
.elementor .elementor-widget-heading .elementor-heading-title { margin: 0; }
.elementor a.elementor-button, .elementor .elementor-button { transform: none; }
.elementor-editor-active .js .reveal, .elementor-editor-active .reveal { opacity: 1; transform: none; }
.elementor-location-header + .site-content, .elementor-location-footer { width: 100%; }
