/* www.cimyko.com : couleurs tirées de l'app Cimyko (orange --primary) et du logo. */
:root {
  --fond: #fbf9f6;
  --texte: #1d1814;
  --doux: #6b625a;
  --filet: #e9e3dc;
  --orange: #c4501a;
  --orange-texte: #b0460f;
  --mesure: 40rem;
  --large: 64rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #16130f;
    --texte: #f3eee8;
    --doux: #a89e94;
    --filet: #2c2620;
    --orange: #f07a3e;
    --orange-texte: #f59a68;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--orange-texte); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.aller { position: absolute; left: -9999px; }
.aller:focus { left: 1rem; top: 1rem; background: var(--fond); padding: 0.5rem 0.75rem; z-index: 1; }

.entete, .pied, .une, .volets, .editeur, .legal {
  width: 100%;
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--texte);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-height: 44px;
}
.marque img { border-radius: 7px; }
.page-accueil .marque img { display: none; }
.langue {
  color: var(--doux);
  text-decoration: none;
  font-size: 0.9375rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.25rem;
}
.langue:hover { color: var(--texte); }

h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif; }

/* Accueil */
.une { padding-block: clamp(4rem, 12vw, 9rem) clamp(4rem, 10vw, 7rem); text-align: center; }
.une .logo { width: clamp(72px, 12vw, 96px); height: auto; border-radius: 22%; box-shadow: 0 12px 32px -12px rgb(176 70 15 / 0.45); }
.surtitre { margin: 2.5rem auto 0; max-width: 30rem; text-wrap: balance; color: var(--doux); font-size: 0.9375rem; letter-spacing: 0.01em; }
.une h1 {
  margin: 1rem auto 0;
  max-width: 14em;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.chapo {
  margin: 1.75rem auto 0;
  max-width: 32rem;
  color: var(--doux);
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: balance;
}
.une-courte { padding-block: 6rem; }
.une-courte .bouton { margin: 0.25rem; }

.volets, .editeur { padding-block: clamp(3rem, 8vw, 5rem); border-top: 1px solid var(--filet); }
.volets h2, .editeur h2 {
  margin: 0 0 2.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--doux);
  letter-spacing: 0.01em;
}
.volets ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2.5rem 3rem;
}
.volets h3 { margin: 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; }
.volets h3::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-bottom: 1rem;
  background: var(--orange);
  border-radius: 1px;
}
.volets p { margin: 0.375rem 0 0; color: var(--doux); }

.editeur p { margin: 0 0 1.5rem; max-width: var(--mesure); }
.editeur p:last-child { margin-bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.bouton {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.375rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.bouton:hover { filter: brightness(1.06); }
.bouton-discret { background: transparent; color: var(--texte); box-shadow: inset 0 0 0 1px var(--filet); }
@media (prefers-color-scheme: dark) { .bouton { background: #c4501a; } }
.courriel { color: var(--doux); font-size: 1rem; user-select: all; }

/* Pages légales */
.legal { max-width: calc(var(--mesure) + 3rem); padding-block: clamp(2.5rem, 7vw, 5rem); }
.legal h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.legal h2 { margin: 3rem 0 1rem; font-size: 1.3125rem; letter-spacing: -0.015em; font-weight: 600; }
.legal p { margin: 0 0 1rem; }
.legal > h1 + p, .legal > h1 + p + p { color: var(--doux); margin-bottom: 0.25rem; font-size: 0.9375rem; }
.legal > h1 + p + p { margin-bottom: 1.5rem; }
.legal ul, .legal ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal ol { padding-left: 1.5rem; }
.legal li { margin: 0 0 0.75rem; padding-left: 0.25rem; }
.legal li::marker { color: var(--doux); }
.legal li ul { margin-top: 0.75rem; }
.legal li li { margin-bottom: 0.375rem; }
.legal strong { font-weight: 600; }
.legal a { overflow-wrap: anywhere; }

/* Pied */
.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--filet);
  color: var(--doux);
  font-size: 0.875rem;
}
.pied p { margin: 0; }
.pied nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.pied a { color: var(--doux); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pied a:hover { color: var(--texte); text-decoration: underline; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .entete, .pied, .une, .volets, .editeur, .legal { padding-inline: 1.25rem; }
}

/* Contact */
.contact { width: 100%; max-width: calc(34rem + 3rem); margin-inline: auto; padding: clamp(2.5rem, 7vw, 5rem) 1.5rem; }
.contact h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.contact .chapo { margin: 1rem 0 0; max-width: none; text-wrap: pretty; }
.formulaire { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.formulaire[hidden] { display: none; }
.champ { display: grid; gap: 0.5rem; }
.champ label { font-size: 0.9375rem; font-weight: 600; }
.facultatif { font-weight: 400; color: var(--doux); }
.champ input, .champ textarea {
  width: 100%;
  font: inherit;
  color: var(--texte);
  background: transparent;
  border: 1px solid #766c62;
  border-radius: 10px;
  padding: 0.6875rem 0.875rem;
  min-height: 46px;
  box-shadow: inset 0 1px 0 rgb(0 0 0 / 0.02);
  transition: border-color 120ms ease;
}
@media (prefers-color-scheme: light) { .champ input, .champ textarea { background: #fff; border-color: #8f857b; } }
.champ input:hover, .champ textarea:hover { border-color: var(--texte); }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.champ-nom input { max-width: 20rem; }
.champ-courriel input, .champ-entreprise input { max-width: 25rem; }
.champ textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.actions { margin-top: 0.5rem; }
.bouton { border: 0; cursor: pointer; font-family: inherit; }
.bouton:disabled { opacity: 0.6; cursor: progress; }
.note { margin: -0.5rem 0 0; font-size: 0.875rem; }
.note a { color: var(--doux); display: inline-flex; align-items: center; min-height: 44px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.avis:empty { display: none; }
.avis { margin-top: 2rem; outline: none; }
.avis p { margin: 0; padding: 0.875rem 1rem; border-radius: 10px; }
.avis-erreur { background: rgb(196 80 26 / 0.1); color: var(--texte); box-shadow: inset 3px 0 0 var(--orange); }
.avis:has(.avis-merci) { margin-top: 1rem; }
.avis-merci { font-size: clamp(1.125rem, 2.2vw, 1.3125rem); font-weight: 400; color: var(--doux); line-height: 1.5; padding: 0 !important; }
@media (max-width: 30rem) {
  .contact { padding-inline: 1.25rem; }
  .pied { flex-direction: column; align-items: flex-start; }
}
