/*
Theme Name: DJOU
Theme URI: https://djou.fr
Author: Alexandre
Description: Thème vitrine pour Djouher MEDAOURI – conseillère indépendante. Landing page sans catalogue public, accès boutique officielle et espace de commande réservé aux membres.
Version: 0.4.8
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: djou
*/

:root {
  --ink: #1F2A44;
  --muted: #6f6574;
  --cream: #faf6f1;
  --sand: #efe6dc;
  --gold: #C29B5B;
  --plum: #8E1B34;
  --white: #fff;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.2; margin: 0 0 .6em; }
a { color: var(--plum); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { padding: 20px 0; border-bottom: 1px solid var(--sand); background: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: Georgia, serif; font-size: 1.6rem; letter-spacing: .12em; text-decoration: none; color: var(--ink); }
.brand small { display: block; font-family: "Helvetica Neue", Arial, sans-serif; font-size: .7rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.main-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--ink); font-size: .95rem; }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--plum); color: var(--white); }
.btn-primary:hover { background: #6f1428; }
.btn-outline { border: 1.5px solid var(--plum); color: var(--plum); background: transparent; }
.btn-gold { background: var(--gold); color: var(--white); }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; background: radial-gradient(circle at 50% 0%, var(--sand), var(--cream) 70%); }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; color: var(--gold); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 780px; margin: 12px auto 18px; }
.hero p { max-width: 620px; margin: 0 auto 32px; color: var(--muted); font-size: 1.1rem; }

/* Paths */
.paths { padding: 64px 0; }
.paths h2, .steps h2, .about h2, .contact h2 { text-align: center; font-size: 2rem; }
.section-intro { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: 0 8px 30px rgba(43,34,48,.06); display: flex; flex-direction: column; }
.card .tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); margin-bottom: 8px; }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--muted); flex: 1; }
.card ul { color: var(--muted); padding-left: 18px; margin: 0 0 24px; }
.card .btn { align-self: flex-start; margin-top: 8px; }

/* Steps */
.steps { padding: 64px 0; background: var(--white); }
.steps ol { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--radius); background: var(--cream); }
.steps li::before { content: counter(s); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--plum); color: var(--white); font-weight: 700; margin-bottom: 12px; }
.steps li strong { display: block; margin-bottom: 6px; }
.steps li span { color: var(--muted); font-size: .95rem; }

/* About / Contact */
.about, .contact { padding: 64px 0; text-align: center; }
.about p, .contact p { max-width: 680px; margin: 0 auto 16px; color: var(--muted); }
.contact { background: var(--sand); }

/* Footer */
.site-footer { padding: 32px 0; font-size: .85rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }
.pro-link { opacity: .8; }

/* Pages internes */
.page-content { padding: 56px 0; }
.page-content .wrap { max-width: 820px; }
.notice { background: var(--white); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 8px; margin: 24px 0; }

@media (max-width: 700px) {
  .hero { padding: 64px 0 48px; }
}

/* Univers */
.universes { padding: 72px 0; }
.universes h2, .why h2 { text-align: center; font-size: 2rem; }
.uni-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.uni { background: var(--white); border-radius: var(--radius); padding: 30px 26px; box-shadow: 0 8px 30px rgba(43,34,48,.06); border-top: 3px solid var(--gold); }
.uni-icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 10px; }
.uni h3 { font-size: 1.35rem; }
.uni p { color: var(--muted); font-size: .95rem; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--cream); border: 1px solid var(--sand); border-radius: 999px; padding: 4px 12px; font-size: .8rem; color: var(--plum); }
.uni-cta { text-align: center; margin-top: 32px; color: var(--muted); }
.hero .btn + .btn { margin-left: 10px; }

/* Pourquoi */
.why { padding: 64px 0; background: var(--plum); color: var(--white); }
.why h2 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 32px; }
.why-grid strong { display: block; font-family: Georgia, serif; font-weight: 400; font-size: 1.2rem; margin-bottom: 6px; color: #f3dfbf; }
.why-grid span { opacity: .85; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Inscription */
.register-page .eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; color: var(--gold); }
.register-page .lead { color: var(--muted); font-size: 1.05rem; }
.mini-steps { list-style: none; counter-reset: m; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.mini-steps li { counter-increment: m; background: var(--white); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: .85rem; }
.mini-steps li::before { content: counter(m); display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--plum); color: #fff; align-items: center; justify-content: center; margin-right: 8px; font-size: .75rem; }
.djou-form { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: 0 8px 30px rgba(43,34,48,.06); }
.djou-form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.djou-form legend { font-family: Georgia, serif; font-size: 1.25rem; margin-bottom: 12px; color: var(--plum); }
.djou-form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.djou-form label small { font-weight: 400; color: var(--muted); }
.djou-form input[type=text], .djou-form input[type=email], .djou-form input[type=tel], .djou-form input[type=password], .djou-form select, .djou-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #ddd2c6; border-radius: 10px; font: inherit; font-weight: 400; background: var(--cream);
}
.djou-form input:focus, .djou-form select:focus, .djou-form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; background: #fff; }
.djou-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-check { margin: 0 !important; font-weight: 400 !important; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-block; padding: 8px 14px; border: 1px solid var(--sand); border-radius: 999px; background: var(--cream); }
.chip-check input:checked + span { background: var(--plum); color: #fff; border-color: var(--plum); }
.chip-check input:focus-visible + span { outline: 2px solid var(--gold); }
.consent { display: flex !important; gap: 10px; font-weight: 400 !important; align-items: flex-start; }
.consent input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-errors { background: #fdecec; border-left: 4px solid #c0392b; padding: 12px 18px; border-radius: 8px; margin-bottom: 20px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.djou-form button { border: 0; cursor: pointer; }
@media (max-width: 700px) { .djou-form .row { grid-template-columns: 1fr; gap: 0; } .djou-form { padding: 22px; } .hero .btn + .btn { margin: 10px 0 0; } }
.djou-form [hidden] { display: none !important; }

/* Correspondances */
.corr-page .wrap { max-width: var(--max); }
.corr-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
#corr-search { flex: 1 1 320px; padding: 12px 16px; border: 1px solid #ddd2c6; border-radius: 999px; font: inherit; background: #fff; }
.corr-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.corr-filters button { border: 1px solid var(--sand); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit; font-size: .9rem; }
.corr-filters button.is-active { background: var(--plum); color: #fff; border-color: var(--plum); }
.corr-count { margin: 0; color: var(--muted); font-size: .9rem; }
.corr-scroll { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(43,34,48,.06); }
.corr-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.corr-table th { position: sticky; top: 0; background: var(--plum); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
.corr-table td { padding: 10px 14px; border-bottom: 1px solid var(--sand); }
.corr-table tbody tr:nth-child(even) { background: var(--cream); }
.corr-table tr[hidden] { display: none; }
.corr-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }

.brand-logo img { display: block; height: 84px; width: auto; }
@media (max-width: 700px) { .brand-logo img { height: 52px; } }

/* Qui est Djouher */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; text-align: left; max-width: 920px; }
.about-photo { width: 320px; height: 320px; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 2px var(--gold), 0 18px 40px rgba(31,42,68,.15); }
.about .about-text h2 { text-align: left; }
.about .about-text p { margin: 0 0 14px; max-width: none; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 28px; } .about .about-text h2 { text-align: center; } .about-photo { width: 240px; height: 240px; } }

/* Pages légales */
.legal h2 { font-size: 1.35rem; margin-top: 2em; color: var(--plum); }
.legal mark { background: #fff3cd; padding: 0 4px; }

/* Formulaire de contact */
.contact-quick { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.contact-box { max-width: 760px; margin: 0 auto; text-align: left; }
.reply-pref { border: 0; padding: 0; margin: 0 0 14px; }
.reply-pref legend { font-size: .9rem; font-weight: 600; margin-bottom: 8px; font-family: inherit; color: inherit; }
.reply-pref .chip-check { display: inline-block; margin-right: 6px !important; }
.form-success { max-width: 760px; margin: 0 auto 20px; background: #eaf6ee; border-left: 4px solid #2e7d4f; padding: 14px 18px; border-radius: 8px; text-align: left; }

/* Parcours unique + espace client */
.steps-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.client-area .eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; color: var(--gold); }
.client-area .wrap { max-width: var(--max); }
.client-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin: 28px 0; }
.card-highlight { border: 2px solid var(--gold); }
.client-logout { margin-top: 24px; font-size: .9rem; }

/* Boutique */
.shop-page .wrap { max-width: var(--max); }
.djou-test-banner { background: #fff3cd; border-left: 4px solid var(--gold); padding: 10px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .9rem; }
.woocommerce ul.products li.product { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: 0 8px 30px rgba(31,42,68,.06); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: Georgia, serif; font-size: 1.1rem; color: var(--ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--plum); font-weight: 600; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--plum); color: #fff; border-radius: 999px; padding: 12px 22px; font-weight: 600;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover { background: #6f1428; color: #fff; }
.woocommerce-info.djou-ship-note { border-top-color: var(--gold); }
.shop-back { margin-top: 32px; font-size: .9rem; }

/* Devenir conseillère */
.hero-small { padding: 72px 0 56px; }
.join-teaser { padding: 48px 0; background: var(--ink); color: #fff; }
.join-teaser .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.join-teaser h2 { color: #fff; font-size: 1.8rem; margin-bottom: .3em; }
.join-teaser p { opacity: .85; max-width: 640px; margin: 0; }
.join-teaser .eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; color: var(--gold); }
.join-faq details { background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 4px 16px rgba(31,42,68,.05); }
.join-faq summary { cursor: pointer; font-weight: 600; }
.join-faq details p { margin: 10px 0 0; color: var(--muted); }

/* ===== En-tête fixe + menu en boutons (v0.4.4) ===== */
html { scroll-padding-top: 110px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,246,241,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: padding .2s, box-shadow .2s; }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { padding: 8px 0; box-shadow: 0 6px 24px rgba(31,42,68,.08); }
.site-header.is-scrolled .brand-logo img { height: 60px; }
.brand-logo img { transition: height .2s; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav .nav-links { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav .nav-links a { display: inline-block; padding: 9px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; transition: background .15s, color .15s; }
.main-nav .nav-links a:hover, .main-nav .nav-links .current-menu-item > a { background: var(--sand); color: var(--plum); }
.nav-actions { display: flex; gap: 8px; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.nav-toggle { display: none; }

/* Tablette / mobile */
@media (max-width: 960px) {
  html { scroll-padding-top: 90px; }
  .site-header { padding: 10px 0; }
  .brand-logo img, .site-header.is-scrolled .brand-logo img { height: 56px; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; border: 1px solid var(--sand); border-radius: 12px; background: #fff; cursor: pointer; padding: 0 11px; }
  .nav-toggle span { display: block; height: 2px; background: var(--plum); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 24px 24px; background: var(--cream); box-shadow: 0 18px 30px rgba(31,42,68,.12); border-top: 1px solid var(--sand);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav .nav-links { flex-direction: column; gap: 4px; }
  .main-nav .nav-links a { display: block; padding: 14px 16px; font-size: 1.05rem; background: #fff; border-radius: 12px; }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { text-align: center; padding: 14px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.main-nav .nav-actions .btn-primary { color: #fff; }
.main-nav .nav-actions .btn-outline { color: var(--plum); }

/* Promos & ruptures */
.woocommerce span.onsale { background: var(--gold); color: #fff; border-radius: 999px; min-height: 0; min-width: 0; line-height: 1; padding: 7px 12px; font-weight: 600; top: 10px; left: 10px; }
.woocommerce ul.products li.product .price del, .woocommerce div.product p.price del { color: var(--muted); opacity: .8; }
.woocommerce ul.products li.product .price ins, .woocommerce div.product p.price ins { text-decoration: none; color: var(--plum); }
.djou-promo-end { color: var(--gold); font-weight: 600; margin-top: -6px; }
.woocommerce div.product .stock.out-of-stock { color: var(--muted); font-style: italic; }
.djou-promos { margin-top: 36px; }
.djou-promos h2 { font-size: 1.6rem; }

/* Photos (v0.4.6) */
.hero.has-photo { background: linear-gradient(90deg, rgba(250,246,241,.94) 0%, rgba(250,246,241,.82) 45%, rgba(250,246,241,.35) 100%), var(--hero-img) center / cover no-repeat; padding: 130px 0 110px; }
.hero.has-photo .wrap { text-align: left; }
.hero.has-photo h1, .hero.has-photo p { margin-left: 0; }
.uni { overflow: hidden; }
.uni-photo { display: block; width: calc(100% + 52px); max-width: none; margin: -30px -26px 18px; aspect-ratio: 4 / 3; object-fit: cover; }
.uni:has(.uni-photo) { border-top: 0; }
.uni:has(.uni-photo) .uni-icon { display: none; }
.gallery { padding: 64px 0; background: var(--white); }
.gallery h2 { text-align: center; font-size: 2rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.gallery-grid.count-1, .gallery-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.count-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-cta { text-align: center; margin-top: 24px; }
@media (max-width: 700px) {
  .hero.has-photo { background: linear-gradient(rgba(250,246,241,.86), rgba(250,246,241,.86)), var(--hero-img) center / cover no-repeat; padding: 80px 0 64px; }
  .hero.has-photo .wrap { text-align: center; }
  .gallery-grid, .gallery-grid.count-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Illustrations (v0.4.7) */
.hero.has-illus { text-align: left; padding: 64px 0 40px; }
.hero.has-illus .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.hero.has-illus h1, .hero.has-illus p { margin-left: 0; margin-right: 0; }
.hero-illus { width: 100%; height: auto; animation: djou-float 7s ease-in-out infinite; }
@keyframes djou-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-illus { animation: none; } }
.uni-illus { background: #FBF5F1; object-fit: contain; padding: 6px 10px 0; }
.universes h2::after, .steps h2::after, .why h2::after, .gallery h2::after, .about-text h2::after, .contact h2::after {
  content: ""; display: block; width: 180px; height: 36px; margin: 6px auto 0; background: url(assets/illus/ornement.svg) center / contain no-repeat;
}
.about .about-text h2::after { margin-left: 0; }
.why h2::after { filter: brightness(0) invert(1); opacity: .5; }
@media (max-width: 860px) {
  .hero.has-illus { text-align: center; padding: 40px 0 32px; }
  .hero.has-illus .wrap { grid-template-columns: 1fr; }
  .hero-illus { max-width: 420px; margin: 0 auto; order: -1; }
}

/* Crédit */
.footer-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .credit { color: var(--muted); text-decoration: none; opacity: .85; }
.site-footer .credit:hover { color: var(--plum); text-decoration: underline; }
