@font-face {
  font-family: 'Baar Sophia';
  src: url('fonts/BaarSophia.woff2') format('woff2'),
       url('fonts/BaarSophia.woff') format('woff'),
       url('fonts/BaarSophia.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Maiandra GD';
  src: url('fonts/maiandra-gd.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Charte AJ Design — INVERSÉE : fond = terre émaillée, textes = ivoire */
:root {
  --ivoire: #FAF8F2;
  --terre-emailee: #844A36;
  --bleu-ciel: #A8B4CE;
  --couleur-fond: var(--terre-emailee);
  --couleur-texte: var(--ivoire);
  --couleur-terre: var(--ivoire);
  --couleur-accent: var(--bleu-ciel);
  --couleur-clair: var(--bleu-ciel);
  --blanc: #fff;
  --ombre: rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Baar Sophia', sans-serif;
  font-weight: 300;
  color: #FAF8F2;
  color: var(--couleur-texte);
  background: #844A36;
  background: var(--couleur-fond);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Baar Sophia', sans-serif;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header — Ivoire (inversé) */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FAF8F2;
  background: var(--ivoire);
  box-shadow: 0 1px 20px var(--ombre);
  padding: 1rem 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--terre-emailee);
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav a {
  color: var(--terre-emailee);
}

.nav a:hover {
  color: var(--bleu-ciel);
}

.nav .actif {
  color: var(--bleu-ciel);
}

/* Hero — Fond terre émaillée, textes ivoire (inversé) */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, var(--terre-emailee) 0%, var(--bleu-ciel) 40%, var(--terre-emailee) 100%);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  color: var(--ivoire);
}

.hero .sous-titre {
  font-size: 1.1rem;
  max-width: 500px;
  color: var(--ivoire);
  font-weight: 400;
  opacity: 0.95;
}

/* Contenu de page (pages intérieures) */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.page-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 2rem;
  text-align: center;
}

.page-content h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
}

.page-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}

.page-content p {
  margin: 0 0 1.25rem;
}

.page-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.bloc-texte {
  margin-bottom: 2rem;
}

/* Boutons de navigation — Ivoire sur fond sombre (inversé) */
.nav-pages {
  text-align: center;
  padding: 2rem;
  background: rgba(250, 248, 242, 0.12);
  margin-top: 2rem;
  border-radius: 8px;
}

.nav-pages .boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.bouton {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--ivoire);
  color: var(--terre-emailee);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.bouton:hover {
  background: var(--bleu-ciel);
  color: var(--ivoire);
}

.bouton.secondaire {
  background: transparent;
  color: var(--ivoire);
  border: 1px solid var(--ivoire);
}

.bouton.secondaire:hover {
  background: var(--ivoire);
  color: var(--terre-emailee);
}

/* Sections communes (accueil) */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-titre {
  font-family: 'Baar Sophia', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

.domaines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.domaine-card {
  background: rgba(250, 248, 242, 0.95);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px var(--ombre);
  border: 1px solid rgba(250, 248, 242, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.domaine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--ombre);
}

.domaine-card .image-placeholder {
  height: 220px;
  background: linear-gradient(135deg, var(--bleu-ciel) 0%, rgba(168, 180, 206, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baar Sophia', sans-serif;
  font-size: 1.2rem;
  color: var(--terre-emailee);
  letter-spacing: 0.05em;
}

.domaine-card .contenu {
  padding: 1.5rem;
}

.domaine-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.domaine-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--terre-emailee);
}

/* Newsletter — fond sombre, textes ivoire (inversé) */
.newsletter {
  background: rgba(132, 74, 54, 0.6);
  padding: 4rem 2rem;
  text-align: center;
}

.newsletter .section-titre {
  margin-bottom: 1rem;
}

.newsletter p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--ivoire);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--ivoire);
  color: var(--terre-emailee);
}

.newsletter button {
  padding: 0.9rem 1.5rem;
  background: var(--ivoire);
  color: var(--terre-emailee);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter button:hover {
  background: var(--bleu-ciel);
  color: var(--ivoire);
}

/* Footer — Ivoire (inversé), texte terre émaillée */
.footer {
  background: #FAF8F2;
  background: var(--ivoire);
  color: #844A36;
  color: var(--terre-emailee);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-family: 'Baar Sophia', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--terre-emailee);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--terre-emailee);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--bleu-ciel);
}

.footer .contact p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--terre-emailee);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(132, 74, 54, 0.2);
  font-size: 0.85rem;
  color: var(--terre-emailee);
  opacity: 0.9;
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1.25rem;
  }

  .hero {
    min-height: 50vh;
  }
}
