/*
 * Site provisoire de l'apex dogsolution.ch (remplace Softr en attendant la
 * plateforme, lot 2 sur main). Charte DA-DS v5 « premium chaleureux ».
 * Une seule feuille pour les quatre pages : accueil, education canine, CGV,
 * confidentialite.
 */

@font-face{font-family:'Fraunces';font-style:italic;font-weight:400 900;font-display:swap;src:url('/fonts/fraunces-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400 900;font-display:swap;src:url('/fonts/fraunces-italic-latinext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 900;font-display:swap;src:url('/fonts/fraunces-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 900;font-display:swap;src:url('/fonts/fraunces-normal-latinext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 800;font-display:swap;src:url('/fonts/nunito-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 800;font-display:swap;src:url('/fonts/nunito-normal-latinext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root {
  --ds-bg: #ebe3d5;
  --ds-surface: #faf3e0;
  --ds-title: #7c582d;
  --ds-title-80: #8e6e4a;
  --ds-btn-bg: #8b5a3c;
  --ds-btn-text: #faf3e0;
  --ds-text: #152237;
  --ds-text-secondary: #3d4a5c;
  --ds-muted: #6b5a47;
  --ds-border: rgba(124, 88, 45, 0.18);
  --ds-gold: #c9a25a;
  --ds-gold-soft: rgba(201, 162, 90, 0.35);

  --grad-cta: linear-gradient(135deg, #9a6645 0%, #8b5a3c 55%, #6f4730 100%);
  --grad-accent: linear-gradient(90deg, #c9a25a 0%, #7c582d 100%);
  --grad-surface: radial-gradient(ellipse at top, #faf3e0 0%, #ebe3d5 75%);

  --ds-font-title: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --ds-font-body: "Nunito", "Helvetica Neue", Arial, sans-serif;

  --ds-shadow-sm: 0 1px 2px rgba(124, 88, 45, 0.08), 0 2px 6px rgba(124, 88, 45, 0.06);
  --ds-shadow: 0 1px 2px rgba(124, 88, 45, 0.08), 0 4px 16px rgba(124, 88, 45, 0.12);
  --ds-shadow-lift: 0 2px 4px rgba(124, 88, 45, 0.10), 0 12px 32px rgba(124, 88, 45, 0.20);

  --ds-transition: 0.15s ease;
  --ds-transition-slow: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Le halo creme ne couvre que le haut de page et fond dans le beige : pas de ligne. */
  background: var(--grad-surface) center top / 100% 760px no-repeat, var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 48px 16px 24px;
}

/* ---------- Marque : logo, kicker, titre, tagline ---------- */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mark {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 28%;
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-sm);
  overflow: hidden;
  flex: none;
}
.mark img { display: block; width: 100%; height: 100%; }
.mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--ds-gold-soft);
  pointer-events: none;
}
a.mark { transition: transform var(--ds-transition), box-shadow var(--ds-transition); }
a.mark:hover { transform: translateY(-1px); box-shadow: var(--ds-shadow); }

.kicker {
  margin: 24px 0 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--ds-font-title);
  color: var(--ds-title);
  font-weight: 700;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand h1 {
  font-size: 48px;
  font-weight: 800;
  font-variation-settings: "opsz" 144, "SOFT" 10;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand--sub h1 { font-size: 40px; }

/* Fraunces droit : l'italique est bannie de la DA (decision Ben, 2026-10-01). */
.tagline {
  margin: 12px 0 0;
  max-width: 24ch;
  font-family: var(--ds-font-title);
  font-weight: 600;
  font-variation-settings: "SOFT" 20;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ds-btn-bg);
}

.rule {
  display: block;
  width: 64px;
  height: 2px;
  margin: 24px auto 0;
  border: 0;
  border-radius: 2px;
  background: var(--grad-accent);
  opacity: 0.85;
}

/* ---------- Boutons ---------- */

.links {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 44px;
  border-radius: 9999px;
  font-family: var(--ds-font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--ds-transition),
    box-shadow var(--ds-transition-slow),
    border-color var(--ds-transition),
    color var(--ds-transition),
    background-position var(--ds-transition-slow);
}
.btn::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  transition: transform var(--ds-transition);
}
.btn:hover::after,
.btn:focus-visible::after { transform: translate(4px, -50%); }
.btn:focus-visible { outline: 3px solid rgba(139, 90, 60, 0.35); outline-offset: 3px; }

.btn--primary {
  color: var(--ds-btn-text);
  background: var(--grad-cta);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: var(--ds-shadow), inset 0 1px 0 rgba(255, 240, 210, 0.18);
}
/* Re-declarer le degrade au survol : un `background` en raccourci ailleurs l'effacerait (incident db9cad6). */
.btn--primary:hover {
  background: var(--grad-cta);
  background-size: 200% 200%;
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: var(--ds-shadow-lift), inset 0 1px 0 rgba(255, 240, 210, 0.18);
}

.btn--secondary {
  color: var(--ds-title);
  background: var(--ds-surface);
  border: 1.5px solid var(--ds-border);
  box-shadow: var(--ds-shadow-sm);
}
.btn--secondary:hover {
  color: var(--ds-btn-bg);
  border-color: var(--ds-btn-bg);
  transform: translateY(-1px);
  box-shadow: var(--ds-shadow);
}

/* Sous-page : une legende sous chaque bouton pour dire a qui il s'adresse. */
.links--captioned { gap: 24px; }
.links--captioned li { display: grid; gap: 8px; }
.caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: var(--ds-muted);
}

/* ---------- Reseaux ---------- */

.social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ds-muted);
  transition: color var(--ds-transition);
}
.social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ds-surface);
  color: var(--ds-title);
  box-shadow: var(--ds-shadow-sm);
  transition: transform var(--ds-transition), box-shadow var(--ds-transition), color var(--ds-transition);
}
.social svg { width: 20px; height: 20px; }
.social a:hover { color: var(--ds-btn-bg); }
.social a:hover .social__icon { color: var(--ds-btn-bg); transform: translateY(-1px); box-shadow: var(--ds-shadow); }
.social a:focus-visible { outline: none; }
.social a:focus-visible .social__icon { outline: 3px solid rgba(139, 90, 60, 0.35); outline-offset: 3px; }

.nowrap { white-space: nowrap; }

h1, h2, h3, .tagline, .caption, .lede { text-wrap: balance; }

.rule--section { margin-top: 48px; }

/* ---------- Pied de page ---------- */

.footer {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ds-muted);
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 16px;
}
.footer nav a {
  display: inline-block;
  padding: 8px 0;
  color: var(--ds-muted);
  text-decoration: underline;
  text-decoration-color: rgba(107, 90, 71, 0.35);
  text-underline-offset: 3px;
  transition: color var(--ds-transition);
}
.footer nav a:hover { color: var(--ds-btn-bg); text-decoration-color: currentColor; }
.footer p { margin: 4px 0 0; }

/* ---------- Lien retour (sous-pages) ---------- */

.back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -12px 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ds-btn-bg);
  text-decoration: none;
}
.back:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pages de lecture : CGV, confidentialite ---------- */

.page--doc { max-width: 720px; }

.doc-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.doc-head .mark { width: 80px; height: 80px; }
.doc-head .kicker { margin: 0; }

.doc h1 {
  margin: 32px 0 8px;
  font-size: 32px;
  font-weight: 800;
  font-variation-settings: "opsz" 144, "SOFT" 10;
  letter-spacing: -0.025em;
}
.doc .lede { margin: 0; color: var(--ds-text-secondary); }
.doc h2 {
  position: relative;
  margin: 48px 0 16px;
  padding-top: 24px;
  font-size: 24px;
}
.doc h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(280px, 60%);
  height: 1px;
  background: var(--grad-accent);
  opacity: 0.65;
}
.doc h3 {
  margin: 32px 0 8px;
  font-size: 20px;
  color: var(--ds-title-80);
}
.doc p, .doc li { max-width: 65ch; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 24px; }
.doc li { margin: 0 0 8px; }
.doc li::marker { color: var(--ds-gold); }
.doc strong { font-weight: 700; color: var(--ds-text); }
.doc a { color: var(--ds-btn-bg); text-underline-offset: 3px; }
.doc a:hover { color: var(--ds-title); }
.doc .meta { color: var(--ds-muted); font-size: 13px; }

.doc table {
  width: 100%;
  margin: 8px 0 24px;
  border-collapse: collapse;
}
.doc th, .doc td {
  padding: 12px 16px 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ds-border);
}
.doc th {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-title);
}

.doc-end {
  margin-top: 48px;
  padding: 24px 0 0;
  border-top: 1px solid var(--ds-border);
}
.doc-end p { margin: 0 0 4px; }

/* ---------- Grands ecrans ---------- */

@media (min-width: 768px) {
  .page { padding-top: 96px; }
  .doc h1 { font-size: 48px; }
  .doc h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
