/*
 * Dala One — site officiel.
 * Palette : Purple Light #F5F0FA, Purple Bright #C3AFFF, Pawa Purple #7D3CFF,
 * Purple Deep #5021B4, Purple Dark #41128C, et les gris de la charte.
 *
 * Police : la charte utilise ES Build. Les fichiers du dossier LOGO sont une
 * version d'essai (« personal use only ») : interdits sur un site commercial.
 * En attendant la licence, Outfit (libre, Google Fonts) la remplace. Une fois la
 * licence achetée, déposer les .woff2 dans /assets/fonts et décommenter le bloc
 * @font-face ci-dessous : --font la prendra en premier.
 */

/*
@font-face { font-family: 'ES Build'; src: url('/assets/fonts/ESBuild-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'ES Build'; src: url('/assets/fonts/ESBuild-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'ES Build'; src: url('/assets/fonts/ESBuild-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'ES Build'; src: url('/assets/fonts/ESBuild-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
*/

:root {
  --purple-light: #F5F0FA;
  --purple-bright: #C3AFFF;
  --purple: #7D3CFF;
  --purple-deep: #5021B4;
  --purple-dark: #41128C;
  --grey-light: #F4F4F4;
  --grey-bright: #D3D3D3;
  --grey: #A4A4A4;
  --grey-deep: #555555;
  --grey-dark: #3D3D3D;
  --ink: #1C1530;
  --white: #FFFFFF;

  --font: 'ES Build', 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(65, 18, 140, 0.45);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.stack > * + * { margin-top: 1.1rem; }
.stack-sm > * + * { margin-top: 0.75rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--purple-dark); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--purple-bright); outline-offset: 3px; border-radius: 6px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-primary { background: var(--purple); color: var(--white); box-shadow: 0 10px 30px -10px rgba(125, 60, 255, .8); }
.btn-primary:hover { background: #6d2cf0; }
.btn-light { background: var(--white); color: var(--purple-dark); }
.btn-light:hover { background: var(--purple-light); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--purple-bright); margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--purple); }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(28, 21, 48, .08); }
/* Sur WordPress, connecté : l'en-tête se cale sous la barre d'administration. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.nav { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand .logo { height: 26px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--grey-dark); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--purple); }

/* Sous-menu de « Nos solutions » : s'ouvre au survol (ou au clavier) sur ordinateur. */
.nav-item { position: relative; display: flex; align-items: center; }
.has-sub > a { display: inline-flex; align-items: center; gap: 6px; }
.has-sub > a::after {
  content: ''; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg);
  transition: transform .2s ease;
}
.has-sub:hover > a::after, .has-sub:focus-within > a::after { transform: translateY(3px) rotate(225deg); }
.nav-sub {
  position: absolute; top: calc(100% + 16px); left: 50%; z-index: 60; min-width: 280px; padding: 8px;
  background: var(--white); border: 1px solid #ece4f8; border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* passerelle pour garder le survol */
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-links .nav-sub-link { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; }
.nav-links .nav-sub-link:hover { background: var(--purple-light); }
.nav-sub-link strong { color: var(--purple-dark); font-size: .95rem; font-weight: 700; }
.nav-sub-link small { color: var(--grey-deep); font-size: .85rem; font-weight: 400; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn-light { background: var(--purple); color: var(--white); }
.nav-actions .btn-light:hover { background: #6d2cf0; }
.lang {
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--purple-dark); background: transparent;
  border: 1.5px solid var(--grey-bright); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(800px 480px at 88% 0%, rgba(195, 175, 255, .55), transparent 62%),
    radial-gradient(600px 420px at 0% 100%, rgba(125, 60, 255, .10), transparent 60%),
    linear-gradient(180deg, var(--purple-light) 0%, var(--white) 100%);
  padding: 72px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 14ch; }
.lead { font-size: 1.18rem; color: var(--grey-dark); margin-top: 1.4rem; max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.hero-points li::before { content: '✓'; color: var(--purple-bright); font-weight: 700; margin-right: 8px; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 104px 0; }
.section-tint { background: var(--purple-light); }
.section-head { max-width: 46rem; margin-bottom: 56px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid #ece4f8; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 18px 0 10px; color: var(--purple-dark); }
.card p { color: var(--grey-deep); font-size: 1rem; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--purple-light); color: var(--purple); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.card-outline { background: transparent; border: 1.5px solid #e6dcf6; }
.card-outline:hover { box-shadow: none; transform: none; border-color: var(--purple-bright); }
.card-outline h3 { margin-top: 0; }
.values { list-style: none; padding: 0; margin: 0; color: var(--grey-deep); font-size: 1rem; }
.values li + li { margin-top: 8px; }
.values strong { color: var(--purple-dark); }



.hero h1 { max-width: 12ch; }
.hero .accent { color: var(--purple); }

/* Pages WordPress : bandeau de titre et appel à prendre contact */
.page-hero { padding: 72px 0 64px; }
.page-hero h1 { max-width: none; }
.nav-links a[aria-current="page"] { color: var(--purple); }
.cta-band { background: linear-gradient(180deg, var(--white) 0%, var(--purple-light) 100%); text-align: center; }
.cta-band .container { max-width: 46rem; }
.cta-band p { margin: 1rem auto 2rem; font-size: 1.1rem; color: var(--grey-dark); }
/* Texte ou section masqué depuis l'admin (mode modification de la page). */
body:not(.dalaone-editing) [data-dalaone-hidden] { display: none !important; }

.page-content { max-width: 46rem; }
/* Pages de texte (politique de confidentialité, etc.) */
.page-content h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 2.4rem 0 .8rem; color: var(--purple-dark); }
.page-content p { margin: 0 0 1rem; }
.page-content ul { margin: 0 0 1.2rem; padding-left: 1.2rem; display: grid; gap: .5rem; }
.page-content a { color: var(--purple-deep); }

/* Vérification anti-robot (Turnstile) : n'occupe de place que si elle s'affiche. */
.turnstile:not(:empty) { margin: 4px 0 16px; }
.hero .eyebrow { color: var(--purple); }
.hero .btn-ghost { color: var(--purple-dark); border-color: var(--purple-bright); }
.hero .btn-ghost:hover { background: var(--white); }

/* Hero illustration: one core, four pillars */
.orbit { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(125, 60, 255, .18); }
.ring-1 { inset: 0; }
.ring-2 { inset: 18%; border-style: dashed; border-color: rgba(125, 60, 255, .3); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring-2 { animation: none; } }
.orbit-core {
  position: absolute; inset: 34%; border-radius: 28%; background: var(--white);
  display: grid; place-items: center; box-shadow: 0 30px 60px -24px rgba(65, 18, 140, .45), 0 0 0 12px rgba(125, 60, 255, .12);
}
.orbit-core img { width: 70%; height: auto; }
.orbit-node {
  position: absolute; transform: translate(-50%, -50%); background: var(--white);
  border: 1px solid var(--purple-bright); color: var(--purple-dark); box-shadow: 0 10px 24px -14px rgba(65, 18, 140, .5);
  font-weight: 600; letter-spacing: .02em; padding: 10px 18px; border-radius: 999px; font-size: 1rem;
}
.n-create { left: 50%; top: 0; }
.n-grow { left: 100%; top: 50%; }
.n-learn { left: 50%; top: 100%; }
.n-build { left: 0; top: 50%; }

.prose p { color: var(--grey-dark); font-size: 1.1rem; }
.prose .prose-lead { color: var(--purple-dark); font-size: 1.3rem; font-weight: 500; line-height: 1.5; }
.section-sub { margin-top: 1rem; font-size: 1.1rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.pillar-word { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); background: var(--purple-light); padding: 6px 12px; border-radius: 999px; }
.pillar h3 { margin-top: 18px; }

.division-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: var(--white); background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%); }

.section-dark { background: linear-gradient(160deg, #1f0b45 0%, var(--purple-dark) 100%); color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, .78); }
/* « Nos solutions » : fond clair, cartes blanches, textes sombres bien lisibles. */
.section-solutions {
  background:
    radial-gradient(720px 420px at 92% 0%, rgba(195, 175, 255, .35), transparent 65%),
    linear-gradient(180deg, var(--white) 0%, #fbf8ff 100%);
}
.product {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 28px;
  border-radius: var(--radius); background: var(--white); border: 1px solid #ece4f8;
  box-shadow: 0 18px 40px -30px rgba(65, 18, 140, .35);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.product h3 { margin: 18px 0 8px; color: var(--ink); font-size: 1.3rem; }
.product p { color: var(--grey-deep); font-size: 1rem; margin: 0 0 18px; }
.product-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 700;
  color: var(--white); background: linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 100%); overflow: hidden;
}
.product-badge img { width: 100%; height: 100%; object-fit: contain; background: var(--white); padding: 6px; }
.product-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--purple); }
a.product:hover .product-link { text-decoration: underline; text-underline-offset: 4px; }
.product-soon {
  align-self: flex-start; margin-top: auto; padding: 5px 10px; border-radius: 999px;
  background: var(--purple-light); color: var(--purple-deep); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* « Ce qui nous rassemble » : bandeau violet, quatre cartes blanches et numéros en pastille. */
.section-why { background: linear-gradient(150deg, #2a0f5c 0%, var(--purple-deep) 55%, var(--purple) 100%); }
.section-why .section-head h2 { color: var(--white); }
.section-why .eyebrow { color: var(--purple-bright); }
.why { gap: 18px; }
.why > div {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 28px 26px 26px;
  box-shadow: 0 24px 50px -30px rgba(10, 4, 30, .6); transition: transform .2s ease;
}
.why > div:hover { transform: translateY(-4px); }
.why-n {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--purple-light); color: var(--purple); font-size: 1rem; font-weight: 800; letter-spacing: .02em;
}
.why h3 { margin: 18px 0 8px; color: var(--ink); font-size: 1.3rem; }
.why > div { display: flex; flex-direction: column; }
.why p { color: var(--grey-deep); margin: 0 0 18px; font-size: .98rem; }
/* Listes alignées en bas des cartes, quelle que soit la longueur du texte. */
.why-list { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid #efe8fa; display: grid; gap: 10px; }
.why-list li { position: relative; padding-left: 26px; font-size: .94rem; font-weight: 500; color: var(--grey-dark); }
.why-list li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--purple-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D3CFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-intro p { color: var(--grey-dark); font-size: 1.1rem; margin-top: 1rem; }
.contact-form { background: var(--white); border-radius: 24px; padding: 36px; border: 1px solid #ece4f8; box-shadow: var(--shadow); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; color: var(--purple-dark); }
.field small { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  border: 1.5px solid var(--grey-bright); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(125, 60, 255, .15); }
.field .invalid { border-color: #DC2626; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: var(--purple-deep); font-weight: 600; }
.form-status.error { color: #B91C1C; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid #ece4f8; padding: 56px 0 28px; background: var(--white); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-grid .logo { height: 24px; width: auto; }
.footer-grid p { color: var(--grey-deep); max-width: 26rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; }
.footer-links a { text-decoration: none; color: var(--grey-dark); font-weight: 500; }
.footer-links a:hover { color: var(--purple); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid #f0eaf9; color: var(--grey); font-size: .9rem; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .two-col, .contact { grid-template-columns: 1fr; gap: 48px; }
  .grid, .grid-4 { grid-template-columns: 1fr 1fr; }
  .orbit { max-width: 360px; margin: 0 auto; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }

  /* Menu mobile : le bouton ouvre la liste des pages sous l'en-tête. */
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 11px; cursor: pointer;
    background: transparent; border: 1.5px solid var(--grey-bright); border-radius: 999px;
  }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--purple-dark); transition: transform .2s ease, opacity .2s ease; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0; margin: 0;
    position: absolute; top: 72px; left: 0; right: 0; padding: 8px 24px 20px;
    background: var(--white); box-shadow: 0 16px 32px rgba(28, 21, 48, .1);
  }
  .menu-open .nav-links a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid #f0eaf9; }
  /* Menu mobile : le sous-menu est toujours déplié, en retrait sous « Nos solutions ». */
  .menu-open .nav-item { display: block; }
  .menu-open .has-sub > a { display: flex; }
  .menu-open .has-sub > a::after { display: none; }
  .menu-open .nav-sub {
    position: static; min-width: 0; padding: 0 0 0 16px; border: 0; border-radius: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .menu-open .nav-sub::before { display: none; }
  .menu-open .nav-links .nav-sub-link { padding: 12px 0; border-radius: 0; }
  .menu-open .nav-links .nav-sub-link:hover { background: none; }
}
@media (min-width: 961px) {
  .menu-toggle { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .menu-open .nav-links { padding: 8px 16px 20px; }
  .nav { gap: 16px; }
  .nav-actions { gap: 8px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .grid, .grid-4 { grid-template-columns: 1fr; }
  /* Keep the side labels inside the screen: they sit half outside the circle. */
  .orbit { width: calc(100% - 110px); }
  .orbit-node { font-size: .88rem; padding: 8px 14px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
