/* Site vitrine Mou7ami — direction « Médina ».
   Couleurs et polices de l'application : chaux, bleu de Sidi Bou Saïd, terre cuite ;
   Readex Pro (arabe) et Lexend (latin). Propriétés logiques : la même feuille
   sert l'arabe (de droite à gauche) et le français. */

:root {
  --chaux: #faf7f0;
  --encre: #1b2533;
  --encre-moyenne: #475163;
  --encre-douce: #586273;
  --ligne: #ece6da;
  --bleu: #1d5c9e;
  --bleu-fonce: #0f2f55;
  --bleu-clair: #e4eef8;
  --bleu-pale: #c9dbef;
  --terre: #b4532a;
  --terre-fonce: #9e4824;
  --terre-tres-fonce: #8a3d1e;
  --terre-claire: #fbf0e8;
  --nuit: #121a26;
  --police: 'Lexend', 'Readex Pro', system-ui, sans-serif;
}

[dir='rtl'] {
  --police: 'Readex Pro', 'Lexend', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--chaux);
  color: var(--encre);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

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

.conteneur {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ─── En-tête bleu, motif khatem (étoile à huit branches) ─── */
.entete {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: var(--bleu);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M20 20h24v24H20z M32 15l17 17-17 17-17-17z' fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* Frise de losanges terre cuite / chaux */
.frise {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M7 0l7 7-7 7-7-7z' fill='%23b4532a'/%3E%3Cpath d='M21 0l7 7-7 7-7-7z' fill='%23faf7f0'/%3E%3C/svg%3E");
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: 'Lexend', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-arche {
  width: 34px;
  height: 40px;
  border-radius: 17px 17px 4px 4px;
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  flex-shrink: 0;
}

.logo-arche::after {
  content: '';
  width: 14px;
  height: 20px;
  border-radius: 7px 7px 2px 2px;
  background: var(--bleu);
}

.nav-liens {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.nav-liens a,
.lien-connexion {
  color: #fff;
  text-decoration: none;
}

.nav-liens a:hover,
.lien-connexion:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.langues {
  display: flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 3px;
  font-size: 14px;
}

.langue {
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

a.langue:hover {
  background: rgba(255, 255, 255, 0.12);
}

.langue.active {
  background: #fff;
  color: var(--bleu);
  font-weight: 600;
}

.langue[lang='ar'] {
  font-family: 'Readex Pro', sans-serif;
}

.langue[lang='fr'] {
  font-family: 'Lexend', sans-serif;
}

/* ─── Accroche ─── */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 72px 96px;
}

.hero-texte {
  flex: 1 1 460px;
  min-width: 0;
}

.pastille {
  display: inline-block;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

[dir='rtl'] .hero h1 {
  letter-spacing: 0;
  line-height: 1.35;
}

.hero-sous {
  margin-top: 22px;
  font-size: 19px;
  color: var(--bleu-clair);
  max-width: 540px;
}

.hero-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--bleu-pale);
}

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

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}

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

.bouton-terre:hover {
  background: var(--terre-fonce);
}

.bouton-contour {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-weight: 500;
}

.bouton-contour:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bouton-blanc {
  background: #fff;
  color: var(--terre-tres-fonce);
  min-height: 54px;
  padding: 0 28px;
}

.bouton-blanc:hover {
  background: var(--terre-claire);
}

.hero-visuel {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.arche-cadre {
  position: relative;
  width: 440px;
  max-width: 100%;
}

.arche {
  height: 560px;
  border-radius: 220px 220px 28px 28px;
  background: var(--bleu-clair);
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding-top: 56px;
}

/* Sous le contenu du téléphone, pour ne pas en cacher une ligne. */
.flottant {
  position: absolute;
  inset-inline-start: -36px;
  bottom: 24px;
  max-width: 260px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--encre);
  box-shadow: 0 18px 40px rgba(15, 47, 85, 0.25);
}

.flottant-icone {
  width: 36px;
  height: 42px;
  border-radius: 18px 18px 6px 6px;
  background: var(--terre-claire);
  color: var(--terre);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flottant-titre {
  font-size: 13px;
  font-weight: 600;
}

.flottant-texte {
  font-size: 12px;
  color: var(--encre-douce);
}

/* ─── Aperçus de téléphone (décoratifs) ─── */
.tel {
  width: 260px;
  height: 560px;
  border-radius: 38px;
  background: var(--nuit);
  padding: 9px;
  flex-shrink: 0;
}

.tel-grand {
  width: 280px;
  height: 580px;
  border-radius: 40px;
  padding: 10px;
}

.tel-ecran {
  height: 100%;
  border-radius: 30px;
  background: var(--chaux);
  overflow: hidden;
  color: var(--encre);
  display: flex;
  flex-direction: column;
}

.tel-entete {
  background: var(--bleu);
  color: #fff;
  padding: 26px 18px 16px;
}

.tel-petit {
  font-size: 12px;
  color: var(--bleu-clair);
}

.tel-titre {
  font-size: 19px;
  font-weight: 600;
}

.tel-corps {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tel-lieu {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--encre-douce);
}

/* Aperçu : une ligne par texte, pour une hauteur prévisible. */
.tel-lieu,
.tel-carte-titre,
.tel-carte-sous {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tel-carte > div {
  min-width: 0;
}

.tel-bloc .tel-carte-sous {
  white-space: normal;
}

.tel-carte {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--ligne);
  background: #fff;
}

.tel-bloc {
  display: block;
}

.tel-heure {
  font-weight: 600;
  color: var(--bleu-fonce);
}

.tel-carte-titre {
  font-size: 13px;
  font-weight: 600;
}

.tel-carte-sous {
  font-size: 12px;
  color: var(--encre-douce);
}

.barre {
  text-decoration: line-through;
  color: var(--encre-douce);
}

.case {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid var(--bleu);
  flex-shrink: 0;
}

.case.cochee {
  background: var(--bleu);
}

.tel-lecture {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--bleu);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tel-onde {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--bleu-pale);
}

.tel-bouton {
  margin-top: 10px;
  height: 36px;
  border-radius: 10px;
  background: var(--bleu);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tel-pied {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--encre-douce);
}

.point {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--terre);
  flex-shrink: 0;
}

/* ─── Sections ─── */
.section {
  padding-block: 96px 48px;
}

.entete-section {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.surtitre {
  font-size: 14px;
  font-weight: 600;
  color: var(--terre-fonce);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

[dir='rtl'] .surtitre {
  font-size: 15px;
  letter-spacing: 0;
}

h2 {
  margin-top: 10px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--bleu-fonce);
}

[dir='rtl'] h2 {
  letter-spacing: 0;
  line-height: 1.4;
}

.section-texte {
  margin-top: 16px;
  font-size: 18px;
  color: var(--encre-douce);
}

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  margin-top: 52px;
}

.carte {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--ligne);
  background: #fff;
}

.carte-icone {
  width: 44px;
  height: 52px;
  border-radius: 22px 22px 8px 8px;
  background: var(--bleu-clair);
  color: var(--bleu);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carte-icone.terre {
  background: var(--terre-claire);
  color: var(--terre-fonce);
}

.carte h3 {
  margin: 20px 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--bleu-fonce);
}

.carte p {
  font-size: 15.5px;
  color: var(--encre-douce);
}

/* Vidéos : deux par ligne (une seule sur petit écran) */
.videos {
  padding-block: 48px;
}

.videos-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.video {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--ligne);
  background: #fff;
}

.video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bleu);
}

.video figcaption {
  padding: 20px 24px 24px;
}

.video h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--bleu-fonce);
}

.video p {
  margin-top: 6px;
  color: var(--encre-douce);
}

/* Appli mobile */
.mobile {
  padding: 48px 24px 96px;
}

.mobile-boite {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding: 56px 48px;
  border-radius: 32px;
  border: 1px solid var(--ligne);
  background: #fff;
}

.mobile-visuel {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.mobile-texte {
  flex: 1 1 460px;
  min-width: 0;
}

.points {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
}

.point-ligne {
  display: flex;
  gap: 16px;
}

.point-icone {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bleu-clair);
  color: var(--bleu);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.point-ligne h3 {
  font-size: 18px;
  font-weight: 600;
}

.point-ligne p {
  margin-top: 4px;
  color: var(--encre-douce);
}

/* Tarifs */
.tarifs {
  padding-block: 0 96px;
}

.offres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-top: 48px;
}

.offre {
  padding: 32px;
  border-radius: 22px;
  border: 1px solid var(--ligne);
  background: #fff;
}

.offre.vedette {
  background: var(--bleu-fonce);
  border-color: var(--bleu-fonce);
  color: #fff;
}

.offre h3 {
  font-size: 20px;
  font-weight: 600;
}

.offre p {
  margin-top: 10px;
  color: var(--encre-douce);
}

.offre .prix {
  margin-top: 14px;
  font-size: 36px;
  font-weight: 600;
  color: var(--bleu-fonce);
}

.prix small {
  font-size: 16px;
  font-weight: 400;
  color: var(--encre-douce);
}

.offre.vedette .prix {
  color: #fff;
}

.offre.vedette p,
.offre.vedette .prix small {
  color: var(--bleu-pale);
}

.note {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--encre-douce);
}

/* Appel final */
.appel {
  padding: 0 24px 96px;
}

.appel-boite {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 64px 48px;
  border-radius: 32px;
  background: var(--terre);
  color: #fff;
}

.appel h2 {
  margin-top: 0;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 38px);
}

.appel p {
  margin-top: 12px;
  max-width: 640px;
  font-size: 18px;
}

/* Pied de page */
.pied {
  background: var(--nuit);
  color: #e0d9cb;
}

.pied-haut {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-block: 56px 32px;
}

.pied .logo {
  font-size: 20px;
}

.pied .logo-arche {
  width: 28px;
  height: 34px;
  border-radius: 14px 14px 4px 4px;
  padding-bottom: 5px;
}

.pied .logo-arche::after {
  width: 12px;
  height: 16px;
}

.pied-slogan {
  margin-top: 14px;
  max-width: 320px;
  font-size: 15px;
  color: #a9afb9;
}

.pied-colonnes {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  font-size: 15px;
}

.pied-colonne {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pied-colonne strong {
  color: #fff;
  font-weight: 600;
}

.pied-colonne a {
  color: #e0d9cb;
  text-decoration: none;
}

.pied-colonne a:hover {
  text-decoration: underline;
}

.pied-bas {
  padding-block: 18px 28px;
  border-top: 1px solid #263142;
  font-size: 13px;
  color: #a9afb9;
}

/* ─── Petits écrans ─── */
@media (max-width: 860px) {
  .nav-liens {
    display: none;
  }

  .hero {
    gap: 40px;
    padding-block: 40px 64px;
  }

  .mobile-boite {
    padding: 36px 20px;
    gap: 36px;
  }

  .appel-boite {
    padding: 40px 24px;
  }

  .videos-grille {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .lien-connexion {
    font-size: 14px;
  }

  .flottant {
    inset-inline-start: 8px;
    bottom: 24px;
  }

  .hero-sous {
    font-size: 17px;
  }
}

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