/* Thème Le Monde Alchimique – lemondealchimique.fr */

/* Reset léger */
*,
*::before,
*::after {
  box-sizing: border-box;
}

h1, h2, h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

p {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

p+h2,
p+h3,
p+h1 {
  margin-top: 1rem;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0c1a24;

  /* Image de fond */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)),
    url("../images/background.png");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* effet paralax subtil */
  background-repeat: no-repeat;

  line-height: 1.6;
}


/* Structure de base */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 251, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(171, 213, 232, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 240, 180, 0.7));
  border-radius: 50%;
  box-shadow:
    0 0 25px rgba(255, 230, 180, 0.55),
    0 10px 30px rgba(0, 0, 0, 0.10);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.78rem;
  color: #416477;
}

/* Navigation */
.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  color: #274454;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
  background: rgba(158, 215, 237, 0.16);
  color: #14303f;
}

.nav-link.active {
  background: linear-gradient(120deg, #3fb0ff, #47dbc3);
  color: white;
  box-shadow: 0 8px 18px rgba(38, 152, 210, 0.28);
}

.nav-cta {
  border: 1px solid rgba(89, 196, 219, 0.7);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 2.6vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #072433;
}

.hero-text p {
  margin: 0 0 1.5rem;
  color: #395366;
  max-width: 34rem;
}

.hero-note {
  font-size: 0.9rem;
  color: #56748b;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

/* Hero image */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
  margin: 0 0 0 0;
}

.hero-image {
  text-align: center;
  width: auto;
  height: 220px;
  border-radius: 50%;
  box-shadow:
    0 0 25px rgba(255, 230, 180, 0.55),
    0 10px 30px rgba(0, 0, 0, 0.10);
}

.hero-legend {
  font-size: 0.85rem;
  color: #56748b;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border 0.15s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #34b7ff, #47e0c3);
  color: white;
  box-shadow:
    0 10px 25px rgba(46, 165, 218, 0.35),
    0 0 25px rgba(115, 234, 212, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(46, 165, 218, 0.45),
    0 0 30px rgba(115, 234, 212, 0.6);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.8);
  color: #19576d;
  border-color: rgba(110, 192, 216, 0.7);
}

.btn.ghost:hover {
  background: white;
}

.btn.large {
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
}

.btn.small {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

.btn.full {
  width: 100%;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section.gradient {
  background: linear-gradient(145deg, rgba(160, 226, 255, 0.15), rgba(227, 249, 255, 0.95));
}

.section.gradient-soft {
  background: radial-gradient(circle at top left, rgba(164, 235, 228, 0.15), rgba(255, 255, 255, 0.95));
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-inner.narrow {
  max-width: 720px;
  margin: 0 auto;
}

.section-intro {
  max-width: 680px;
}

.section-intro h2 {
  margin: 0 0 0.5rem;
}

.section-intro p {
  margin: 0;
  color: #476173;
}

/* Grilles */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.75rem;
}

/* Cartes */
.card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1.25rem;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow:
    0 14px 35px rgba(15, 73, 101, 0.08),
    0 0 0 1px rgba(182, 211, 230, 0.4);
}

.card h3,
.card h2 {
  margin-top: 0;
}

.card.service .service-note {
  font-size: 0.85rem;
  color: #597387;
  margin-top: 0.8rem;
}

/* Listes */
.list {
  padding-left: 1.1rem;
  margin: 0.6rem 0 0;
}

.list li {
  margin-bottom: 0.35rem;
}

.list.ordered {
  list-style: decimal;
}

.list.small {
  font-size: 0.9rem;
}

/* Boîte */
.box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  padding: 1.3rem 1.3rem 1.4rem;
  box-shadow:
    0 10px 28px rgba(15, 73, 101, 0.06),
    0 0 0 1px rgba(178, 213, 229, 0.6);
}

/* Citations */
.quote {
  margin: 1.6rem 0 0.4rem;
  padding: 1.1rem 1.2rem;
  border-left: 3px solid rgba(120, 206, 222, 0.8);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.75rem;
  font-style: italic;
  color: #314a5b;
}

/* Page header */
.page-header {
  padding: 3rem 0 1.5rem;
}

.page-header h1 {
  margin: 0 0 0.4rem;
}

.page-header p {
  margin: 0;
  color: #4a6678;
}

.page-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  align-items: center;
  gap: 2rem;
}

.page-header-text h1 {
  margin-bottom: 0.5rem;
}

.page-header-visual {
  display: flex;
  justify-content: flex-end;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field label {
  font-size: 0.9rem;
  color: #30485a;
}

.field input,
.field textarea {
  border-radius: 0.7rem;
  border: 1px solid rgba(161, 200, 220, 0.9);
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: #45c1dd;
  box-shadow: 0 0 0 1px rgba(94, 213, 227, 0.65);
  background: #ffffff;
}

.contact-info {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.2rem;
  padding: 1.3rem 1.4rem;
  box-shadow:
    0 10px 26px rgba(15, 73, 101, 0.06),
    0 0 0 1px rgba(182, 214, 230, 0.6);
  font-size: 0.95rem;
}

/* Notice information */
.notice {
  display: none;
  /* caché par défaut */
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

/* Succès */
.notice.success {
  display: block;
  background: #e8f9f0;
  color: #155b34;
  border-color: #9adbb3;
}

/* Erreur technique */
.notice.error {
  display: block;
  background: #ffecec;
  color: #8b1f1f;
  border-color: #f0a4a4;
}

/* Formulaire invalide */
.notice.invalid {
  display: block;
  background: #fff7e5;
  color: #7a4b0f;
  border-color: #f1c77f;
}

/* Footer */
.footer {
  padding: 1.6rem 0 1.9rem;
  background: linear-gradient(180deg, rgba(215, 241, 250, 0.8), #f6fbff);
  border-top: 1px solid rgba(182, 213, 229, 0.6);
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #4b687a;
}

.footer-links {
  display: flex;
  gap: 0.6rem;
}

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

.footer a:hover {
  text-decoration: underline;
}

/* Utilitaires */
.center {
  text-align: center;
}

.or {
  /* color: #D4AF37 */
  color: #F4D67A
}


/* Responsif */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-cols,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    gap: 1rem;
  }

  .nav {
    gap: 0.4rem;
  }

  .nav-link {
    font-size: 0.82rem;
    padding-inline: 0.5rem;
  }
}

@media (max-width: 860px) {

  section {
    padding: 2.4rem 0;
    /* réduit l'espacement vertical */
  }

  .container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    /* bordure gauche/droite plus serrée */
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.55;
  }
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0.6rem 0;
  }

  .hero {
    padding-top: 2.6rem;
  }
}

@media (max-width: 860px) {

  .page-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    /* texte un peu plus large */
    gap: 2rem;
    align-items: center;
  }


  .page-header-text {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 0rem;
  }



}