/* Site de GRH — feuille de style commune. Couleurs reprises de l'application. */

@font-face {
  font-family: 'Poppins';
  src: url('polices/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('polices/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --marine: #012e4f;
  --marine-doux: #1b4361;
  --bleu: #216a86;
  --bleu-pale: #dcebf1;
  --fond: #f4f6f8;
  --carte: #ffffff;
  --texte: #303030;
  --attenue: #5f6b75;
  --bordure: #e3e8ec;
  --succes: #2e9e6b;
  --rayon: 16px;
  --largeur: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

a:hover {
  color: var(--marine);
}

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

/* En-tête ------------------------------------------------------------------ */

.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--marine);
  color: #fff;
}

/* Liens du menu (#android…) : la section s'arrête sous l'en-tête fixe. */
section[id] {
  scroll-margin-top: var(--hauteur-entete, 72px);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.marque img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.marque:hover {
  color: #fff;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.navigation a {
  color: #dbe4ea;
  text-decoration: none;
  font-size: 14.5px;
  padding: 6px 0;
}

.navigation a:hover,
.navigation a[aria-current='page'] {
  color: #fff;
  border-bottom: 2px solid #7fb3c8;
}

/* Choix de la langue : la langue de la page est en blanc. */
.langues {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.navigation .langues a {
  padding: 2px 10px;
  border-radius: 999px;
  border-bottom: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.navigation .langues a:hover {
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.14);
}

.navigation .langues a[aria-current='true'] {
  background: #fff;
  color: var(--marine);
}

/* Bandeau d'accueil -------------------------------------------------------- */

.accroche {
  background: linear-gradient(160deg, var(--marine) 0%, var(--marine-doux) 60%, var(--bleu) 100%);
  color: #fff;
  padding: 72px 0 80px;
}

.accroche .conteneur {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.accroche h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 600;
}

.accroche p {
  font-size: 18px;
  color: #dbe4ea;
  margin: 0 0 28px;
  max-width: 560px;
}

.accroche .scene {
  position: relative;
  width: min(280px, 100%);
  margin: 0 auto;
}

.accroche .visuel img {
  width: 100%;
  border-radius: 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Étiquettes flottant autour du logo, remplies par compteur.js. */
.flottant {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--marine);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  animation: flotter 5s ease-in-out infinite;
}

.flottant-telechargements {
  left: -64px;
  bottom: -24px;
  padding: 10px 20px 10px 10px;
  border-radius: 16px;
}

.flottant-telechargements .rond {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--succes);
  color: #fff;
  display: grid;
  place-items: center;
}

.flottant-telechargements .rond svg {
  width: 22px;
  height: 22px;
}

.flottant-telechargements strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.flottant-telechargements small {
  display: block;
  font-size: 12.5px;
  color: var(--attenue);
}

.flottant-version {
  top: -18px;
  right: -48px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  animation-delay: -2.5s;
}

.point {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--succes);
  animation: pulsation 2s ease-out infinite;
}

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

@keyframes pulsation {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 158, 107, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(46, 158, 107, 0);
  }
}

/* Bandeau des chiffres, à cheval sur le bas de l'accroche. Les filets entre
   les cases sont le fond de la grille, visible dans ses interstices. */
.chiffres {
  position: relative;
  z-index: 1;
  padding: 0;
  margin-top: -44px;
}

.bandeau-chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--bordure);
  border: 1px solid var(--bordure);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(1, 46, 79, 0.12);
  overflow: hidden;
}

/* Une case : l'icône à côté du nombre, le libellé dessous sur toute la largeur. */
.chiffre {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    'icone nombre'
    'libelle libelle';
  align-items: center;
  gap: 8px 12px;
  padding: 20px 22px;
  background: var(--carte);
}

.chiffre .icone {
  grid-area: icone;
  width: 40px;
  height: 40px;
}

.chiffre strong {
  grid-area: nombre;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--marine);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chiffre .libelle {
  grid-area: libelle;
  font-size: 13.5px;
  color: var(--attenue);
}

.nouveau {
  display: inline-block;
  vertical-align: middle;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--succes);
  background: #e3f4ec;
  border-radius: 999px;
  padding: 1px 9px;
}

@media (prefers-reduced-motion: reduce) {
  .flottant,
  .point {
    animation: none;
  }
}

.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
}

.bouton-plein {
  background: #fff;
  color: var(--marine);
}

.bouton-plein:hover {
  background: var(--bleu-pale);
  color: var(--marine);
}

.bouton-contour {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.bouton-contour:hover {
  border-color: #fff;
  color: #fff;
}

.accroche .mention {
  font-size: 14px;
  color: #c8d4dc;
  margin: 16px 0 0;
}

.accroche .mention a {
  color: #fff;
}

[hidden] {
  display: none !important;
}

.etape {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--marine);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.pastille {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 18px;
}

/* Sections ------------------------------------------------------------------ */

section {
  padding: 64px 0;
}

.titre-section {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 8px;
  color: var(--marine);
  font-weight: 600;
}

.sous-titre {
  color: var(--attenue);
  margin: 0 0 32px;
  max-width: 680px;
}

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Quatre cartes : une ligne, sinon deux par deux, jamais trois plus une. */
.grille-quatre {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grille-quatre .carte {
  overflow-wrap: anywhere;
}

@media (max-width: 1099px) {
  .grille-quatre {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .grille-quatre {
    grid-template-columns: 1fr;
  }
}

.carte {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 24px;
}

.carte h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  color: var(--marine);
  font-weight: 600;
}

.carte p,
.carte li {
  color: var(--attenue);
  font-size: 15px;
  margin: 0;
}

.carte ul {
  margin: 0;
  padding-left: 18px;
}

.icone {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bleu-pale);
  color: var(--bleu);
  display: grid;
  place-items: center;
}

.icone svg {
  width: 24px;
  height: 24px;
}

.alterne {
  background: var(--carte);
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}

/* Offres */

.offre {
  display: flex;
  flex-direction: column;
}

.offre .prix {
  font-size: 34px;
  font-weight: 600;
  color: var(--marine);
  margin: 6px 0 2px;
}

.offre .remise {
  display: inline-block;
  font-size: 12.5px;
  color: var(--succes);
  background: #e3f4ec;
  border-radius: 999px;
  padding: 2px 10px;
  margin-top: 8px;
  align-self: flex-start;
}

.note {
  color: var(--attenue);
  font-size: 14px;
  margin-top: 20px;
}

/* Documents (confidentialité, support) ------------------------------------ */

.document {
  padding: 48px 0 64px;
}

.document .feuille {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: clamp(20px, 4vw, 48px);
  max-width: 860px;
  margin: 0 auto;
}

.document h1 {
  color: var(--marine);
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 6px;
  font-weight: 600;
}

.document h2 {
  color: var(--marine);
  font-size: 21px;
  margin: 36px 0 10px;
  font-weight: 600;
}

.document h3 {
  font-size: 17px;
  margin: 22px 0 6px;
  font-weight: 600;
}

.document .maj {
  color: var(--attenue);
  font-size: 14px;
  margin: 0 0 24px;
}

.document ul {
  padding-left: 22px;
}

.document li {
  margin: 4px 0;
}

.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}

.tableau th,
.tableau td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--bordure);
}

.tableau th {
  color: var(--marine);
  font-weight: 600;
  background: var(--fond);
}

.defilement {
  overflow-x: auto;
}

/* Contacts */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 8px;
}

.contact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}

.contact strong {
  display: block;
  color: var(--marine);
}

.contact span,
.contact a {
  font-size: 15px;
  word-break: break-word;
}

details {
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--marine);
}

details p {
  margin: 10px 0 0;
  color: var(--attenue);
}

/* Application Android -------------------------------------------------------- */

.pictogramme {
  width: 18px;
  height: 18px;
  flex: none;
}

.bouton-marine {
  background: var(--marine);
  color: #fff;
}

.bouton-marine:hover {
  background: var(--bleu);
  color: #fff;
}

.bouton-attente {
  background: var(--bleu-pale);
  color: var(--marine);
  cursor: default;
}

.pastille-nouveau {
  background: var(--bleu-pale);
  color: var(--marine);
  font-weight: 600;
  margin-bottom: 12px;
}

.android {
  background: linear-gradient(180deg, #fff 0%, var(--fond) 100%);
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}

.android .conteneur {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.atouts {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.atouts li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
}

.atouts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--succes) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.android .note {
  max-width: 560px;
}

/* Téléphone dessiné en CSS : un écran de GRH stylisé, sans capture. */
.telephone {
  justify-self: center;
  width: 250px;
  padding: 14px 12px 22px;
  border-radius: 36px;
  background: #10202e;
  box-shadow: 0 30px 60px rgba(1, 46, 79, 0.28);
}

.ecran {
  border-radius: 24px;
  overflow: hidden;
  background: var(--fond);
  font-size: 12px;
  padding-bottom: 14px;
}

.ecran-barre {
  background: var(--marine);
  color: #fff;
  font-weight: 600;
  padding: 14px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ecran-barre .menu {
  font-size: 15px;
  line-height: 1;
}

.ecran-tuiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 12px 4px;
}

.ecran-tuiles div {
  background: var(--marine-doux);
  color: #fff;
  border-radius: 12px;
  padding: 10px;
}

.ecran-tuiles strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.ecran-tuiles small {
  color: #c8d4dc;
}

.ecran-ligne {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  margin: 8px 12px 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--bordure);
}

.ecran-ligne span:nth-child(2) {
  flex: 1;
  font-weight: 600;
  color: var(--marine);
}

.ecran-ligne .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bleu-pale);
  color: var(--marine);
  font-size: 10px;
  font-weight: 600;
}

.ecran-ligne em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--succes);
  background: rgba(46, 158, 107, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}

.ecran-ligne em.conge {
  color: #b7791f;
  background: rgba(183, 121, 31, 0.12);
}

/* Pied ---------------------------------------------------------------------- */

.pied {
  background: var(--marine);
  color: #c8d4dc;
  padding: 32px 0;
  font-size: 14px;
}

.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.pied a {
  color: #fff;
  text-decoration: none;
  margin-right: 18px;
}

.pied a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Fenêtre étroite ------------------------------------------------------------ */

@media (max-width: 760px) {
  /* Le menu passe sur deux lignes : l'en-tête est plus haut. */
  section[id] {
    --hauteur-entete: 128px;
  }

  .accroche {
    padding: 48px 0 76px;
  }

  .bandeau-chiffres {
    grid-template-columns: repeat(2, 1fr);
  }

  .chiffre {
    grid-template-columns: 1fr;
    grid-template-areas:
      'icone'
      'nombre'
      'libelle';
    align-items: start;
    align-content: start;
    gap: 6px;
    padding: 16px;
  }

  .chiffre strong {
    font-size: 22px;
    white-space: normal;
  }

  .chiffre .libelle {
    font-size: 12.5px;
  }

  .accroche .conteneur {
    grid-template-columns: 1fr;
  }

  .accroche .visuel {
    display: none;
  }

  .android .conteneur {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  section {
    padding: 44px 0;
  }

  .navigation {
    gap: 2px 14px;
  }
}
