/* =========================================================
   YVYCO — feuille de style du site vitrine (yvyco.fr)
   HTML + CSS statiques, aucune ressource tierce.
   ========================================================= */

/* ---------- Police Inter auto-hébergée (@fontsource/inter, jeu latin) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/inter-latin-800-normal.woff2") format("woff2");
}

/* ---------- Couleurs et réglages ---------- */
:root {
  /* YVYCO */
  --nuit: #0E1033;
  --carre: #1C1F52;
  --violet: #5B4BF0;
  --violet-survol: #4A3AE0;
  --violet-fonce: #2F22B8;
  --lavande: #8B7CFF;
  --violet-clair: #F5F4FE;
  --bordure: #E6E4F5;
  --texte: #14142B;
  --texte-2: #3C3D55;
  --texte-3: #55566B;
  --texte-sur-nuit: #D4D2F0;

  /* YvoPro */
  --yp-fond: #F4F3EF;
  --yp-bordure: #E5E3DC;
  --yp-orange: #E8590C;
  --yp-orange-fonce: #C2410C;
  --yp-orange-survol: #A9380A;
  --yp-surtitre: #B13A0B;
  --yp-texte: #111110;
  --yp-texte-2: #3D3C38;
  --yp-texte-3: #55534D;
  --yp-cadre: #1D1C1A;

  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gouttiere: 32px;
  --rayon: 12px;
  --rayon-carte: 16px;
  --focus: var(--violet-fonce);
}

@media (max-width: 479px) {
  :root { --gouttiere: 20px; }
}

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

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

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--violet-fonce);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

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

/* Zones sombres et zone YvoPro : couleur de focus visible sur leur fond */
.sur-nuit {
  --focus: #FFFFFF;
  /* comble le joint d'1 px entre deux blocs sombres placés à une position fractionnaire */
  box-shadow: 0 1px 0 var(--nuit);
}
.yvopro { --focus: var(--yp-texte); }

.conteneur {
  width: min(100% - 2 * var(--gouttiere), 1200px);
  margin-inline: auto;
}

/* Groupe de mots à ne jamais couper (ex. nom propre avec trait d'union) */
.insecable { white-space: nowrap; }

/* Lien d'évitement (visible au clavier uniquement) */
.lien-evitement {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--texte);
  font-weight: 600;
  text-decoration: none;
}
.lien-evitement:focus { top: 16px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--rayon);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.bouton--violet { background: var(--violet); color: #fff; }
.bouton--violet:hover { background: var(--violet-survol); }
.bouton--contour { border-color: #fff; color: #fff; }
.bouton--contour:hover { background: rgba(255, 255, 255, 0.1); }
.bouton--orange { background: var(--yp-orange-fonce); color: #fff; }
.bouton--orange:hover { background: var(--yp-orange-survol); }
.bouton--petit { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }

/* ---------- Sur-titres ---------- */
.surtitre {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--violet-fonce);
}
.surtitre--lavande { color: var(--lavande); }
.surtitre--yvopro { color: var(--yp-surtitre); }

/* ---------- En-tête ---------- */
.entete {
  background: var(--nuit);
  color: var(--texte-sur-nuit);
}
.entete-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 14px;
}
.logo {
  display: inline-flex;
  margin-left: -10px; /* le SVG a une marge interne : on aligne le carré sur le bord */
  border-radius: 8px;
}
.logo img { width: auto; height: 60px; }

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.menu a:not(.bouton) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--texte-sur-nuit);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.menu a:not(.bouton):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.menu .bouton { margin-left: 12px; }

/* ---------- Accroche ---------- */
.accroche {
  background: var(--nuit);
  color: var(--texte-sur-nuit);
  padding-block: 64px 112px;
}
.accroche-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
}
.accroche h1 {
  max-width: 16ch;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(2.375rem, 1.5rem + 3.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.accroche .intro {
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.cube {
  width: 300px;
  height: 300px;
  filter: drop-shadow(0 28px 56px rgba(91, 75, 240, 0.28));
}

/* ---------- Section YvoPro ---------- */
.yvopro {
  background: var(--yp-fond);
  color: var(--yp-texte-2);
  padding-block: 104px;
}
.yvopro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 80px;
}
.yvopro-logo {
  width: auto;
  height: 48px;
  margin-bottom: 32px;
}
.yvopro h2 {
  max-width: 18ch;
  margin-bottom: 20px;
  color: var(--yp-texte);
  font-size: clamp(1.875rem, 1.25rem + 2.2vw, 2.875rem);
}
.yvopro .intro {
  max-width: 36em;
  font-size: 1.125rem;
}

.atouts {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.atout {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.pastille {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yp-orange);
  color: #fff;
}
.pastille svg { width: 22px; height: 22px; }
.atout h3 {
  margin-bottom: 4px;
  color: var(--yp-texte);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.atout p {
  color: var(--yp-texte-3);
  font-size: 1rem;
}

.tarif {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: 640px;
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--yp-bordure);
  border-radius: var(--rayon-carte);
  background: #fff;
}
.tarif > div { flex: 1 1 260px; }
.prix {
  color: var(--yp-texte);
  font-size: 1.0625rem;
  font-weight: 500;
}
.prix strong {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tarif-details {
  max-width: 30em;
  margin-top: 6px;
  color: var(--yp-texte-3);
  font-size: 0.875rem;
  line-height: 1.5;
}

.telephone {
  width: 320px;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  border: 10px solid var(--yp-cadre);
  border-radius: 40px;
  background: var(--yp-cadre);
  box-shadow:
    0 30px 60px -24px rgba(17, 17, 16, 0.32),
    0 8px 20px -10px rgba(17, 17, 16, 0.18);
}
.telephone img { width: 100%; }

/* ---------- Bandeau Bientôt ---------- */
.bientot {
  background: var(--violet-clair);
  border-block: 1px solid var(--bordure);
  padding-block: 80px;
}
.bientot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px 64px;
}
.bientot h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
}
.bientot .intro {
  max-width: 40em;
  color: var(--texte-2);
}
.bientot .bouton { flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact { padding-block: 96px 104px; }
.contact h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
}
.contact .intro {
  max-width: 40em;
  color: var(--texte-2);
  font-size: 1.125rem;
}
/* Une colonne par carte, large d’un tiers de la ligne, l’ensemble centré :
   2 cartes restent au centre, 3 cartes remplissent la ligne. */
.cartes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 20px) / 3); /* 20px = gap */
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.carte {
  display: block;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-carte);
  background: #fff;
  color: var(--texte);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.carte:hover {
  border-color: var(--lavande);
  box-shadow: 0 10px 28px -14px rgba(47, 34, 184, 0.35);
}
.carte-icone {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--violet-clair);
  color: var(--violet-fonce);
}
.carte-icone svg { width: 22px; height: 22px; }
.carte-label {
  display: block;
  color: var(--texte-3);
  font-size: 0.875rem;
  font-weight: 500;
}
.carte-valeur {
  display: block;
  margin-top: 2px;
  color: var(--texte);
  font-size: 1.0625rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
a.carte .carte-valeur {
  color: var(--violet-fonce);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a.carte:hover .carte-valeur { text-decoration-thickness: 2px; }

/* ---------- Pied de page ---------- */
.pied {
  background: var(--nuit);
  color: var(--texte-sur-nuit);
  padding-block: 40px;
  font-size: 0.9375rem;
}
.pied-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.pied-logo {
  width: auto;
  height: 44px;
  margin-left: -7px; /* même alignement que le logo de l'en-tête */
}
.pied-mentions { flex: 1 1 auto; }
.pied-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.pied-liens a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--texte-sur-nuit);
}
.pied-liens a:hover { color: #fff; }

/* ---------- Pages intérieures (mentions légales, 404) ---------- */
.titre-page {
  background: var(--nuit);
  color: var(--texte-sur-nuit);
  padding-block: 40px 72px;
}
.titre-page h1 {
  color: #fff;
  font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem);
  letter-spacing: -0.03em;
}

.mentions { padding-block: 64px 104px; }
.mentions-inner { max-width: 760px; }
.mentions section + section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--bordure);
}
.mentions h2 {
  margin-bottom: 16px;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}
.mentions p { color: var(--texte-2); }
.mentions p + p { margin-top: 6px; }

.erreur {
  background: var(--nuit);
  color: var(--texte-sur-nuit);
  padding-block: 72px 120px;
}
.erreur h1 {
  max-width: 18ch;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
  letter-spacing: -0.03em;
}
.erreur .intro { max-width: 34em; font-size: 1.125rem; }

/* ---------- Téléphone et petites tablettes (< 800 px) ---------- */
@media (max-width: 799px) {
  .entete-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .menu { margin-left: -14px; } /* aligne le texte du premier lien sur le bord */
  .menu .bouton { margin-left: 14px; }

  .accroche { padding-block: 40px 72px; }
  .accroche-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .cube { display: none; } /* décoratif : masqué sur téléphone */

  .yvopro { padding-block: 72px; }
  .yvopro-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
  .tarif { padding: 22px; }

  .bientot { padding-block: 64px; }
  .bientot-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact { padding-block: 72px 80px; }
  .cartes {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
  }

  .pied-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .pied-liens { margin-left: -10px; }

  .titre-page { padding-block: 24px 48px; }
  .mentions { padding-block: 48px 80px; }
  .erreur { padding-block: 40px 88px; }
}

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
}
