/* Alpage : la page d'accueil. Polices servies par le site (CSP `self`) :
   sous-ensemble latin de Google Fonts, variables, licence OFL à côté. */

@font-face {
  font-family: "Fraunces";
  src: url("/statique/polices/Fraunces.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/statique/polices/NunitoSans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/statique/polices/Caveat.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}

:root {
  --sol: #eef2ea;
  --hall: #dce5d5;
  --papier: #ffffff;
  --pre: #2e5b3e;
  --pre-fonce: #1f3f2b;
  --miel: #e9a23b;
  --miel-clair: #fbebd0;
  --miel-bandeau: #f3c77e;
  --ciel: #e5eef2;
  --encre: #23302a;
  --texte: #3d4a43;
  --doux: #4f5c55;
  --filet: #e6ece2;
  --ombre: 0 10px 22px -14px rgb(35 48 42 / 45%);
}

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

body {
  margin: 0;
  background: var(--sol);
  color: var(--encre);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

p,
h1,
h2,
h3,
ul,
ol,
figure {
  margin: 0;
}

a {
  color: var(--pre);
}

a:hover {
  color: var(--pre-fonce);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--miel);
  outline-offset: 3px;
  border-radius: 8px;
}

.titre {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 100;
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--encre);
}

h2.titre {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.1;
}

.cadre {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.discret,
.tache-detail,
.note {
  line-height: 1.4;
}

.discret {
  font-size: 0.95rem;
  color: var(--doux);
}

.evitement {
  position: absolute;
  left: -9999px;
}

.evitement:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--papier);
  padding: 10px 16px;
  border-radius: 8px;
}

/* Boutons */

.bouton {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
}

.bouton-pre {
  background: var(--pre);
  color: var(--papier);
  padding: 11px 20px;
}

.bouton-pre:hover {
  background: var(--pre-fonce);
  color: var(--papier);
}

.bouton-miel {
  background: var(--miel);
  color: var(--encre);
  padding: 15px 26px;
  font-size: 1.05rem;
}

.bouton-miel:hover {
  background: #dc922a;
  color: var(--encre);
}

.bouton-encre {
  flex: none;
  background: var(--encre);
  color: var(--papier);
  padding: 17px 28px;
  font-size: 1.05rem;
}

.bouton-encre:hover {
  background: #111a15;
  color: var(--papier);
}

.bouton-cadre {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--pre);
  background: var(--papier);
  color: var(--pre);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.lien {
  font-weight: 700;
  padding: 12px 0;
}

/* En-tête */

.tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.marque-nom {
  font-size: 1.6rem;
  font-weight: 600;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-weight: 600;
  font-size: 1rem;
}

.menu a:not(.bouton) {
  text-decoration: none;
  color: var(--encre);
  padding: 10px 0;
}

.menu a:not(.bouton):hover {
  color: var(--pre);
}

/* Ouverture */

.ouverture {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 40px 96px;
}

.ouverture-texte {
  flex: 1.25 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ouverture h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
}

.chapeau {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--texte);
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 8px;
}

/* Le panneau du hall */

.hall {
  flex: 1 1 400px;
  min-width: 0;
  background: var(--hall);
  border-radius: 28px;
  padding: 40px 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hall figcaption {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--texte);
}

.mot {
  position: relative;
  background: var(--papier);
  border-radius: 6px;
  padding: 24px 22px 20px;
  color: var(--texte);
  box-shadow: var(--ombre);
}

.mot strong {
  color: var(--encre);
}

.mot-lettre {
  padding: 28px 28px 22px;
  max-width: 400px;
  transform: rotate(-1.4deg);
  box-shadow: 0 1px 0 #c9d4c2, var(--ombre);
}

.mot-titre {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.mot-lettre .mot-titre {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.signature {
  margin-top: 14px;
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--pre);
}

.mots {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.mot-ciel {
  flex: 1 1 200px;
  background: var(--ciel);
  font-size: 0.98rem;
  transform: rotate(1.2deg);
}

.mot-petit {
  flex: 1 1 170px;
  margin-top: 14px;
  font-size: 0.98rem;
  transform: rotate(-0.8deg);
}

.scotch {
  position: absolute;
  top: -12px;
  left: 42%;
  width: 84px;
  height: 24px;
  background: var(--miel);
  opacity: 0.75;
  border-radius: 2px;
  transform: rotate(3deg);
}

.scotch-petit {
  top: -10px;
  left: 24px;
  width: 60px;
  height: 20px;
  opacity: 0.6;
  transform: rotate(-4deg);
}

.punaise {
  position: absolute;
  top: -8px;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pre);
  box-shadow: 0 2px 3px rgb(35 48 42 / 35%);
}

/* La semaine du syndic */

.semaine {
  background: var(--papier);
}

.semaine-cadre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 96px;
}

.semaine-texte {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.semaine-texte p {
  color: var(--texte);
  max-width: 32em;
}

.espace {
  flex: 2 1 600px;
  min-width: 0;
  background: #f6f8f4;
  border: 1px solid var(--hall);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.espace-tete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.espace-bonjour {
  font-size: 1.5rem;
}

.espace-corps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.espace-colonne {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bloc {
  background: var(--papier);
  border-radius: 16px;
  padding: 20px;
}

.bloc-taches {
  flex: 1.4 1 260px;
  min-width: 0;
}

.bloc-titre {
  margin-bottom: 8px;
  font-weight: 700;
}

.tache {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--filet);
}

.tache > div {
  min-width: 0;
}

.tache-nom {
  font-weight: 600;
  font-size: 0.98rem;
}

.tache-detail {
  font-size: 0.88rem;
  color: var(--doux);
}

.solde {
  margin-top: 4px;
  font-size: 2rem;
}

.lots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-block: 12px;
}

.lot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #dce8d6;
  color: var(--pre-fonce);
}

.lot-attente {
  background: var(--miel-clair);
  color: #7a4a06;
  border: 1.5px dashed #c98a2a;
}

/* L'année */

.annee {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 96px;
}

.annee-tete {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 40em;
}

.annee-tete p {
  color: var(--texte);
}

.saisons {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.saisons li {
  background: var(--papier);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: var(--texte);
}

.saisons svg,
.engagements svg {
  color: var(--pre);
}

.saison-titre {
  font-size: 1.2rem;
  line-height: 1.25;
}

/* Tarif */

.tarif {
  background: var(--pre);
  color: var(--papier);
}

.tarif-cadre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 96px;
}

.tarif-offre {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tarif .tarif-offre .titre {
  color: var(--papier);
}

.prix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  font-size: 1.1rem;
  color: #e3ecdf;
}

.prix-montant {
  font-size: 4.6rem;
  line-height: 1;
}

.conditions {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #e3ecdf;
}

.calcul {
  flex: 1.1 1 400px;
  min-width: 0;
  background: var(--papier);
  color: var(--encre);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.calcul label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
}

.calcul output {
  font-size: 2rem;
}

.calcul input {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--pre);
}

.barres {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.barres > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.barre-ligne {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.barre-fond {
  height: 14px;
  background: var(--sol);
  border-radius: 7px;
  overflow: hidden;
}

.barre {
  height: 14px;
  border-radius: 7px;
}

.barre-alpage {
  width: 19%;
  background: var(--pre);
}

.barre-pro {
  width: 100%;
  background: #9aa89f;
}

.economie {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.25;
  background: var(--miel-clair);
  border-radius: 14px;
  padding: 16px 18px;
}

.note {
  font-size: 0.86rem;
  color: var(--doux);
}

/* Promesses */

.promesses {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 96px;
}

.promesses h2 {
  max-width: 20em;
}

.engagements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.engagements > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.engagements h3 {
  font-size: 1.35rem;
}

.engagements p {
  color: var(--texte);
}

/* Pilotes */

.pilote {
  padding-bottom: 96px;
}

.pilote-bandeau {
  background: var(--miel-bandeau);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.pilote-texte {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pilote-texte h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

.pilote-texte p {
  color: #2e3a33;
  max-width: 34em;
}

/* Mentions légales */

.mentions {
  max-width: 760px;
  padding-block: 24px 56px;
}

.mentions h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

/* Pied */

.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 32px 48px;
  border-top: 1px solid #d3dccd;
  font-size: 0.95rem;
  color: var(--doux);
}

@media (prefers-reduced-motion: no-preference) {
  .barre {
    transition: width 0.2s ease-out;
  }
}
