/* ==========================================================================
   Celebrate Your Potential — Refonte 2026
   Chemins 100 % relatifs : fonctionne en sous-dossier (WAMP) comme à la racine.
   ========================================================================== */

:root {
  --green: #6fbe44;
  --green-dark: #4e9a2e;
  --green-deep: #3d7a24;
  --green-ink: #2f6119;
  --lime: #c5d92d;
  --ink: #1e2a32;
  --slate: #33424d;
  --text: #3a4750;
  --muted: #5e6d77;
  --bg: #ffffff;
  --bg-soft: #f5f8f2;
  --bg-card: #ffffff;
  --border: #e3eadd;
  --shadow: 0 10px 30px rgba(30, 42, 50, 0.08);
  --shadow-sm: 0 4px 14px rgba(30, 42, 50, 0.06);
  --radius: 14px;
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1140px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--green-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-ink);
  text-decoration: underline;
}

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

ul {
  padding-left: 1.2em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
}

.site-footer :focus-visible {
  outline-color: var(--lime);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand img {
  width: 170px;
  height: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
}

.site-nav a:hover {
  background: var(--bg-soft);
  color: var(--green-deep);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--green-deep);
  background: var(--bg-soft);
}

.site-nav a.nav-cta {
  background: var(--green-deep);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  margin-left: 8px;
}

.site-nav a.nav-cta:hover {
  background: var(--green-ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 22px 20px;
    gap: 4px;
  }

  .site-nav a {
    display: block;
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  .site-nav a.nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(197, 217, 45, 0.22), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(111, 190, 68, 0.16), transparent 60%),
    var(--bg-soft);
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero .kicker {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--green-dark);
}

.hero .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.hero-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-ink);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--green-dark);
  color: var(--green-deep);
}

.btn-ghost:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Sections génériques
   -------------------------------------------------------------------------- */

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  display: block;
  color: var(--green-deep);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Cartes / grilles
   -------------------------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 660px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 14px;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(111, 190, 68, 0.16), rgba(197, 217, 45, 0.25));
  color: var(--green-deep);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* --------------------------------------------------------------------------
   Bandeau actualité / CTA
   -------------------------------------------------------------------------- */

.banner {
  background: linear-gradient(120deg, var(--green-ink), var(--green-deep) 55%, #427f27);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: var(--shadow);
}

.banner h2,
.banner h3 {
  color: #fff;
  margin: 0 0 6px;
}

.banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.banner .btn-light {
  background: #fff;
  color: var(--green-deep);
}

.banner .btn-light:hover {
  background: var(--ink);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Témoignages
   -------------------------------------------------------------------------- */

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.testimonial blockquote {
  margin: 0;
  font-size: 0.97rem;
  color: var(--text);
  flex: 1;
}

.testimonial blockquote::before {
  content: "\201C";
  display: block;
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--green);
  margin-bottom: 6px;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--lime));
}

.who strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.97rem;
}

.who span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.who a {
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Page header (pages internes)
   -------------------------------------------------------------------------- */

.page-head {
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(197, 217, 45, 0.2), transparent 60%),
    var(--bg-soft);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  margin-bottom: 8px;
}

.page-head .lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 64ch;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Équipe
   -------------------------------------------------------------------------- */

.profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.profile-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.profile-photo .links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.93rem;
}

@media (max-width: 760px) {
  .profile {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 260px;
  }
}

.timeline {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-left: 3px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 26px 28px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--green);
}

.timeline .when {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.timeline p {
  margin: 0;
  color: var(--text);
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-list .card-icon {
  width: 44px;
  height: 44px;
  flex: none;
}

.info-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-head);
}

.info-list p {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 32px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  background: #fff;
  box-shadow: 0 0 0 3px var(--green-dark);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--green-deep);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Plan d'accès / cartes Google Maps
   -------------------------------------------------------------------------- */

.map-card {
  overflow: hidden;
  padding: 0;
}

.map-card .map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.map-card .map-body {
  padding: 24px 26px 28px;
}

.map-card .map-body p {
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Liens utiles
   -------------------------------------------------------------------------- */

.link-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.link-card .card-icon {
  flex: none;
}

.link-card h2,
.link-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.link-card p {
  margin: 0;
  font-size: 0.9rem;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   Actualités / blog
   -------------------------------------------------------------------------- */

.post-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card .post-body {
  padding: 26px;
}

.post-card .post-body p {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Mentions légales / prose
   -------------------------------------------------------------------------- */

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose address {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #c4cfd6;
  margin-top: 80px;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.site-footer a {
  color: #c4cfd6;
}

.site-footer a:hover {
  color: var(--lime);
}

.footer-brand img {
  width: 180px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 38ch;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: var(--green);
  color: #fff;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Animations d'apparition
   -------------------------------------------------------------------------- */

/* L'état masqué n'est appliqué que si JS est actif (classe .js posée par
   main.js) : sans script, tout le contenu reste visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Impression
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .hero-actions,
  .banner {
    display: none !important;
  }

  body {
    color: #000;
  }
}
