/* =========================================================
   dappy.app — feuille de style unique
   Toutes les couleurs sont des variables : pour changer
   l'ambiance, il suffit de modifier le bloc :root.
   ========================================================= */

/* ---------- Polices (hébergées sur le site, aucun appel à Google) ----------
   Polices « variables » : un seul fichier couvre toutes les graisses.
   latin = français/anglais, latin-ext = lettres en plus (ex. italien, allemand). */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/fredoka-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/fredoka-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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-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;
}

/* ---------- Palette « Corail » ---------- */
:root {
  --accent: #FF6F59;          /* corail « happy » */
  --accent-fort: #FF8B78;     /* survol des boutons */
  --accent-doux: #FFE0D9;     /* fonds de pastilles */
  --encre: #13294B;           /* bleu marine : titres et texte */
  --texte: #2A3A55;
  --texte-doux: #5E6B82;
  --fond: #FBF7F2;            /* blanc cassé chaud */
  --surface: #FFFFFF;
  --bordure: #EDE3D9;
  --ombre: 0 10px 30px rgba(19, 41, 75, 0.10);
  --ombre-forte: 0 18px 40px rgba(19, 41, 75, 0.16);
  --sur-accent: #13294B;      /* texte posé sur le corail (marine = bien lisible) */

  --rayon: 22px;
  --rayon-petit: 14px;
  --largeur: 1080px;
  --police-titre: "Fredoka", "Nunito", system-ui, sans-serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #FF8A76;
    --accent-fort: #FFA595;
    --accent-doux: #2C3B5A;
    --encre: #FFF1EC;
    --texte: #E3E8F1;
    --texte-doux: #A3AEC2;
    --fond: #0F1A2E;
    --surface: #18263F;
    --bordure: #2A3A57;
    --ombre: 0 10px 30px rgba(0, 0, 0, 0.35);
    --ombre-forte: 0 18px 40px rgba(0, 0, 0, 0.5);
    --sur-accent: #13294B;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--police-titre);
  color: var(--encre);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--encre); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent-fort); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 20px;
}

.lien-evitement {
  position: absolute;
  left: -9999px;
}
.lien-evitement:focus {
  left: 16px; top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--rayon-petit);
}

/* ---------- En-tête ---------- */
.entete {
  padding: 18px 0;
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--encre);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo img {
  width: 38px; height: 38px;
  transition: transform 0.6s ease;
}
.logo:hover img { transform: rotate(45deg); }

.nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 6px;
}
.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.nav a:hover { background: var(--accent-doux); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--sur-accent); }

/* Sélecteur de langue : FR · EN · IT · DE */
.langues ul {
  list-style: none;
  margin: 0; padding: 3px;
  display: flex;
  gap: 2px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--bordure);
}
.langues a {
  display: block;
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--texte-doux);
}
.langues a:hover { color: var(--encre); background: var(--accent-doux); }
.langues a[aria-current="true"] { background: var(--encre); color: var(--fond); }

/* Sur mobile : logo et langues sur la première ligne, menu en dessous */
@media (max-width: 759px) {
  .entete .nav { order: 3; width: 100%; }
  .nav ul { justify-content: space-between; }
}
@media (min-width: 760px) {
  .entete .nav { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 64px;
  text-align: center;
}
.hero-soleil {
  width: 110px; height: 110px;
  margin: 0 auto 20px;
  animation: flotte 5s ease-in-out infinite;
}
.hero h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.hero .accroche {
  font-size: 1.2rem;
  color: var(--texte-doux);
  max-width: 34rem;
  margin: 0 auto 28px;
}

@keyframes flotte {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(8deg); }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--sur-accent);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  box-shadow: var(--ombre);
  transition: transform 0.2s ease, background 0.2s ease;
}
.bouton:hover { background: var(--accent-fort); transform: translateY(-2px); }

.bouton-secondaire {
  background: transparent;
  color: var(--encre);
  box-shadow: inset 0 0 0 2px var(--bordure);
}
.bouton-secondaire:hover { background: var(--accent-doux); }

.bouton[aria-disabled="true"] {
  background: var(--surface);
  color: var(--texte-doux);
  box-shadow: inset 0 0 0 2px var(--bordure);
  cursor: default;
  transform: none;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-titre { text-align: center; margin-bottom: 32px; }
.section-titre p { color: var(--texte-doux); }

/* ---------- Grille des apps ---------- */
.grille-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
}

.carte-app {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: var(--surface);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.carte-app:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.carte-app h3 { margin: 0; }
.carte-app h3 a { text-decoration: none; }
/* Toute la carte est cliquable grâce à ce pseudo-élément */
.carte-app h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.carte-app p { margin: 0; color: var(--texte-doux); }

.carte-app.a-venir {
  background: transparent;
  box-shadow: none;
  border: 2px dashed var(--bordure);
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--texte-doux);
}
.carte-app.a-venir:hover { transform: none; }

.icone-app {
  width: 76px; height: 76px;
  border-radius: 22%;          /* forme des icônes iOS */
  box-shadow: var(--ombre);
  object-fit: cover;
}

.badge {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--accent-doux);
  color: var(--encre);
}
.badge.dispo { background: var(--accent); color: var(--sur-accent); }

/* ---------- Emplacements d'images manquantes ---------- */
.emplacement {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--texte-doux);
  background: repeating-linear-gradient(-45deg, var(--accent-doux) 0 10px, transparent 10px 20px);
  border: 2px dashed var(--accent);
}
.icone-app.emplacement { padding: 6px; font-size: 0.65rem; }

/* ---------- Bloc studio ---------- */
.bloc-studio {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 36px;
  background: var(--accent-doux);
  border-radius: calc(var(--rayon) + 8px);
}
.bloc-studio p:last-child { margin-bottom: 0; }

/* ---------- Page d'une app ---------- */
.app-hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 32px; padding-bottom: 48px;
}
.app-hero .icone-app { width: 120px; height: 120px; margin-bottom: 18px; }
.app-hero .slogan { font-size: 1.25rem; color: var(--texte-doux); }
.app-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.points-forts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0; padding: 0;
}
.points-forts li {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.points-forts .emoji { font-size: 2rem; line-height: 1; display: block; margin-bottom: 12px; }
.points-forts h3 { margin-bottom: 6px; }
.points-forts p { margin: 0; color: var(--texte-doux); }

/* Captures d'écran : défilement horizontal sur mobile */
.captures {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
  list-style: none;
  margin: 0;
}
.captures li { flex: 0 0 auto; scroll-snap-align: center; }
.capture {
  width: 220px;
  aspect-ratio: 1179 / 2556;   /* proportions d'un iPhone récent */
  border-radius: 30px;
  box-shadow: var(--ombre);
  object-fit: cover;
}

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border-radius: var(--rayon-petit);
  box-shadow: var(--ombre);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--encre);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-fort); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 18px; }
.faq details p:last-child { margin-bottom: 0; }

/* ---------- Pages de texte (support, confidentialité, à propos…) ---------- */
.page-texte { max-width: 46rem; margin: 0 auto; padding: 24px 20px 64px; }
.page-texte h2 { margin-top: 1.8em; font-size: 1.5rem; }
.page-texte ul { padding-left: 1.2em; }
.page-texte li { margin-bottom: 0.4em; }
.fil-ariane { font-size: 0.92rem; color: var(--texte-doux); margin-bottom: 8px; }
.fil-ariane a { color: var(--texte-doux); }
.mise-a-jour { color: var(--texte-doux); font-size: 0.95rem; }

.encadre {
  padding: 20px 24px;
  background: var(--surface);
  border-left: 5px solid var(--accent);
  border-radius: var(--rayon-petit);
  box-shadow: var(--ombre);
  margin: 24px 0;
}
.encadre p:last-child { margin-bottom: 0; }

/* Texte provisoire à remplacer : bien visible pour ne pas l'oublier */
.a-completer {
  background: var(--accent-doux);
  border-bottom: 2px dashed var(--accent-fort);
  padding: 0 4px;
  border-radius: 4px;
}

.mention { font-size: 0.92rem; color: var(--texte-doux); }

/* ---------- Pied de page ---------- */
.pied {
  margin-top: 40px;
  padding: 32px 0 40px;
  border-top: 2px solid var(--bordure);
  font-size: 0.95rem;
  color: var(--texte-doux);
}
.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.pied a { color: var(--texte-doux); }
.pied a:hover { color: var(--encre); }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 760px) {
  .hero { padding: 72px 0 88px; }
  .bloc-studio { grid-template-columns: 1fr 2fr; padding: 48px; }
  .app-hero { grid-template-columns: 1.1fr 1fr; padding-top: 56px; padding-bottom: 72px; }
  .captures { justify-content: center; }
}

/* ---------- Respect du réglage « réduire les animations » ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Petits utilitaires (remplacent les styles écrits dans le HTML) ---------- */
.emoji-grand { font-size: 2rem; }
.centre { text-align: center; }
