/*
Theme Name: AXOO Gestion
Theme URI: https://axoo-gestion.fr
Author: Karine Silvestre
Author URI: https://axoo-gestion.fr
Description: Thème WordPress sur-mesure pour AXOO Gestion — organisation de bureau et aide administrative. Reproduit fidèlement la charte du site d'origine (sauge, ivoire, Playfair Display / EB Garamond / Jost).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: axoo-gestion
License: GNU General Public License v2 or later
License URI: LICENSE
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --sage: #8A9464;
  --sage-dark: #5F6947;
  --sage-deeper: #454E33;
  --cream: #F8F6EF;
  --ivory: #FFFDF8;
  --ink: #2B2C1E;
  --ink-soft: #55573F;
  --line: rgba(43, 44, 30, 0.12);
  --line-on-sage: rgba(248, 246, 239, 0.28);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-script: 'EB Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 112.5%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Accessibilité ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ---------- Motif signature : anneaux entrelacés ---------- */
.rings-svg { display: inline-block; }
.rings-svg svg { display: block; width: 100%; height: auto; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
}
.divider .bar {
  height: 1px;
  width: 72px;
  background: currentColor;
  opacity: 0.35;
}
.divider.on-cream { color: var(--sage-dark); }
.divider.on-sage { color: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  background: var(--sage);
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
}
.brand .custom-logo-link {
  display: flex;
  align-items: center;
}
.brand img.custom-logo,
.custom-logo-link img.custom-logo,
img.custom-logo {
  height: 38px;
  max-height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  border-radius: 2px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.brand-tag {
  display: none;
}
nav.main-nav {
  display: flex;
  gap: 34px;
}
nav.main-nav ul {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav.main-nav a {
  color: var(--ivory);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.88;
}
nav.main-nav a:hover,
nav.main-nav a.active,
nav.main-nav li.current-menu-item > a,
nav.main-nav li.current_page_item > a {
  border-bottom-color: var(--ivory);
  opacity: 1;
}
.nav-toggle { display: none; }

@media (max-width: 780px) {
  nav.main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--sage);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  nav.main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav a { font-size: 1.1rem; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--ivory);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--sage);
  color: var(--ivory);
  padding: 88px 0 96px;
  text-align: center;
}
.hero .rings-mark,
.page-hero .rings-mark {
  display: flex;
  justify-content: center;
  margin: 0 auto 28px;
  width: 100%;
}
.hero .eyebrow {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.28rem;
  color: var(--ivory);
  opacity: 0.92;
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.2;
  max-width: 780px;
  margin: 0 auto 22px;
}
.hero p.lead {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.14rem;
  font-weight: 400;
  color: var(--ivory);
  opacity: 0.92;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: none;
}
.btn-light {
  background: var(--ivory);
  color: var(--sage-deeper);
}
.btn-light:hover { transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--line-on-sage);
  color: var(--ivory);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-solid {
  background: var(--sage-dark);
  color: var(--ivory);
}
.btn-solid:hover { background: var(--sage-deeper); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-ivory { background: var(--ivory); }
.section-sage {
  background: var(--sage-deeper);
  color: var(--ivory);
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .kicker {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--sage-dark);
  font-size: 1.1rem;
  margin: 0 0 10px;
}
.section-sage .section-head .kicker { color: var(--ivory); opacity: 0.85; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 16px;
  line-height: 1.25;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.section-sage .section-head p { color: rgba(248,246,239,0.85); }

/* ---------- Cards / grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 38px 32px;
  border-radius: 3px;
}
.card .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage);
  font-size: 1.6rem;
  margin: 0 0 18px;
  display: block;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  margin: 0 0 12px;
  color: var(--ink);
}
.card p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0;
}

/* ---------- Intro / about split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 20px;
  line-height: 1.3;
}
.split p { color: var(--ink-soft); margin: 0 0 16px; }
.split .kicker-script {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--sage-dark);
  font-size: 1.1rem;
  margin: 0 0 14px;
}
.split .rings-block {
  background: var(--sage);
  aspect-ratio: 4/3;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split .rings-block .rings-svg { width: 42%; }

/* ---------- Quote band ---------- */
.quote-band {
  text-align: center;
  padding: 90px 0;
}
.quote-band blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  max-width: 760px;
  margin: 0 auto 20px;
  line-height: 1.5;
}
.quote-band cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

/* ---------- Steps (process) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 0 10px; }
.step .step-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage);
  font-size: 1.9rem;
  margin-bottom: 12px;
}
.step h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.step p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ---------- Page hero (sous-pages) ---------- */
.page-hero {
  background: var(--sage);
  color: var(--ivory);
  padding: 64px 0 74px;
  text-align: center;
}
.page-hero .kicker {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.15rem;
  opacity: 0.9;
  margin: 0 0 14px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin: 0 0 16px;
}
.page-hero p {
  max-width: 540px;
  margin: 0 auto;
  opacity: 0.9;
  font-size: 1.08rem;
}

/* ---------- Services list (page services) ---------- */
.service-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 34px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage);
  font-size: 2.2rem;
}
.service-row h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 12px;
}
.service-row p { color: var(--ink-soft); margin: 0 0 14px; max-width: 620px; }
.service-row ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.service-row li {
  font-size: 0.86rem;
  color: var(--sage-deeper);
  position: relative;
  padding-left: 16px;
}
.service-row li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
@media (max-width: 640px) {
  .service-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 18px;
}
.contact-info p { color: var(--ink-soft); margin: 0 0 26px; }
.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-detail .label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
  min-width: 90px;
}
.contact-detail .value { color: var(--ink); font-size: 0.98rem; }

form.contact-form {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 3px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--sage-deeper);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}
.form-row textarea { resize: vertical; min-height: 120px; }
form.contact-form button {
  border: none;
  cursor: pointer;
  width: 100%;
}
.form-success {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  padding: 24px 28px;
  border-radius: 3px;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage-deeper);
  color: var(--ivory);
  padding: 56px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-on-sage);
  margin-bottom: 26px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}
.footer-tag {
  font-family: var(--font-script);
  font-style: italic;
  opacity: 0.8;
  font-size: 0.98rem;
  margin-top: 6px;
}
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav ul { display: flex; gap: 28px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.footer-nav a { font-size: 0.88rem; opacity: 0.85; }
.footer-nav a:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ---------- Contenu éditeur générique (page.php) ---------- */
.entry-content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-soft);
}
.entry-content h2, .entry-content h3 {
  font-family: var(--font-display);
  color: var(--ink);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 2px;
}
