/* =========================================================
   Amana – Landing Black Friday 2026
   Intégration fidèle aux maquettes PSD (WEB 1440 / Mobile 430)
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face { font-family: "Diodrum Arabic"; src: url("../fonts/DiodrumArabic-Regular.woff2") format("woff2"); font-weight: 400;  ascent-override: 155.1%; descent-override: 36%; line-gap-override: 0%; font-display: swap; }
@font-face { font-family: "Diodrum Arabic"; src: url("../fonts/DiodrumArabic-Medium.woff2") format("woff2"); font-weight: 500; ascent-override: 157.7%; descent-override: 36.3%; line-gap-override: 0%; font-display: swap; }
/* Métriques forcées (= valeurs Windows) : sans ça Android/iPhone/Mac utilisent d’autres métriques et le texte arabe est décalé verticalement */
/* Pas de fichier Bold disponible : Semibold sert pour 600 et 700 */
@font-face { font-family: "Diodrum Arabic"; src: url("../fonts/DiodrumArabic-Semibold.woff2") format("woff2"); font-weight: 600 700; ascent-override: 160.5%; descent-override: 36.6%; line-gap-override: 0%; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --orange: #fe5000;
  --orange-soft: #fbe9db;
  --navy: #323987;
  --link: #454b92;
  --ink: #242424;
  --text: #4a4a4a;
  --muted: #a7a7a7;
  --line: #d3d3d3;
  --box: #909090;
  --bg: #f5f6fb;
  --panel: #f3f4f9;
  --hero-bg: #101010;
  --shadow: 0 0 40px rgba(212, 215, 225, .7);
  --radius: 15px;
  --radius-sm: 9px;
  --container: 960px;
  --font: "Poppins", system-ui, sans-serif;
}
:lang(ar) { --font: "Diodrum Arabic", "Segoe UI", Tahoma, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--container) + 40px); margin-inline: auto; padding-inline: 20px; }
:focus-visible { outline: 3px solid rgba(254, 80, 0, .45); outline-offset: 2px; }

/* ---------- Header ---------- */
.header { position: relative; z-index: 3; background: #fff; border-bottom: 6px solid var(--orange); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.header__logo img { width: 125px; height: auto; }
.lang { display: flex; align-items: center; gap: 4px; direction: ltr; }
.lang__btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 40px; padding: 0 10px; border: 2px solid var(--navy); border-radius: 20px; background: #fff; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1; transition: background .2s, color .2s; }
.lang__btn[lang="fr"] { font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 600; }
/* Diodrum : l'encre est plus basse que la boîte de ligne → on la remonte pour centrer visuellement */
.lang__btn[lang="ar"] { font-family: "Diodrum Arabic", sans-serif; font-size: 15px; font-weight: 600; padding-bottom: 12px; }
.lang__btn.is-active { background: var(--navy); color: #fff; }
.lang__btn:not(.is-active):hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
/* direction ltr : en RTL, "left:50%" partait du bord droit et décalait le visuel sur les écrans > 1440 px */
.hero { position: relative; z-index: 1; margin-top: -5px; background: var(--hero-bg); overflow: hidden; direction: ltr; }
:lang(ar) .hero h1 { direction: rtl; }
.hero__frame { position: relative; width: 1440px; left: 50%; transform: translateX(-50%); }
.hero__frame img { width: 100%; height: auto; }
/* zone cliquable posée sur le numéro imprimé dans le visuel */
.hero__tel { position: absolute; left: var(--tel-x); top: var(--tel-y); width: var(--tel-w); height: var(--tel-h); border-radius: 8px; --tel-x: 38%; --tel-y: 69%; --tel-w: 9.5%; --tel-h: 16%; }

/* ---------- Cards layout ---------- */
.cards { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 19px; align-items: start; margin-top: -39px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 27px 23px 38px; }
.card__title { color: var(--navy); font-size: 27.5px; font-weight: 700; line-height: 1.24; margin-bottom: 16px; }
:lang(fr) .card { padding-top: 32px; }
:lang(fr) .card__title { margin-bottom: 9px; }
:lang(fr) .card--form .card__text { margin-bottom: 33px; }
:lang(fr) .offer__label { margin-bottom: 18px; }
/* Diodrum Bold absent : léger renfort du Semibold pour approcher le Bold de la maquette */
:lang(ar) .card__title, :lang(ar) .field__label, :lang(ar) .offer__label, :lang(ar) .offer__list li, :lang(ar) .btn, :lang(ar) .thanks__title { -webkit-text-stroke: .35px currentColor; }
.card__text { font-size: 16px; line-height: 25px; }
:lang(fr) .card__text { line-height: 22px; }
:lang(fr) .card--offer .card__text { margin-bottom: 41px; }

/* Offer card */
.card--offer { padding-bottom: 54px; }
.card--offer .card__text { margin-bottom: 40px; }
.offer__label { color: var(--orange); font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 23px; }
.offer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.offer__list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.3; }
.tick { position: relative; flex: none; width: 29px; height: 29px; border-radius: 50%; background: var(--orange-soft); }
.tick::after { content: ""; position: absolute; left: 7px; top: 1px; width: 19px; height: 18px; background: url("../img/check.png") center / contain no-repeat; }
.offer__list li span { padding-top: 3px; }

/* Form card */
.card--form .card__text { margin-bottom: 21px; }
.field { margin-bottom: 16px; }
.field__label { display: block; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 5px; }
.field__control { display: block; width: 100%; height: 50px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field__control::placeholder { color: var(--muted); opacity: 1; }
.field__control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(50, 57, 135, .12); }
.field__control[type="tel"] { direction: ltr; text-align: left; letter-spacing: .03em; }
select.field__control { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23242424' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px center; }
:dir(rtl) select.field__control, [dir="rtl"] select.field__control { background-position: left 20px center; }
select.field__control:invalid { color: var(--muted); }
select.field__control option { color: var(--ink); }
.field.is-invalid .field__control { border-color: #d92d20; }
.field__error { display: none; color: #d92d20; font-size: 13px; line-height: 1.4; margin-top: 6px; }
.field.is-invalid .field__error { display: block; }

.form__required { font-size: 14px; line-height: 1.3; margin: 11px 0 12px; }
:lang(fr) .form__required { font-size: 12px; }
.check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 6px; font-size: 16px; line-height: 25px; cursor: pointer; }
:lang(fr) .check { font-size: 14px; line-height: 17px; margin-bottom: 15px; }
:lang(fr) .check input { margin-top: 2px; }
.check input { flex: none; appearance: none; -webkit-appearance: none; width: 14px; height: 14px; margin: 6px 2px 0; border: 1px solid var(--box); border-radius: 2px; background: #fff; cursor: pointer; display: grid; place-content: center; transition: background .15s, border-color .15s; }
.check input::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--orange); border-color: var(--orange); }
.check input:checked::after { opacity: 1; }
.check.is-invalid input { border-color: #d92d20; }
.check-error { display: none; color: #d92d20; font-size: 13px; margin: -6px 0 10px; }
.check-error.is-visible { display: block; }

.btn { display: flex; align-items: center; justify-content: center; width: 94%; height: 55px; margin-top: 34px; border: 0; border-radius: var(--radius-sm); background: var(--orange); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .2s, transform .1s; }
:lang(fr) .btn { font-size: 18px; }
.btn:hover { background: #e54800; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.form__note { margin-top: 1px; font-size: 14px; line-height: 1.5; }
:lang(fr) .form__note { margin-top: 14px; text-align: center; font-size: 12px; line-height: 15px; }
.form__alert { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fdecea; color: #b42318; font-size: 14px; }
.form__alert.is-visible { display: block; }

/* ---------- Footer ---------- */
.footer { padding: 42px 20px 68px; text-align: center; font-size: 12px; line-height: 1.6; }
.footer a { color: var(--link); }
.br-m { display: none; }

/* ---------- Thank-you page ---------- */
.thanks { margin-top: 21px; }
.thanks__card { display: grid; grid-template-columns: 1fr 470px; min-height: 579px; background: #fff; border-radius: var(--radius); box-shadow: 0 0 40px rgba(179, 183, 192, .86); overflow: hidden; }
.thanks__content { display: flex; flex-direction: column; align-items: flex-start; padding: 84px 32px 30px; }
.thanks__visual img { width: 100%; height: 100%; object-fit: cover; }
.bigtick { position: relative; width: 108px; height: 108px; border-radius: 50%; background: var(--orange-soft); margin-bottom: 46px; }
.bigtick::after { content: ""; position: absolute; left: 25px; top: 0; width: 76px; height: 70px; background: url("../img/check.png") center / contain no-repeat; }
.thanks__title { color: var(--navy); font-size: 28px; font-weight: 700; line-height: 34px; margin-bottom: 28px; }
:lang(fr) .thanks__title { margin-bottom: 19px; }
:lang(fr) .bigtick { margin-bottom: 55px; }
.footer.footer--thanks { padding-top: 36px; padding-bottom: 45px; }
:lang(ar) .footer.footer--thanks { padding-top: 31px; }
.thanks__msg { align-self: stretch; display: flex; align-items: center; min-height: 113px; padding: 16px 24px; background: var(--panel); border-inline-start: 9px solid var(--orange); font-size: 17px; line-height: 27px; }
:lang(fr) .thanks__msg { font-size: 16px; line-height: 1.6; }
.social { display: flex; gap: 10px; margin-top: auto; padding-top: 40px; direction: ltr; }
.social a { display: block; width: 38px; height: 38px; border-radius: 50%; transition: transform .2s; }
.social a:hover { transform: translateY(-2px); }
.social img { width: 100%; height: 100%; }
.thanks__hero { display: none; }

/* Écarts propres à la maquette AR desktop */
@media (min-width: 640px) {
  :lang(ar) .field__label { margin-bottom: 9px; }
  :lang(ar) .field { margin-bottom: 12px; }
  :lang(ar) .form__required { margin-top: 7px; }
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablette : visuel desktop mis à l'échelle, cartes empilées */
@media (max-width: 999px) {
  .hero__frame { width: 100%; left: 0; transform: none; }
  .cards { grid-template-columns: 1fr; max-width: 620px; margin-top: -24px; }
  .card--form { order: -1; }
}

/* Thank-you : passage en une colonne */
@media (max-width: 767px) {
  .thanks__hero { display: block; background: var(--hero-bg); }
  .thanks__hero img { width: 100%; }
  .thanks { margin-top: -23px; position: relative; z-index: 2; padding-inline: 15px; }
  .thanks__card { grid-template-columns: 1fr; min-height: 0; }
  .thanks__visual { display: none; }
  .thanks__content { padding: 54px 30px 31px 20px; }
  [dir="rtl"] .thanks__content { padding: 54px 20px 25px 30px; }
  .bigtick, :lang(fr) .bigtick { margin-bottom: 36px; }
  :lang(ar) .bigtick { margin-bottom: 28px; }
  .thanks__title, :lang(fr) .thanks__title { margin-bottom: 18px; }
  :lang(ar) .thanks__title { margin-bottom: 27px; }
  .footer.footer--thanks { padding-top: 21px; }
  :lang(ar) .footer.footer--thanks { padding-top: 19px; }
  .thanks__msg { min-height: 115px; padding: 16px 24px; }
  .social { padding-top: 44px; }
  :lang(ar) .social { padding-top: 50px; }
}

/* Mobile : maquette 430px */
@media (max-width: 639px) {
  .container { padding-inline: 15px; }
  .header { border-bottom-width: 6px; }
  .header__inner { height: 84px; flex-direction: row-reverse; }
  [dir="rtl"] .header__inner { flex-direction: row; }
  .header__logo img { width: 116px; }
  .lang__btn { width: 78px; height: 33px; padding: 0 8px; border-width: 1.5px; font-size: 13px; }
  .lang__btn[lang="fr"] { font-size: 12.5px; padding-bottom: 3px; }
  .lang__btn[lang="ar"] { font-size: 13.5px; padding-bottom: 8px; }
  .lang__btn.is-active { display: none; }

  .hero__frame { width: 100%; }
  .hero__tel { --tel-x: 74%; --tel-y: 87%; --tel-w: 23%; --tel-h: 10%; }

  .cards { margin-top: -21px; gap: 19px; }
  .card { padding: 30px 20px 34px; }
  :lang(ar) .card { padding-top: 24px; }
  :lang(fr) .card { padding-top: 30px; }
  :lang(fr) .card--offer { padding-top: 34px; }
  :lang(ar) .card--offer { padding-top: 28px; padding-bottom: 47px; }
  .card__title { font-size: 23.5px; line-height: 28px; margin-bottom: 18px; letter-spacing: -.005em; }
  :lang(fr) .card__title { margin-bottom: 12px; }
  :lang(fr) .card--form .card__title { text-transform: uppercase; }
  :lang(ar) .card__title { line-height: 1.2; }
  /* Titre du formulaire sur une seule ligne comme la maquette 430 px : la taille suit la largeur sur les petits écrans */
  :lang(ar) .card--form .card__title { white-space: nowrap; font-size: min(23.5px, 5.45vw); }
  .card--form .card__text { margin-bottom: 24px; }
  :lang(fr) .card--form .card__text { margin-bottom: 30px; }
  :lang(fr) .card--offer .card__title { margin-bottom: 18px; }
  :lang(ar) .card--offer .card__title { margin-bottom: 23px; }
  .card__text, :lang(fr) .card__text { line-height: 24px; }
  .field { margin-bottom: 14px; }
  .field__label { margin-bottom: 6px; }
  .field__control { height: 44px; }
  .form__required { margin-top: 20px; }
  :lang(fr) .form__required { margin: -4px 0 10px; }
  :lang(fr) .check { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
  .check input, :lang(fr) .check input { width: 13px; height: 13px; margin: 6px 3px 0 2px; }
  .check { line-height: 24px; }
  .btn { height: 47px; font-size: 15px; margin-top: 38px; }
  :lang(fr) .btn { margin-top: 32px; }
  :lang(fr) .btn { font-size: 15px; }
  .form__note { font-size: 12px; }
  :lang(fr) .form__note { margin-top: 12px; line-height: 14px; }

  .card--offer { padding-bottom: 36px; }
  .card--offer .card__text, :lang(fr) .card--offer .card__text { margin-bottom: 31px; }
  :lang(ar) .card--offer .card__text { margin-bottom: 33px; }
  .offer__label, :lang(fr) .offer__label { font-size: 18px; margin-bottom: 14px; }
  :lang(ar) .offer__label { margin-bottom: 17px; }
  .offer__list { gap: 13px; }
  .offer__list li { font-size: 16px; }
  .tick { width: 25px; height: 25px; }
  .tick::after { left: 6px; top: 1px; width: 16px; height: 15px; }
  .offer__list li span { padding-top: 2px; }

  .footer { padding: 22px 40px 26px; line-height: 20px; }
  .br-m { display: inline; }
  .br-d { display: none; }
  .footer.footer--thanks { padding-bottom: 26px; }
}

/* ---------- Page politique de confidentialité ---------- */
.legal-page { background: #fff; }
.legal__nav { display: flex; align-items: center; gap: 20px; }
.legal__back { display: inline-flex; align-items: center; height: 40px; color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; }
:lang(ar) .legal__back { padding-bottom: 9px; }
.legal__back:hover { text-decoration: underline; }
.legal { max-width: 800px; margin: 0 auto; padding: 48px 20px 24px; color: var(--text); font-size: 16px; line-height: 1.7; }
.legal h1 { color: var(--navy); font-size: 30px; line-height: 1.25; font-weight: 700; }
.legal__subtitle { margin: 6px 0 24px; color: var(--orange); font-size: 18px; font-weight: 600; }
.legal h2 { margin: 36px 0 12px; color: var(--navy); font-size: 20px; line-height: 1.35; font-weight: 700; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--orange); }
.legal__facts { list-style: none; padding: 18px 22px !important; background: var(--bg); border-inline-start: 4px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal a { color: var(--link); }
.legal__footer { border-top: 1px solid #eceef5; margin-top: 32px; padding: 24px 20px 32px; }
@media (max-width: 639px) {
  .legal { padding-top: 32px; font-size: 15px; }
  .legal__nav { gap: 12px; }
  .legal__back { font-size: 13px; }
  :lang(ar) .legal h1 { font-size: 24px; }
  .legal h1 { font-size: 24px; }
  .legal h2 { font-size: 18px; margin-top: 28px; }
}
