/* ==========================================================================
   AquaSave — Feuille de styles principale
   Charte graphique extraite du flyer Concours Lépine 2026
   ========================================================================== */

:root {
  --navy: #1b3a6b;
  --navy-dark: #142c52;
  --cyan: #4fb4d8;
  --cyan-dark: #2f97bd;
  --bg-light: #eaf2f8;
  --white: #ffffff;
  --text: #1b3a6b;
  --text-muted: #4a5c78;
  --gold: #c9a13b;

  --font: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(27, 58, 107, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 60%);
  line-height: 1.6;
}

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

a {
  color: var(--cyan-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---------- Logo / wordmark ---------------------------------------------- */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo .accent {
  color: var(--cyan);
}

/* ---------- Barre de navigation ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(27, 58, 107, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

.nav-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover {
  background: var(--bg-light);
  text-decoration: none;
}

.nav-menu a.is-active {
  color: var(--cyan-dark);
}

.nav-menu a.cta {
  background: var(--navy);
  color: var(--white);
}

.nav-menu a.cta:hover {
  background: var(--navy-dark);
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero .medal-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fdf6e3 0%, #ffffff 100%);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 8px 20px 8px 8px;
  box-shadow: 0 6px 20px rgba(201, 161, 59, 0.25);
  margin-bottom: 28px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.hero .medal-badge img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

/* ---------- Bandeau prix / Médaille Lépine ------------------------------- */
.award {
  padding: 24px 0 40px;
}

.award-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, #fdf6e3 0%, #ffffff 70%);
  border: 2px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(201, 161, 59, 0.22);
  padding: 28px 36px;
}

.award-medal {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 50%;
  filter: drop-shadow(0 6px 14px rgba(27, 58, 107, 0.25));
}

.award-kicker {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.award-text h2 {
  color: var(--navy);
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.15;
}

.award-text p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--navy);
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

/* ---------- Boutons ------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-dark);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Section produit / visuel ------------------------------------- */
.product {
  padding: 24px 0 8px;
  text-align: center;
}

.product img {
  margin: 0 auto;
  width: 100%;
  max-width: 820px;
  border-radius: var(--radius);
}

/* Photo produit (portrait) : cadrage plus étroit que le schéma */
.product-photo img {
  max-width: 380px;
  box-shadow: var(--shadow);
}

/* ---------- Qui sommes-nous (chronologie) -------------------------------- */
.story {
  padding: 32px 0 64px;
}

.story .container {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.story-row {
  display: flex;
  gap: 36px;
  align-items: center;
}

/* Alternance gauche / droite */
.story-row:nth-child(even) {
  flex-direction: row-reverse;
}

.story-text {
  flex: 1 1 0;
}

.story-year {
  display: inline-block;
  color: var(--cyan-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.story-text h2 {
  color: var(--navy);
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.story-text p {
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.65;
}

.story-media {
  flex: 0 0 320px;
  margin: 0;
}

.story-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* Étape avec deux visuels (stand + médaille) */
.story-media-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

/* Étape sans image : texte centré pleine largeur */
.story-row.text-only {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .story-row,
  .story-row:nth-child(even) {
    flex-direction: column;
  }
  .story-media {
    flex-basis: auto;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ---------- Bénéfices ---------------------------------------------------- */
.benefits {
  padding: 56px 0 72px;
}

.benefits h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 40px;
  color: var(--navy);
}

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

.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}

.benefit-card .icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 14px;
}

.benefit-card h3 {
  color: var(--navy);
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.benefit-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Page « Comment ça marche » ----------------------------------- */
.how {
  padding: 48px 0 24px;
}

.how h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 0 0 24px;
}

.how .how-figure {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 0 auto 24px;
  max-width: 860px;
}

.how .how-figure img {
  margin: 0 auto;
  border-radius: 8px;
}

.how .how-figure figcaption {
  text-align: center;
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 0.98rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 8px 0 64px;
}

.compare-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}

.compare-card.avec {
  border-top: 4px solid var(--cyan);
}

.compare-card.sans {
  border-top: 4px solid #c0392b;
}

.compare-card h3 {
  color: var(--navy);
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.compare-card img {
  margin: 0 auto 14px;
  border-radius: 8px;
}

.compare-card p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Page Documentation ------------------------------------------- */
.docs {
  padding: 8px 0 72px;
}

.doc-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 20px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
}

.doc-icon {
  font-size: 2.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-info h2 {
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.doc-info p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.96rem;
}

.doc-download {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .doc-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Page Contact ------------------------------------------------- */
.contact {
  padding: 8px 0 72px;
}

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

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field label span {
  color: #c0392b;
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid rgba(27, 58, 107, 0.25);
  border-radius: 10px;
  background: #fbfdfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 180, 216, 0.25);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.field textarea {
  resize: vertical;
}

.field .error {
  display: block;
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 6px;
  min-height: 1em;
}

.form-confirm {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: rgba(79, 180, 216, 0.12);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  color: var(--navy);
  font-weight: 600;
}

.contact-info {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.contact-info h2 {
  color: var(--navy);
  margin: 0 0 16px;
  font-size: 1.3rem;
}

.contact-info p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.contact-info .contact-note {
  border-top: 1px solid rgba(27, 58, 107, 0.1);
  padding-top: 16px;
  font-size: 0.92rem;
}

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

/* ---------- Page Commander ----------------------------------------------- */
.order {
  padding: 8px 0 72px;
}

.order-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

.order-product {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.order-product img {
  width: 140px;
  height: auto;
  align-self: center;
  flex-shrink: 0;
  border-radius: 8px;
}

.order-product-info h2 {
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.order-price {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.order-price span {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
}

.qty-label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(27, 58, 107, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

.qty-stepper button {
  width: 42px;
  border: 0;
  background: var(--bg-light);
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}

.qty-stepper button:hover {
  background: #dbe8f3;
}

.qty-stepper input {
  width: 64px;
  border: 0;
  border-left: 1px solid rgba(27, 58, 107, 0.2);
  border-right: 1px solid rgba(27, 58, 107, 0.2);
  text-align: center;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text);
}

.order-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.order-form h2 {
  color: var(--navy);
  margin: 0 0 18px;
  font-size: 1.2rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}

.order-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.order-summary h2 {
  color: var(--navy);
  margin: 0 0 18px;
  font-size: 1.2rem;
}

.summary-lines {
  margin: 0 0 18px;
}

.summary-lines > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--text-muted);
}

.summary-lines dt,
.summary-lines dd {
  margin: 0;
}

.summary-lines .summary-total {
  border-top: 1px solid rgba(27, 58, 107, 0.15);
  margin-top: 6px;
  padding-top: 14px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.2rem;
}

.summary-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.summary-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 14px 0 0;
}

/* Boutons PayPal hébergés (panier no-code) : espacement */
paypal-add-to-cart-button,
paypal-cart-button {
  display: block;
  margin-top: 12px;
}

.paypal-fallback {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.paypal-fallback .btn {
  display: block;
  margin-top: 10px;
  width: 100%;
  text-align: center;
}

/* Confirmation de commande */
.order-confirm {
  padding: 48px 0 80px;
}

.confirm-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  text-align: center;
}

.confirm-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.confirm-card h2 {
  color: var(--navy);
  margin: 0 0 12px;
}

.confirm-recap {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  color: var(--navy);
}

.confirm-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

  .order-product {
    flex-direction: column;
    text-align: center;
  }

  .order-product img {
    width: 160px;
  }

  .order-summary {
    position: static;
  }
}

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--white);
  font-weight: 600;
}

.footer-note {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 24px;
  padding-top: 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(27, 58, 107, 0.1);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 14px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .award-inner {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
  }

  .award-medal {
    width: 120px;
    height: 120px;
  }
}

