/* Housecount, site vitrine : couleurs du logo, une seule police, mode sombre automatique. */
:root {
  --bleu: #34526f;
  --bleu-profond: #1f3448;
  --or: #e8b04a;
  --or-doux: #f6e3bd;
  --fond: #f7f8fa;
  --surface: #ffffff;
  --texte: #1c1f23;
  --texte-doux: #5b636d;
  --bord: #e3e7ec;
  --ombre: 0 24px 60px -24px rgb(31 52 72 / 35%);
  --rayon: 22px;
  --largeur: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0f1215;
    --surface: #171b20;
    --texte: #eef0f3;
    --texte-doux: #9aa3ad;
    --bord: #262c33;
    --or-doux: #3a2f1a;
    --ombre: 0 24px 60px -24px rgb(0 0 0 / 70%);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family:
    'Manrope',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.conteneur {
  width: min(var(--largeur), 100% - 40px);
  margin-inline: auto;
}

/* En-tête */
.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--fond) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--bord) 60%, transparent);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: var(--texte-doux);
}

.nav a:hover {
  color: var(--texte);
}

.nav .bouton-principal,
.nav .bouton-principal:hover {
  color: #2b2006;
}

@media (max-width: 720px) {
  .nav .lien-secondaire {
    display: none;
  }
}

/* Petit écran : la marque seule (et le bouton de l'accueil) ; les liens restent dans le pied de page. */
@media (max-width: 560px) {
  .nav a:not(.bouton) {
    display: none;
  }
}

@media (max-width: 400px) {
  .nav .bouton {
    display: none;
  }
}

.bouton {
  white-space: nowrap;
}

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.bouton:hover {
  transform: translateY(-1px);
}

.bouton-principal {
  background: var(--or);
  color: #2b2006;
  box-shadow: 0 10px 30px -10px rgb(232 176 74 / 70%);
}

.bouton-discret {
  border: 1.5px solid var(--bord);
  color: var(--texte);
}

.bouton-petit {
  padding: 9px 18px;
  font-size: 14px;
}

/* Ouverture */
.ouverture {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, #4b6f93 0%, transparent 60%),
    linear-gradient(160deg, var(--bleu) 0%, var(--bleu-profond) 100%);
  color: #fff;
}

.ouverture .conteneur {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  padding-block: 96px 0;
}

.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 18%);
  font-size: 14px;
  font-weight: 600;
  color: #f2d9a6;
}

.ouverture h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.ouverture h1 em {
  font-style: normal;
  color: var(--or);
}

.ouverture .accroche {
  max-width: 520px;
  font-size: 19px;
  color: rgb(255 255 255 / 78%);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.ouverture .bouton-discret {
  border-color: rgb(255 255 255 / 30%);
  color: #fff;
}

.points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: rgb(255 255 255 / 75%);
}

.points li::before {
  content: '✓';
  margin-right: 8px;
  color: var(--or);
  font-weight: 800;
}

/* Téléphones */
.telephones {
  position: relative;
  height: 640px;
}

.telephone {
  position: absolute;
  width: 290px;
  border-radius: 46px;
  padding: 9px;
  background: #0b0d10;
  box-shadow:
    0 0 0 1.5px #2b3138,
    0 40px 80px -30px rgb(0 0 0 / 60%);
}

.telephone img {
  border-radius: 38px;
  width: 100%;
  height: auto;
}

.telephone-avant {
  left: 50%;
  top: 30px;
  transform: translateX(-30%) rotate(4deg);
  z-index: 2;
}

.telephone-arriere {
  left: 50%;
  top: 90px;
  transform: translateX(-95%) rotate(-6deg);
  opacity: 0.92;
}

@media (max-width: 960px) {
  .ouverture .conteneur {
    grid-template-columns: 1fr;
    padding-top: 64px;
    text-align: center;
  }

  .ouverture .accroche {
    margin-inline: auto;
  }

  .actions,
  .points {
    justify-content: center;
  }

  /* Écran étroit : un seul téléphone, droit et entier, plutôt que deux téléphones coupés. */
  .telephones {
    height: auto;
    padding-bottom: 64px;
  }

  .telephone {
    width: 260px;
  }

  .telephone-arriere {
    display: none;
  }

  .telephone-avant {
    position: relative;
    left: auto;
    top: auto;
    margin-inline: auto;
    transform: none;
  }
}

/* Sections */
.section {
  padding-block: 110px;
}

.titre-section {
  max-width: 680px;
  margin-bottom: 56px;
}

.surtitre {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
}

.titre-section h2,
.bloc h2 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.titre-section p,
.bloc p {
  color: var(--texte-doux);
  font-size: 18px;
}

/* Les chiffres qui comptent */
.bloc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}

.bloc + .bloc {
  margin-top: 120px;
}

.bloc-inverse .bloc-visuel {
  order: -1;
}

.bloc-visuel {
  display: flex;
  justify-content: center;
  padding: 48px 0;
  border-radius: 32px;
  background: radial-gradient(400px 300px at 50% 40%, var(--or-doux), transparent 70%);
}

.bloc-visuel .telephone {
  position: relative;
  width: 300px;
}

.liste-avantages {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.liste-avantages li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--bord);
}

.liste-avantages strong {
  display: block;
}

.liste-avantages span {
  color: var(--texte-doux);
  font-size: 16px;
}

.pastille {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--bleu);
  color: #fff;
  font-weight: 800;
}

@media (max-width: 860px) {
  .bloc {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .bloc-inverse .bloc-visuel {
    order: 0;
  }
}

/* Fonctionnalités */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.carte {
  padding: 30px;
  border-radius: var(--rayon);
  background: var(--surface);
  border: 1px solid var(--bord);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre);
}

.carte h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.carte p {
  margin: 0;
  color: var(--texte-doux);
  font-size: 16px;
}

.icone {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bleu) 12%, transparent);
  color: var(--bleu);
}

@media (prefers-color-scheme: dark) {
  .icone {
    background: color-mix(in srgb, var(--or) 14%, transparent);
    color: var(--or);
  }
}

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

/* Bande de confiance */
.confiance {
  background: var(--bleu-profond);
  color: #fff;
}

.confiance .grille {
  gap: 0;
}

.confiance .carte {
  background: transparent;
  border: 0;
  border-left: 1px solid rgb(255 255 255 / 12%);
  border-radius: 0;
}

.confiance .carte:hover {
  transform: none;
  box-shadow: none;
}

.confiance .carte p {
  color: rgb(255 255 255 / 70%);
}

.confiance .icone {
  background: rgb(232 176 74 / 14%);
  color: var(--or);
}

/* Drapeau tricolore dessiné en CSS : l'émoji 🇫🇷 s'affiche « FR » sous Windows. */
.drapeau {
  display: inline-block;
  width: 26px;
  height: 18px;
  margin-left: 6px;
  vertical-align: -2px;
  border-radius: 3px;
  background: linear-gradient(90deg, #0055a4 0 33.34%, #fff 33.34% 66.67%, #ef4135 66.67%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 25%);
}

/* Galerie */
.galerie {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 10px 4px 30px;
  scroll-snap-type: x mandatory;
}

.galerie figure {
  flex: none;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}

.galerie .telephone {
  position: relative;
  width: 250px;
}

.galerie figcaption {
  margin-top: 18px;
  font-weight: 600;
  color: var(--texte-doux);
}

/* FAQ */
.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--bord);
  padding: 22px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-weight: 700;
  font-size: 18px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--or);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 12px 0 0;
  color: var(--texte-doux);
}

/* Appel final */
.appel {
  text-align: center;
  border-radius: 36px;
  padding: 72px 28px;
  background:
    radial-gradient(600px 300px at 50% 0%, #4b6f93, transparent 70%),
    linear-gradient(160deg, var(--bleu), var(--bleu-profond));
  color: #fff;
}

.appel h2 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.appel p {
  color: rgb(255 255 255 / 75%);
  font-size: 18px;
}

.appel img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin-inline: auto;
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / 50%);
}

/* Pied de page */
.pied {
  padding-block: 56px 40px;
  color: var(--texte-doux);
  font-size: 15px;
}

.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--bord);
  padding-top: 32px;
}

.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.pied a {
  text-decoration: none;
}

.pied a:hover {
  color: var(--texte);
}

/* Pages de texte (confidentialité, support, mentions légales) */
.page-texte {
  padding-block: 72px 100px;
}

.page-texte .conteneur {
  max-width: 780px;
}

.page-texte h1 {
  font-size: clamp(34px, 5vw, 50px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 10px 0 12px;
}

.page-texte .chapeau {
  color: var(--texte-doux);
  font-size: 19px;
  margin-bottom: 48px;
}

.page-texte h2 {
  margin: 48px 0 12px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.page-texte h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.page-texte p,
.page-texte li {
  color: var(--texte-doux);
}

.page-texte strong {
  color: var(--texte);
}

.page-texte table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

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

.page-texte th {
  color: var(--texte);
}

.encadre {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--bord);
}

/* Apparition au défilement */
.js .apparait {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.js .apparait.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .apparait {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
