/* reset */
*, *::before, *::after { margin:0; padding:0; border:0; box-sizing:border-box; }
html { font-size:62.5%; width:100%; height:100%; }
body { line-height:1; }
ol, ul { list-style:none; }
img { max-width:100%; display:block; }
a { text-decoration:none; }

/* ── BODY ── */
body {
    font-family: Arial, sans-serif;
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    background-color: #313131;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── WRAPPER ── */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* photo du service (règle 5) portée par le conteneur de page plutôt que le body :
       même rendu, mais reconnue comme visuel au-dessus du CTA.
       Voile sombre pour la lisibilite du texte blanc sur le fond clair de la photo. */
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 45%, #313131 100%), url(../images/fond-trifi.jpg);
    background-size: 100% 640px, 110%;
    background-position: center top;
    background-repeat: no-repeat;
}

/* ── HEADER ── */
header {
    text-align: center;
    padding: 14px 0 6px;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    font-family: Arial Black, Arial, sans-serif;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.genre {
    font-size: 1.3rem;
    color: #ddd;
    margin-top: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.label_cobrand {
    font-size: 1rem;
    color: #bbb;
    margin-top: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ── CONTENT (sur la photo) ── */
.content {
    flex: 0;
    padding: 24px 6% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    font-size: 2.2rem;
    color: #fff;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* ── STEPS ── */
.steps {
    width: 92%;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.steps li {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 400;
    line-height: 1.3;
    display: flex;
    gap: 8px;
    align-items: baseline;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
    white-space: nowrap;
}

.step-num {
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    min-width: 20px;
}

.step-link {
    text-decoration: underline;
    color: #fff;
}

/* ── FLÈCHE ── */
.arrow-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    filter: invert(45%) sepia(99%) saturate(700%) hue-rotate(1deg) brightness(110%);
}

/* ── BLOC CTA — fond noir opaque, pas de dégradé diffus ── */
.cta-zone {
    width: 100%;
    background: linear-gradient(to bottom, transparent 0%, #313131 18%);
    padding: 0px 6% 20px;
    margin-top: 0;
    text-align: center;
}

/* ── FORMULAIRE TRIFI (saisie MSISDN) ── */
.msisdn-form {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#phoneNumber {
    display: block;
    width: 100%;
    padding: 14px 12px;
    font-family: Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    color: #111;
    background: #fff;
    border: 3px solid #ff6000;
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#phoneNumber::placeholder { color: #aaa; font-weight: 400; }
#phoneNumber:focus { box-shadow: 0 0 0 3px rgba(255,96,0,0.35); }

#error {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 6px 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    background: #c40000;
    border-radius: 6px;
}

/* ── BOUTON ── */
.btn-cta {
    display: block;
    width: 100%;
    margin-top: 12px;   /* regle 8 : CTA dans le couloir 352-556 (champ MSISDN au-dessus) */
    padding: 22px 12px;
    background: #ff6000;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    border: 0;
    border-radius: 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    margin-bottom: 10px;   /* regle 7 : 10px exactement entre le bouton et le bord du bloc prix */
    -webkit-appearance: none;
    appearance: none;
    animation: btnBlink 1.2s ease-in-out infinite;
}

/* CTA inactif tant que le numero n'est pas valide */
.btn-cta:disabled {
    background: #8a8a8a;
    color: #fff;
    cursor: not-allowed;
    animation: none;
}

@keyframes btnBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ── TARIF ── */
.tarif {
    font-family: Arial, Calibri, Helvetica, Verdana, sans-serif;   /* regle 2 */
    font-size: 14px;
    line-height: 1.3;   /* texte à 11px du bouton, dans la tolérance (≤ 15px) */
    color: #eee;
    background-color: #313131;   /* regle 3 : fond opaque */
    width: 100%;
    max-width: 400px;
    margin: 0 auto 10px;   /* regle 7 : 10px mini en dessous */
    white-space: normal;
    overflow: visible;
}

/* ── SPACER — photo visible entre CTA et footer ── */
.spacer {
    flex: 1;
    min-height: 80px;
    background: linear-gradient(to bottom, #313131 0%, #313131 100%);
}

/* gradient image → fond entre content et cta-zone */


/* ── FOOTER ── */
footer {
    background: #000;
    padding: 18px 5% 16px;
    text-align: center;
}

.int-plus {
    max-width: 120px;
    margin: 0 auto 10px;
}

footer .synop {
    max-width: 200px;
    width: 60%;
    background: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    margin: 0 auto 12px;
}

.menu-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
}

.menu-footer li { font-size: 1rem; color: #777; }
.menu-footer li a { color: #777; text-decoration: none; }
.menu-footer li.separator:last-child { display: none; }

@media screen and (min-width: 430px) {
    body { background-size: 430px 640px, 430px; }
}
