/* ==========================================================================
   La Caverne d'Ali Bambin — feuille de style unique
   ========================================================================== */

/* ---------- Polices (auto-hébergées) ---------- */
@font-face {
  font-family: "Amaranth";
  src: url("../fonts/amaranth-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amaranth";
  src: url("../fonts/amaranth-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pacifico";
  src: url("../fonts/pacifico-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-italic-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Couleurs et réglages globaux ---------- */
:root {
  --primary: #197d90; /* #1a8093 légèrement assombri pour un contraste AA (4,5:1) */
  --cream: #fff7ee;
  --white: #fafafa;
  --rose: #f3b0af;
  --orange: #f1ac3b;
  --bleu: #88c8d3;
  --canard: #197d90;
  --canard-fonce: #146a7a;
  --text: #1f2d33;
  --text-light: #4c5d64;

  --font-title: "Amaranth", "Trebuchet MS", sans-serif;
  --font-script: "Pacifico", cursive;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --container: 1100px;
  --gutter: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--canard-fonce);
}

a:hover,
a:focus-visible {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
}

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

.narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--text);
  padding: 0.5em 1em;
  z-index: 10;
}

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

/* ---------- En-tête ---------- */
.site-header {
  background: var(--primary);
  color: var(--white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo posé dans un rond crème pour rester lisible sur le fond de couleur */
.site-logo,
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--cream);
  flex-shrink: 0;
}

.site-logo img,
.footer-logo img {
  width: 166px; /* même taille que le logo du site historique */
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--cream);
  color: var(--white);
}

/* ---------- Bandeau d'ouverture de page ---------- */
.hero {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 40px 0 70px;
  position: relative;
}

.hero h1 {
  color: var(--white);
}

.hero .kicker {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--cream);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: 0.3em;
}

.hero .lead {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--white);
  margin-bottom: 1em;
}

.hero p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-closing {
  font-weight: 600;
}

/* Courbe crème sous le bandeau */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 40px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}

.section-white {
  background: var(--white);
}

.section-title-center {
  text-align: center;
}

.frise {
  display: block;
  margin: 0 auto 18px;
  width: 220px;
}

.story p:last-child {
  margin-bottom: 0;
}

.story .highlight {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--canard-fonce);
}

.merci p:not(.signature) {
  text-align: justify;
}

.story .list-lines {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--primary);
  border-left: 4px solid var(--orange);
  padding-left: 18px;
}

/* ---------- Cartes « Plus qu'une boutique » ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.pillar {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 22px;
  border-top: 8px solid var(--accent, var(--canard));
}

.pillar p {
  margin: 0;
}

.pillar--rose { --accent: var(--rose); }
.pillar--orange { --accent: var(--orange); }
.pillar--bleu { --accent: var(--bleu); }
.pillar--canard { --accent: var(--canard); }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.service {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-white .service {
  background: var(--cream);
}

.service img {
  width: 130px;
  margin-bottom: 14px;
}

.service .tag {
  display: inline-block;
  background: var(--bleu);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 12px;
}

.service .quote {
  font-style: italic;
  color: var(--canard-fonce);
}

.service .actions {
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  align-items: center;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  background: var(--orange);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 26px;
  transition: background 0.15s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--rose);
  color: var(--text);
}

.btn--light {
  background: var(--white);
}

/* ---------- Signature ---------- */
.signature {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--canard);
  margin-top: 0.5em;
  text-align: right;
}

/* ---------- Encadré de contact ---------- */
.callout {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.callout h2 {
  color: var(--white);
}

.callout .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* ---------- Grille tarifaire (nettoyage) ---------- */
.tarifs {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(9, 57, 79, 0.08);
}

.tarifs-head {
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 22px 26px;
}

.tarifs-head h2 {
  color: var(--white);
  margin: 0;
}

.tarifs-pictos {
  display: flex;
  gap: 14px;
}

.tarifs-pictos img {
  width: 64px;
}

.tarifs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.tarifs-table th,
.tarifs-table td {
  padding: 8px 10px;
  vertical-align: middle;
}

.tarifs-table thead th {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.2;
}

.tarifs-table .col-label {
  text-align: left;
  width: 100%;
  padding-left: 26px;
}

.tarifs-table .col-price {
  background: var(--white);
  text-align: center;
  min-width: 110px;
}

.tarifs-table thead .col-price {
  border-radius: 40px 40px 0 0;
  padding-top: 16px;
}

.tarifs-table tbody tr:last-child .col-price {
  border-radius: 0 0 40px 40px;
  padding-bottom: 18px;
}

/* Espace blanc entre les deux colonnes de prix */
.tarifs-table .col-price + .col-price {
  border-left: 18px solid var(--cream);
}

.tarifs-table tbody th {
  font-weight: 400;
  font-size: 1.1rem;
  padding-top: 14px;
  padding-bottom: 14px;
}

.tarifs-table .label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tarifs-table .label small {
  display: block;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Pointillés colorés entre le libellé et les prix */
.tarifs-table .dots {
  flex: 1;
  min-width: 40px;
  height: 10px;
  background-image: radial-gradient(circle, var(--row-color) 4px, transparent 4.5px);
  background-size: 22px 10px;
  background-repeat: repeat-x;
  background-position: right center;
}

.tarifs-table .price {
  display: inline-block;
  min-width: 82px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--text);
  background: var(--row-color);
  border-radius: 4px;
  padding: 10px 8px;
}

.row--rose { --row-color: var(--rose); }
.row--orange { --row-color: var(--orange); }
.row--bleu { --row-color: var(--bleu); }
.row--canard { --row-color: var(--canard-fonce); }
.row--canard .price { color: var(--white); }

.tarifs-note {
  padding: 18px 26px 24px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ---------- Prestation ---------- */
.prestation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.prestation > div {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
}

.prestation p:last-child {
  margin-bottom: 0;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* ---------- Pages de texte (mentions légales) ---------- */
.legal h2 {
  font-size: 1.5rem;
  margin-top: 1.6em;
}

.legal ul {
  padding-left: 1.2em;
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 56px 0 0;
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cream);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}

.footer-grid h2 {
  color: var(--cream);
  font-size: 1.4rem;
  margin-bottom: 0.6em;
}


.footer-contact {
  font-style: normal;
}

.footer-contact a {
  font-weight: 600;
  text-decoration: none;
}

.footer-contact p {
  margin-bottom: 0.4em;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.12);
  transition: background 0.15s;
}

.social a:hover,
.social a:focus-visible {
  background: var(--canard-fonce);
}

.social img {
  width: 26px;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.partners a {
  display: block;
  background: var(--white);
  border-radius: 10px;
  padding: 6px;
}

.partners img {
  height: 56px;
  width: auto;
}

.footer-bottom {
  margin-top: 46px;
  border-top: 1px solid rgba(250, 250, 250, 0.18);
  padding: 18px 0 22px;
  font-size: 0.9rem;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
  }


  .section {
    padding: 42px 0;
  }

  .tarifs-head {
    padding: 18px 16px;
  }

  .tarifs-pictos img {
    width: 52px;
  }

  .tarifs-table .col-label {
    padding-left: 14px;
  }

  .tarifs-table tbody th {
    font-size: 0.98rem;
  }

  .tarifs-table .dots {
    display: none;
  }

  .tarifs-table .col-price {
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
  }

  .tarifs-table .col-price + .col-price {
    border-left-width: 8px;
  }

  .tarifs-table thead th {
    font-size: 0.95rem;
  }

  .tarifs-table .price {
    min-width: 58px;
    font-size: 1.4rem;
    padding: 8px 6px;
  }

  .tarifs-note {
    padding: 16px 14px 20px;
  }
}

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

/* ---------- Utilitaires ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.doc-cta {
  margin: 26px 0 0;
}
