/**
 * Homepage hero — pastel.
 *
 * Every rule is scoped under .pr-hero, and the colour tokens are declared on
 * .pr-hero rather than :root on purpose: --pr-navy, --pr-red and --pr-blue
 * already exist site-wide with other values and are used 126 times. Declaring
 * them here keeps this section on its own palette without repainting the
 * header, the account area or the shop.
 */

.pr-hero{
  --pr-hero-navy:#16215C;
  --pr-hero-red:#D6232A;
  --pr-hero-blue:#2451D6;
  --pr-hero-blue-text:#1D43B8;
  --pr-hero-sky:#BFE4EC;
  --pr-hero-blush:#F6B3C0;
  --pr-hero-lilac:#9DB8F2;
  --pr-hero-text:#2E3764;
  --pr-hero-pink-soft:#F08FA2;

  --pr-hero-chip-blue:#E3EBFF;
  --pr-hero-chip-pink:#FCE3E8;
  --pr-hero-chip-yellow:#FFF1CC;
  --pr-hero-chip-aqua:#DDF1F7;

  --pr-hero-shadow:0 30px 60px -30px rgba(22,33,92,.45);

  position:relative;
  width:100%;
  min-height:640px;
  background:var(--pr-hero-sky);
  overflow:hidden;
  font-family:'IBM Plex Sans Arabic','Noto Sans Arabic',Tahoma,sans-serif;
  color:var(--pr-hero-text);
}

/* =========================================================================
 * Formes de fond
 * ====================================================================== */
.pr-hero__circle{
  position:absolute;border-radius:50%;pointer-events:none;
}
.pr-hero__circle--red{
  width:560px;height:560px;top:-170px;left:-150px;
  background:var(--pr-hero-red);
}
.pr-hero__circle--pink{
  width:440px;height:440px;bottom:60px;right:-90px;
  background:var(--pr-hero-blush);
}
.pr-hero__tile{
  position:absolute;width:90px;height:70px;top:40px;left:620px;
  border-radius:16px;background:var(--pr-hero-lilac);
  transform:rotate(14deg);opacity:.8;pointer-events:none;
}

/* =========================================================================
 * Photos en blob
 * ====================================================================== */
.pr-hero__blob{
  position:absolute;margin:0;overflow:hidden;
  border:8px solid #fff;
  box-shadow:var(--pr-hero-shadow);
  background:#fff;
}
.pr-hero__blob img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.pr-hero__blob--baby{
  width:493px;height:529px;bottom:113px;left:72px;
  border-radius:58% 42% 50% 50% / 52% 48% 52% 48%;
}
.pr-hero__blob--rack{
  width:300px;height:360px;bottom:150px;right:90px;
  border-radius:46% 54% 48% 52% / 55% 45% 55% 45%;
}

/* =========================================================================
 * Decorations flottantes
 * ====================================================================== */
@keyframes pr-bob{
  0%,100%{transform:translateY(0) rotate(var(--r,0deg));}
  50%    {transform:translateY(-10px) rotate(var(--r,0deg));}
}
.pr-hero__deco{
  position:absolute;display:block;line-height:0;pointer-events:none;
  transform:rotate(var(--r,0deg));
}
.pr-hero__deco svg{width:100%;height:auto;display:block;}
.pr-hero__deco--heart-red{
  width:26px;top:34px;right:250px;
  animation:pr-bob 4s ease-in-out infinite;
}
.pr-hero__deco--heart-red svg{fill:var(--pr-hero-red);}
.pr-hero__deco--star-red{
  width:30px;top:18px;right:160px;
  animation:pr-bob 5s ease-in-out infinite;
}
.pr-hero__deco--star-red svg{fill:var(--pr-hero-red);}
.pr-hero__deco--heart-pink{
  width:22px;top:96px;right:196px;
  animation:pr-bob 5.4s ease-in-out infinite;
}
.pr-hero__deco--heart-pink svg{fill:var(--pr-hero-pink-soft);}
.pr-hero__deco--heart-white{
  width:34px;top:150px;left:596px;
  animation:pr-bob 5s ease-in-out infinite;
}
.pr-hero__deco--heart-white svg{fill:#fff;}
.pr-hero__deco--star-white{
  width:24px;bottom:210px;left:560px;
  animation:pr-bob 4s ease-in-out infinite;
}
.pr-hero__deco--star-white svg{fill:#fff;}

/* =========================================================================
 * Colonne centrale
 * ====================================================================== */
.pr-hero__copy{
  position:absolute;top:56px;left:calc(50% + 88px);transform:translateX(-50%);
  width:480px;max-width:calc(100% - 32px);
  display:flex;flex-direction:column;align-items:center;gap:20px;
  text-align:center;z-index:3;
}

.pr-hero__pill{
  display:inline-flex;align-items:center;gap:8px;
  margin:0;min-height:44px;padding:0 20px;
  background:#fff;border-radius:999px;
  box-shadow:0 6px 18px -10px rgba(22,33,92,.35);
  font-size:15px;font-weight:600;color:var(--pr-hero-navy);
}
.pr-hero__pill-ic{width:20px;height:20px;line-height:0;flex:none;}
.pr-hero__pill-ic svg{width:100%;height:100%;fill:var(--pr-hero-red);display:block;}

.pr-hero__title{
  margin:0;
  font-family:'Baloo Bhaijaan 2','IBM Plex Sans Arabic',Tahoma,sans-serif;
  font-weight:800;font-size:72px;line-height:1.12;
  color:var(--pr-hero-navy);
}
.pr-hero__title-line{display:block;white-space:nowrap;}
.pr-hero__title-line--accent{color:var(--pr-hero-red);}

.pr-hero__lede{
  margin:0;max-width:44ch;
  font-size:18px;line-height:1.7;color:var(--pr-hero-text);
}

.pr-hero__actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:center;}
.pr-hero__btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:56px;padding:0 30px;border-radius:999px;
  font-family:inherit;font-size:17px;font-weight:700;
  color:#fff;text-decoration:none;
  transition:transform .2s ease,background-color .2s ease;
}
.pr-hero__btn:hover{transform:translateY(-2px);color:#fff;}
.pr-hero__btn:focus-visible{outline:3px solid var(--pr-hero-navy);outline-offset:3px;}
.pr-hero__btn--blue{
  background:var(--pr-hero-blue);
  box-shadow:0 14px 28px -14px rgba(36,81,214,.85);
}
.pr-hero__btn--blue:hover{background:var(--pr-hero-blue-text);}
.pr-hero__btn--red{
  background:var(--pr-hero-red);
  box-shadow:0 14px 28px -14px rgba(214,35,42,.8);
}
.pr-hero__btn--red:hover{background:#B31C22;}
.pr-hero__btn-arrow{width:18px;height:18px;flex:none;}

/* ---- underline under « بطفولتهم » -------------------------------------- */
.pr-hero__mark{position:relative;display:inline-block;}
.pr-hero__underline{
  position:absolute;left:-2%;bottom:-.02em;width:104%;height:.26em;
  overflow:visible;pointer-events:none;
}
.pr-hero__underline path{
  fill:none;stroke:rgba(255,255,255,.8);stroke-width:7px;
  stroke-linecap:round;stroke-linejoin:round;
}

/* =========================================================================
 * Ticket « الدفع عند الاستلام »
 * ====================================================================== */
@keyframes pr-cod-in{
  from{opacity:0;transform:translateY(10px) rotate(0deg);}
  to  {opacity:1;transform:translateY(0) rotate(var(--pr-cod-rot,-2deg));}
}
.pr-hero__cod{
  --pr-cod-rot:-2deg;
  position:relative;
  display:flex;align-items:center;gap:14px;
  margin-block-start:0;                /* the column's 20px gap sits above it */
  padding:14px 22px 14px 14px;
  background:#fff;border:2px dashed var(--pr-hero-red);border-radius:24px;
  box-shadow:0 16px 30px -18px rgba(22,33,92,.45);
  text-align:start;
  transform:rotate(var(--pr-cod-rot));
  transition:transform .25s ease;
  /* backwards only: once in, the resting transform above takes over, so
     the hover state below can still change it */
  animation:pr-cod-in .5s ease-out .3s backwards;
}
.pr-hero__cod:hover{transform:rotate(0deg) scale(1.02);}

/* the two notches: discs of the hero's own colour, biting the border */
.pr-hero__cod::before,
.pr-hero__cod::after{
  content:"";position:absolute;top:50%;width:18px;height:18px;border-radius:50%;
  background:var(--pr-hero-sky);transform:translateY(-50%);
}
.pr-hero__cod::before{left:-11px;}
.pr-hero__cod::after{right:-11px;}

.pr-hero__cod-ic{
  width:56px;height:56px;border-radius:50%;flex:none;
  display:grid;place-items:center;
  background:#F4B63A;color:var(--pr-hero-navy);
}
.pr-hero__cod-ic svg{width:28px;height:28px;}

.pr-hero__cod-text{display:grid;gap:2px;min-width:0;}
.pr-hero__cod-title{
  font-family:'Baloo Bhaijaan 2','IBM Plex Sans Arabic',Tahoma,sans-serif;
  font-weight:800;font-size:30px;line-height:1.15;color:var(--pr-hero-navy);
  white-space:nowrap;
}
.pr-hero__cod-title span{color:var(--pr-hero-red);}
.pr-hero__cod-sub{font-size:14px;line-height:1.5;color:#4A5070;}

/* inked stamp at the far (left) end */
.pr-hero__cod-stamp{
  width:64px;height:64px;border-radius:50%;flex:none;margin-inline-start:auto;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  border:2px solid var(--pr-hero-red);color:var(--pr-hero-red);
  box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 4px rgba(214,35,42,.35);
  transform:rotate(12deg);
  font-weight:800;line-height:1.1;text-align:center;
}
.pr-hero__cod-stamp b{font-size:15px;direction:ltr;}
.pr-hero__cod-stamp span{font-size:13px;}

/* =========================================================================
 * <= 1200px — les positions fixes passent en pourcentage
 * ====================================================================== */
/* Les valeurs fixes du dessus supposent ~1600px de large. En dessous, l'ecart
   entre les deux blobs devient plus etroit que la colonne de texte et les deux
   se chevauchent : on retrecit les photos avant d'en arriver la. */
@media (max-width:1500px){
  .pr-hero__blob--baby{width:400px;height:429px;left:40px;bottom:120px;}
  .pr-hero__blob--rack{width:250px;height:300px;right:50px;bottom:150px;}
  .pr-hero__copy{left:calc(50% + 70px);width:440px;}
  .pr-hero__title{font-size:64px;}
}

@media (max-width:1200px){
  .pr-hero{min-height:600px;}
  .pr-hero__circle--red{width:44vw;height:44vw;top:-13vw;left:-12vw;}
  .pr-hero__circle--pink{width:34vw;height:34vw;bottom:8%;right:-7vw;}
  .pr-hero__tile{left:auto;right:18%;top:32px;}
  .pr-hero__blob--baby{width:clamp(300px,34vw,493px);height:clamp(322px,36.5vw,529px);left:3%;bottom:96px;}
  .pr-hero__blob--rack{width:clamp(190px,21vw,300px);height:clamp(228px,25vw,360px);right:4%;bottom:130px;}
  .pr-hero__title{font-size:60px;}
  .pr-hero__copy{width:clamp(320px,42vw,480px);top:48px;left:50%;}
  .pr-hero__deco--heart-white,.pr-hero__deco--star-white{left:auto;right:34%;}

  /* Between the photos there is only ~380px here: centred under the buttons
     the ticket would cover the baby photo. It drops below both photos
     instead; the hero grows by 70px and the photos move up by as much from
     the bottom, so they stay exactly where they were. */
  .pr-hero{min-height:670px;}
  .pr-hero__blob--baby{bottom:190px;}
  .pr-hero__blob--rack{bottom:224px;}

  /* the baby photo is wider than the rack: centring the text on the page put
     it over the photo. Centre it in the gap between the two instead
     (gap = 100% - 3% - 34vw - 4% - 21vw), and fit the title to that width. */
  .pr-hero__copy{left:calc(50% + 6.5vw);width:max(290px,calc(38vw - 16px));}
  .pr-hero__title{font-size:clamp(40px,5vw,60px);}
  /* pinned, not in the flow: how far down the text reaches changes with every
     width, the bottom of the photos does not (670 - 166 = 504px) */
  .pr-hero__cod{
    position:absolute;top:446px;left:-120px;right:-120px;margin-inline:auto;
    width:max-content;max-width:calc(100vw - 32px);
  }
  .pr-hero__cod-title{font-size:26px;}
  .pr-hero__cod-stamp{width:56px;height:56px;}
}

/* =========================================================================
 * <= 880px — empilement : photo, texte, bande
 * (up to 880px, not 768: between the two photos there is no room left for
 * the text column, and it slid over the baby photo)
 * ====================================================================== */
@media (max-width:880px){
  .pr-hero{
    min-height:0;overflow:hidden;
    display:flex;flex-direction:column;align-items:center;
    padding:28px 16px 40px;
  }
  .pr-hero__circle--red{width:300px;height:300px;top:-120px;left:-110px;}
  .pr-hero__circle--pink{width:240px;height:240px;bottom:150px;right:-90px;}
  .pr-hero__tile{display:none;}
  .pr-hero__blob--rack{display:none;}

  .pr-hero__blob--baby{
    position:static;width:290px;height:320px;
    border-width:6px;margin:0 0 22px;
  }

  .pr-hero__copy{
    position:static;transform:none;width:100%;max-width:420px;
    gap:16px;margin-block-end:28px;
  }
  .pr-hero__title{font-size:40px;line-height:1.2;}
  /* always two lines, cut in the same place */
  .pr-hero__title-line{white-space:nowrap;}
  .pr-hero__lede{font-size:16px;}
  .pr-hero__actions{width:100%;flex-direction:column;gap:10px;}
  .pr-hero__btn{width:100%;}

  /* the ticket adds height here: take some back above the photo and the pill */
  /* 56px at the bottom: the next section rises 32px over the hero */
  .pr-hero{padding-top:20px;padding-bottom:56px;}
  .pr-hero__blob--baby{margin-bottom:12px;}
  .pr-hero__copy{margin-block-end:0;gap:13px;}
  .pr-hero__cod{
    --pr-cod-rot:-1deg;
    position:relative;top:auto;left:auto;right:auto;margin-inline:0;
    width:100%;max-width:360px;margin-block-start:4px;
    gap:10px;padding:12px 16px 12px 12px;
  }
  .pr-hero__cod-ic{width:46px;height:46px;}
  .pr-hero__cod-ic svg{width:24px;height:24px;}
  .pr-hero__cod-title{font-size:22px;}
  .pr-hero__cod-sub{font-size:13px;}
  .pr-hero__cod-stamp{width:52px;height:52px;}
  .pr-hero__cod-stamp b{font-size:13px;}
  .pr-hero__cod-stamp span{font-size:12px;}

  /* on ne garde que quatre petits coeurs */
  .pr-hero__deco--heart-white,.pr-hero__deco--star-white{display:none;}
  .pr-hero__deco--heart-red{top:16px;right:18px;width:20px;}
  .pr-hero__deco--star-red{top:64px;right:52px;width:22px;}
  .pr-hero__deco--heart-pink{top:120px;right:20px;width:18px;}

}

/* stacked, but the next section still rises 64px here (32px only below 769) */
@media (min-width:769px) and (max-width:880px){
  .pr-hero{padding-bottom:90px;}
}

@media (max-width:420px){
  .pr-hero__blob--baby{width:250px;height:276px;}
  /* two lines even on a 320px phone */
  .pr-hero__title{font-size:min(38px,10.5vw);}
}

/* =========================================================================
 * Mouvement reduit
 * ====================================================================== */
@media (prefers-reduced-motion: reduce){
  .pr-hero__deco{animation:none !important;}
  .pr-hero__btn:hover{transform:none;}
  .pr-hero__cod{animation:none;transition:none;}
  .pr-hero__cod:hover{transform:rotate(var(--pr-cod-rot));}
}
