/* ==========================================================
   ELISMA TECHNOLOGIES — Feuille de style
   Couleurs : violet #7B5EA7 / vert #4A7A49
   ========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --violet: #7B5EA7;
  --violet-clair: #A98DD0;
  --violet-pale: #F0EBF8;
  --vert: #4A7A49;
  --vert-clair: #7AAD79;
  --vert-pale: #E8F5E8;
  --blanc: #FFFFFF;
  --dark: #1A1A1A;
  --gris: #555555;
  --gris-clair: #F7F7F7;
  --bordure: rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--dark);
  background: var(--blanc);
  font-size: 1.08rem;
  line-height: 1.7;
}

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

/* ---------- NAVIGATION ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--blanc);
  border-bottom: 1px solid rgba(123,94,167,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  height: 64px;
}

.nav-logo {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--violet);
  letter-spacing: 0.03em;
  text-decoration: none;
}
.nav-logo span { color: var(--vert); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  color: var(--gris);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus { color: var(--violet); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  background: var(--violet);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: var(--vert);
}
.hero-eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-clair);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: var(--blanc);
  line-height: 1.1;
  font-weight: normal;
  margin-bottom: 1rem;
  max-width: 820px;
}
.hero-title span { color: var(--vert-clair); }
.hero-sub {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--gris-clair); }
.container { max-width: 1080px; margin: 0 auto; }
.container-etroit { max-width: 720px; margin: 0 auto; }

.section h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: normal;
  color: var(--dark);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 3rem;
}

.philosophie {
  background: var(--violet-pale);
  text-align: center;
  padding: 5rem 2rem;
}
.philosophie h2 {
  font-style: italic;
  color: var(--violet);
  margin-bottom: 1.5rem;
}
.philosophie p {
  font-size: 1.1rem;
  max-width: 660px;
  margin: 0 auto;
  color: var(--gris);
}

/* ---------- CARTES ÉCOSYSTÈME ---------- */
.grille-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.carte {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.carte-num {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-clair);
  margin-bottom: 0.8rem;
}
.carte h3 {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--violet);
  margin-bottom: 0.8rem;
}
.carte p {
  color: var(--gris);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn-violet { background: var(--violet); color: var(--blanc); }
.btn-vert   { background: var(--vert);   color: var(--blanc); }
.btn-ligne  { background: transparent; color: var(--violet); border: 1px solid var(--violet); }
.btn-large  { width: 100%; }

/* Pastille "bientôt" — volontairement NON cliquable */
.bientot {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
  background: var(--gris-clair);
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 2px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  width: 100%;
  cursor: default;
  user-select: none;
}
.bientot strong { color: var(--violet); font-weight: bold; }

.mention-store {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  color: var(--gris);
  margin-top: 0.8rem;
  text-align: center;
}

/* ---------- FORMULAIRE ---------- */
.bloc-form {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 4px;
  padding: 2.5rem;
}
.bloc-form h3 {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: normal;
  color: var(--violet);
  margin-bottom: 0.6rem;
  text-align: center;
}
.bloc-form .intro {
  color: var(--gris);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.champ { margin-bottom: 1.2rem; }
.champ label {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.4rem;
}
.champ input[type="email"],
.champ input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 2px;
  font-family: Georgia, serif;
  font-size: 1rem;
  color: var(--dark);
  background: var(--blanc);
}
.champ input:focus {
  outline: 2px solid var(--violet-clair);
  outline-offset: 1px;
}

.cases { margin: 1.4rem 0; }
.cases > p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.7rem;
}
.case-ligne {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}
.case-ligne input[type="checkbox"] {
  width: 17px; height: 17px;
  margin-top: 3px;
  accent-color: var(--violet);
  flex-shrink: 0;
}
.case-ligne label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  color: var(--dark);
  line-height: 1.4;
}
.consentement label {
  font-size: 0.82rem;
  color: var(--gris);
}
.consentement a { color: var(--violet); }

.form-note {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  color: var(--gris);
  margin-top: 1.2rem;
  line-height: 1.5;
}

/* ---------- ENCART DÉDICACES ---------- */
.dedicace {
  background: var(--vert-pale);
  border-left: 4px solid var(--vert);
  border-radius: 3px;
  padding: 2rem;
  margin-top: 2.5rem;
}
.dedicace h3 {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: normal;
  color: var(--vert);
  margin-bottom: 0.8rem;
}
.dedicace p { color: var(--gris); font-size: 0.98rem; margin-bottom: 0.8rem; }
.dedicace .compteur {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vert);
  font-weight: bold;
}

/* ---------- EXTRAITS ---------- */
.extrait {
  border-left: 3px solid var(--violet-clair);
  padding: 0 0 0 1.8rem;
  margin: 2.5rem 0 3.5rem;
}
.extrait-source {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}
.extrait p { margin-bottom: 1rem; color: var(--dark); font-size: 1.08rem; }
.extrait p:last-child { margin-bottom: 0; }
.extrait .suspendu {
  font-style: italic;
  color: var(--gris);
  font-size: 0.92rem;
  margin-top: 1.2rem;
}

/* ---------- PAGES LÉGALES ---------- */
.page-legale { padding: 8rem 2rem 5rem; }
.page-legale h1 {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: normal;
  color: var(--violet);
  margin-bottom: 0.5rem;
}
.page-legale .maj {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  color: var(--gris);
  margin-bottom: 2.5rem;
}
.page-legale h2 {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--vert);
  margin: 2.5rem 0 0.8rem;
  text-align: left;
}
.page-legale h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 1.6rem 0 0.5rem;
}
.page-legale p, .page-legale li {
  color: var(--dark);
  font-size: 1.06rem;
  margin-bottom: 0.9rem;
}
.page-legale ul, .page-legale ol { margin: 0 0 1rem 1.4rem; }
.page-legale a { color: var(--violet); }
/* Les boutons gardent leur texte blanc, même dans les pages de contenu */
.page-legale a.btn-violet,
.page-legale a.btn-vert,
.page-legale a.btn-or,
.philosophie a.btn-violet,
.section a.btn-violet { color: var(--blanc); }
.page-legale a.btn-ligne { color: var(--violet); }
.page-legale table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.6rem;
  font-size: 0.95rem;
}
.page-legale th, .page-legale td {
  border: 1px solid var(--bordure);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.page-legale th {
  background: var(--violet-pale);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--violet);
  font-weight: bold;
}
.encadre {
  background: var(--violet-pale);
  border-left: 4px solid var(--violet);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 2px;
}
.encadre p:last-child { margin-bottom: 0; }
.a-completer {
  background: #FFF3CD;
  border: 1px dashed #B8860B;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  color: #7A5C00;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 2rem 2rem;
}
.footer-grille {
  max-width: 1080px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.footer-logo {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: var(--blanc);
  margin-bottom: 0.6rem;
}
.footer-logo span { color: var(--vert-clair); }
footer h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-clair);
  margin-bottom: 0.9rem;
  font-weight: normal;
}
footer ul { list-style: none; }
footer li { margin-bottom: 0.5rem; }
footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.92rem;
}
footer a:hover { color: var(--blanc); text-decoration: underline; }
.footer-bas {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ---------- BANNIÈRE COOKIES ---------- */
#banniere-cookies {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--dark);
  color: var(--blanc);
  padding: 1.3rem 1.6rem;
  display: none;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.25);
}
#banniere-cookies.visible { display: block; }
.cookies-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  justify-content: space-between;
}
.cookies-texte {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
  flex: 1 1 340px;
  color: rgba(255,255,255,0.85);
}
.cookies-texte a { color: var(--violet-clair); }
.cookies-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cookies-actions button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.7rem 1.3rem;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer;
  background: transparent;
  color: var(--blanc);
  transition: background 0.2s;
}
.cookies-actions button:hover { background: rgba(255,255,255,0.12); }
.cookies-actions .accepter {
  background: var(--vert);
  border-color: var(--vert);
}
.cookies-actions .accepter:hover { background: var(--vert-clair); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  nav { padding: 0 1rem; height: 56px; }
  .nav-links { gap: 0.9rem; flex-wrap: wrap; }
  .nav-links a { font-size: 0.68rem; letter-spacing: 0.02em; }
  .section { padding: 3.5rem 1.2rem; }
  .hero { padding: 6rem 1.2rem 3rem; }
  .bloc-form { padding: 1.6rem; }
  .page-legale { padding: 6rem 1.2rem 3rem; }
  .cookies-inner { flex-direction: column; align-items: stretch; }
  .cookies-actions button { flex: 1; }
  footer { padding: 2.5rem 1.2rem 1.5rem; }
}

/* ---------- AJOUTS : cartes écosystème façon Elisma ---------- */
:root {
  --or: #C9A227;
  --or-pale: #FDF6E9;
}

.carte-eco {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.carte-tete {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem 1.6rem;
}
.carte-tete.violet { background: var(--violet-pale); }
.carte-tete.vert   { background: var(--vert-pale); }
.carte-tete.or     { background: var(--or-pale); }

.carte-icone {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.carte-icone.violet { background: var(--violet); }
.carte-icone.vert   { background: var(--vert); }
.carte-icone.or     { background: var(--or); }

.carte-eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.25rem;
}
.carte-tete h3 {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--dark);
  line-height: 1.2;
}
.carte-corps { padding: 1.7rem 1.6rem; flex-grow: 1; }
.carte-corps .accroche {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.carte-prix {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  color: var(--gris);
}
.carte-pied {
  padding: 1.3rem 1.6rem;
  border-top: 1px solid var(--bordure);
}
.btn-or { background: var(--or); color: var(--blanc); }

/* Citation encadrée (raison d'être) */
.citation {
  background: var(--blanc);
  border-left: 4px solid var(--violet);
  padding: 1.6rem 1.8rem;
  margin: 2.5rem auto 0;
  max-width: 620px;
  text-align: left;
}
.citation p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--violet);
  margin: 0;
}

/* Section dédicace */
.dedicace-encadre {
  background: var(--blanc);
  border-left: 4px solid var(--violet);
  padding: 1.6rem 1.8rem;
  margin: 2rem auto;
  max-width: 620px;
  text-align: left;
}
.dedicace-encadre .fort {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--violet);
  margin-bottom: 0.6rem;
}
.dedicace-encadre .petit { color: var(--gris); margin: 0; font-size: 1.04rem; }

.session-etat {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert);
  font-weight: bold;
  margin-bottom: 1.6rem;
}
.session-etat.fermee { color: var(--gris); }

.champ textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 2px;
  font-family: Georgia, serif;
  font-size: 1rem;
  color: var(--dark);
  min-height: 110px;
  resize: vertical;
}
.champ .aide {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: var(--gris);
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
}
.ligne-prix {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--bordure);
}
.ligne-prix .prix {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--dark);
}

/* Pied de page : baseline */
.footer-baseline {
  font-family: Georgia, serif;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 2rem;
}

/* ---------- RÉSEAUX SOCIAUX (pied de page) ---------- */
.reseaux {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
}
.reseaux a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
}
.reseaux a:hover {
  background: var(--violet);
  border-color: var(--violet);
}
.reseaux svg { width: 20px; height: 20px; fill: rgba(255,255,255,0.8); }
.reseaux a:hover svg { fill: #FFFFFF; }

/* ---------- CADRE DU FORMULAIRE BREVO ---------- */
.cadre-brevo {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  height: 700px;
  border: 1px solid var(--bordure);
  border-radius: 4px;
  background: var(--blanc);
}
@media (max-width: 720px) {
  .cadre-brevo { height: 880px; }
}
@media (max-width: 400px) {
  .cadre-brevo { height: 940px; }
}

/* ---------- NAVIGATION SUR DEUX LIGNES (petits écrans) ---------- */
@media (max-width: 560px) {
  nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0.55rem 1rem 0.6rem;
    justify-content: center;
    gap: 0.35rem;
  }
  .nav-logo { font-size: 1rem; width: 100%; text-align: center; }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    gap: 1rem;
  }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.04em; }
  .hero { padding-top: 7.5rem; }
  .page-legale { padding-top: 7.5rem; }
}
