/*
Theme Name: Euno Mundaï
Theme URI: https://justinemeurisseeuno.fr
Author: Justine Meurisse
Description: Thème WordPress du site fictif de précommande Euno, réalisé pour l'ECF CDUI.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: euno
*/

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --euno-purple: #6340ad;
  --euno-lavender: #e3d6f5;
  --euno-cream: #fbf6eb;
  --euno-ink: #1f1b2b;
  --euno-muted: #635e6e;
  --euno-border: #e0d6e5;
  --euno-night: #130f1f;
  --euno-mint: #8bd3b4;
  --euno-coral: #f56c61;
  --euno-sun: #ffc64f;
  --euno-radius: 24px;
  --euno-shadow: 0 18px 55px rgba(31, 27, 43, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--euno-ink); background: #fff; font-family: Inter, Arial, sans-serif; line-height: 1.6; }
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--euno-sun); outline-offset: 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 { position: fixed; left: 16px; top: -100px; z-index: 9999; padding: 12px 18px; background: #fff; color: var(--euno-ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(1000px, calc(100% - 48px)); margin-inline: auto; }
h1, h2, h3 { font-family: Fredoka, Inter, sans-serif; line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1rem; }
.eyebrow { color: var(--euno-purple); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--euno-muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px; background: var(--euno-purple); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(99,64,173,.24); }
.btn--outline { color: var(--euno-purple); background: #fff; border-color: var(--euno-purple); }
.btn--small { min-height: 44px; padding: 10px 20px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(224,214,229,.65); }
.header-inner { min-height: 92px; display: flex; align-items: center; gap: 30px; }
.brand img { width: 104px; max-height: 54px; object-fit: contain; }
.menu-toggle { display: none; margin-left: auto; padding: 10px; border: 0; background: transparent; font-size: 1.6rem; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; justify-content: center; gap: 28px; padding: 0; margin: 0; list-style: none; }
.main-nav a { font-size: .95rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--euno-purple); }

.hero { padding: 70px 0; background: var(--euno-cream); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .9fr; align-items: center; gap: 60px; }
.badge { display: inline-block; margin-bottom: 22px; padding: 7px 16px; border-radius: 999px; background: var(--euno-lavender); color: var(--euno-purple); font-size: .9rem; font-weight: 700; }
.hero h1 { max-width: 700px; margin-bottom: 22px; }
.hero .lead { max-width: 680px; font-size: 1.15rem; color: var(--euno-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-media img { width: 100%; aspect-ratio: 13 / 14; object-fit: cover; border-radius: 34px; box-shadow: var(--euno-shadow); }

.section { padding: 76px 0; }
.section--cream { background: var(--euno-cream); }
.section--lavender { background: var(--euno-lavender); }
.section-heading { max-width: 850px; margin: 0 auto 42px; text-align: center; }
.section-heading p { color: var(--euno-muted); font-size: 1.06rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { padding: 28px; border: 1px solid #eee7f0; border-radius: var(--euno-radius); background: #fff; box-shadow: 0 8px 30px rgba(31,27,43,.04); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--euno-lavender); color: var(--euno-purple); font-size: 1.5rem; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.split img { width: 100%; height: 420px; object-fit: cover; border-radius: 30px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.pill { padding: 8px 16px; border-radius: 999px; background: #fff; font-weight: 600; font-size: .9rem; }
.check-list { padding: 0; list-style: none; }
.check-list li { margin: 14px 0; font-weight: 600; }
.check-list li::before { content: '✓'; margin-right: 10px; color: var(--euno-purple); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; }
.cta-panel { padding: 72px 24px; color: #fff; background: var(--euno-purple); text-align: center; }
.cta-panel .btn { background: #fff; color: var(--euno-purple); }

.page-hero { padding: 70px 24px; background: var(--euno-cream); text-align: center; }
.page-hero p:last-child { color: var(--euno-muted); font-size: 1.05rem; }
.form-section { padding: 68px 0; }
.euno-form { max-width: 980px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--euno-border); border-radius: 12px; background: #fff; color: var(--euno-ink); font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--euno-purple); outline: 3px solid rgba(99,64,173,.18); }
fieldset.field { margin: 10px 0; padding: 0; border: 0; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option input { position: absolute; opacity: 0; }
.option span { display: inline-block; padding: 10px 18px; border: 1px solid var(--euno-border); border-radius: 999px; cursor: pointer; }
.option input:checked + span, .option input:focus-visible + span { background: var(--euno-lavender); border-color: var(--euno-purple); }
.colors { display: flex; flex-wrap: wrap; gap: 20px; }
.color-option input { position: absolute; opacity: 0; }
.color-option span { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.swatch { width: 64px; height: 64px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--euno-border); }
.color-option input:checked + span .swatch, .color-option input:focus-visible + span .swatch { box-shadow: 0 0 0 3px var(--euno-purple); }
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; }
.form-note { font-size: .88rem; color: var(--euno-muted); }
.notice { padding: 16px 20px; margin-bottom: 24px; border-radius: 12px; background: #e7f7ef; color: #175d42; }
.notice--error { background: #fff0ee; color: #8e2921; }
.hp-field { position: absolute !important; left: -9999px !important; }
.faq details { max-width: 1000px; margin: 12px auto; padding: 18px 22px; border-radius: 14px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 14px; color: var(--euno-muted); }

.confirmation { min-height: 630px; display: grid; place-items: center; padding: 80px 24px; background: var(--euno-cream); text-align: center; }
.confirmation-card { max-width: 900px; }
.success-icon { width: 90px; height: 90px; display: grid; place-items: center; margin: 0 auto 30px; border-radius: 50%; background: var(--euno-mint); font-size: 2.5rem; }
.steps { display: grid; gap: 14px; }
.step { padding: 17px 20px; border-radius: 14px; background: var(--euno-lavender); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: 1.5fr .85fr; gap: 54px; }
.contact-card { align-self: start; padding: 34px; border-radius: 22px; background: var(--euno-cream); }
.legal { padding: 64px 0; }
.legal section { padding: 22px 0; border-bottom: 1px solid var(--euno-border); }
.legal h2 { font-size: 1.55rem; }

.site-footer { padding: 48px 0 34px; background: var(--euno-night); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.mundai-link { display: inline-flex; flex-direction: column; gap: 8px; text-decoration: none; }
.mundai-logo { width: 150px; filter: brightness(0) invert(1); transform-origin: center; transition: filter .25s ease; }
.mundai-link:hover .mundai-logo, .mundai-link:focus-visible .mundai-logo { animation: mundai-hover .7s ease-in-out; filter: brightness(0) saturate(100%) invert(77%) sepia(34%) saturate(687%) hue-rotate(107deg) brightness(91%); }
@keyframes mundai-hover { 0%,100%{transform:translateY(0) rotate(0)} 35%{transform:translateY(-6px) rotate(-2deg) scale(1.04)} 70%{transform:translateY(-2px) rotate(2deg) scale(1.02)} }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 24px; }
.footer-nav a { text-decoration: none; }
.footer-small { color: #a69eb2; font-size: .78rem; }
.cookie-banner { position: fixed; z-index: 1000; right: 20px; bottom: 20px; width: min(440px, calc(100% - 40px)); padding: 22px; border: 1px solid var(--euno-border); border-radius: 18px; background: #fff; color: var(--euno-ink); box-shadow: var(--euno-shadow); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin-bottom: 14px; font-size: .9rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions button { min-height: 42px; padding: 9px 17px; border: 2px solid var(--euno-purple); border-radius: 999px; background: var(--euno-purple); color: #fff; font-weight: 700; cursor: pointer; }
.cookie-actions .cookie-refuse { background: #fff; color: var(--euno-purple); }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .container, .narrow { width: min(100% - 32px, 760px); }
  .header-inner { min-height: 76px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 20px; background: #fff; border-top: 1px solid var(--euno-border); box-shadow: var(--euno-shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 18px; }
  .hero { padding: 48px 0; }
  .hero-grid, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { max-height: 520px; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 4 / 3; }
  .split img { height: 340px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.9rem; }
  .section { padding: 58px 0; }
  .hero-grid { gap: 32px; }
  .hero-media img { aspect-ratio: 1; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .page-hero { padding: 54px 18px; }
  .colors { justify-content: space-between; gap: 12px; }
  .swatch { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
