/* ==========================================================================
   Petro Bama — Site en construction
   Couleurs et typographie conformes à la charte graphique Petro Bama
   Rouge Pantone 485 C  -> #D1242A
   Orange Pantone 1595 C -> #F3753A
   Noir riche            -> #231F20
   ========================================================================== */

:root {
  --pb-red: #D1242A;
  --pb-red-dark: #A81C21;
  --pb-orange: #F3753A;
  --pb-orange-light: #FBAE84;
  --pb-black: #231F20;
  --pb-gray: #6E6E6E;
  --pb-gray-light: #f4f2f1;
  --pb-white: #ffffff;

  --pb-gradient: linear-gradient(160deg, var(--pb-red) 0%, var(--pb-orange) 100%);

  --font-heading: 'PT Sans Caption', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'PT Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --container-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--pb-black);
  background: var(--pb-white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Champ piège anti-robot : masqué visuellement mais présent dans le HTML,
   un utilisateur humain ne le remplit jamais, un bot naïf souvent si. */
.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Decorative background flame gradient, echoing the logo colors */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(243,117,58,0.16) 0%, rgba(243,117,58,0) 70%),
    radial-gradient(55% 45% at 10% 105%, rgba(209,36,42,0.14) 0%, rgba(209,36,42,0) 70%),
    var(--pb-white);
}

/* ---------- Top bar (flotte au-dessus du slider) ---------- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0;
}

.topbar__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.topbar__brand {
  background: var(--pb-white);
  border-radius: 0 0 14px 14px;
  padding: 12px;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
}

.topbar__logo {
  height: 96px;
  width: auto;
  display: block;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 26px;
  margin-right: 20px;
}

.topbar__nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--pb-white);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.topbar__nav-link:hover {
  color: var(--pb-orange-light);
  border-color: var(--pb-orange-light);
}

.topbar__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: var(--pb-black);
  line-height: 1.3;
}

.topbar__phone-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pb-gray);
}

.topbar__phone-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--pb-red);
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 64px;
}

.hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
}

.hero__logo {
  display: none;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  color: var(--pb-gray);
  margin: 0 0 8px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  color: var(--pb-black);
  margin: 0 0 20px;
  text-transform: uppercase;
}

.hero__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 2px;
  background: var(--pb-gradient);
}

.hero__text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--pb-gray);
  margin: 0 0 36px;
  max-width: 480px;
}

/* ---------- Signup form ---------- */
.signup {
  display: flex;
  width: 100%;
  max-width: 440px;
  gap: 10px;
}

.signup__input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 2px solid #e6e1e0;
  border-radius: 8px;
  color: var(--pb-black);
  background: var(--pb-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup__input::placeholder {
  color: #a9a3a1;
}

.signup__input:focus {
  outline: none;
  border-color: var(--pb-orange);
  box-shadow: 0 0 0 4px rgba(243, 117, 58, 0.15);
}

.signup__button {
  flex-shrink: 0;
  padding: 15px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--pb-white);
  background: var(--pb-gradient);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 20px -8px rgba(209, 36, 42, 0.55);
}

.signup__button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.signup__button:active {
  transform: translateY(0);
}

.signup__note {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--pb-gray);
}

.signup__note.is-success { color: #1f8a4c; font-weight: 700; }
.signup__note.is-error { color: var(--pb-red); font-weight: 700; }

/* ---------- Google Play badge ---------- */
.playbadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 10px 18px;
  border: 2px solid var(--pb-black);
  border-radius: 8px;
  text-decoration: none;
  color: var(--pb-black);
  background: var(--pb-white);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.playbadge:hover {
  border-color: var(--pb-orange);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(35, 31, 32, 0.35);
}

.playbadge__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.playbadge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.playbadge__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pb-gray);
}

.playbadge__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
}

/* ---------- Slider (bandeau plein écran) ---------- */
.slider {
  padding: 0;
  width: 100%;
}

.slider__viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--pb-black);
}

.slider__track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.slider__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 17, 0.42);
  pointer-events: none;
}

/* Trame de points façon halftone/pixelisé, semi-transparente sur toute la diapositive */
.slider__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1.6px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
}

.slider__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  pointer-events: none;
}

.slider__overlay-eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 8px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.slider__overlay-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pb-white);
  margin: 0 0 16px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.slider__overlay-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 480px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.slider__arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--pb-black);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.slider__arrow:hover {
  background: var(--pb-white);
  transform: translateY(-50%) scale(1.06);
}

.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.slider__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slider__dot.is-active {
  background: var(--pb-orange);
  transform: scale(1.2);
}

.slider__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pb-white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: slider-scroll-cue-bounce 1.8s ease-in-out infinite;
}

.slider__scroll-cue svg {
  width: 18px;
  height: 18px;
}

.slider__scroll-cue:hover {
  border-color: var(--pb-white);
}

@keyframes slider-scroll-cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 640px) {
  .slider__arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

/* ---------- Contact ---------- */
.contact {
  border-top: 1px solid #ece8e7;
  padding: 64px 0;
}

.contact__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact__eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  color: var(--pb-gray);
  margin: 0 0 8px;
}

.contact__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 36px);
  text-transform: uppercase;
  color: var(--pb-black);
  margin: 0 0 16px;
}

.contact__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--pb-gray);
  margin: 0 0 36px;
}

.contact__text a {
  color: var(--pb-red);
  text-decoration: none;
  font-weight: 700;
}

.contact__text a:hover {
  text-decoration: underline;
}

.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form__row {
  display: flex;
  gap: 18px;
}

.contact-form__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--pb-black);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 2px solid #e6e1e0;
  border-radius: 8px;
  color: var(--pb-black);
  background: var(--pb-white);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: #a9a3a1;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--pb-orange);
  box-shadow: 0 0 0 4px rgba(243, 117, 58, 0.15);
}

.contact-form__submit {
  align-self: center;
  padding: 15px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--pb-white);
  background: var(--pb-gradient);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 20px -8px rgba(209, 36, 42, 0.55);
}

.contact-form__submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.contact-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-form__note {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--pb-gray);
}

.contact-form__note.is-success { color: #1f8a4c; font-weight: 700; }
.contact-form__note.is-error { color: var(--pb-red); font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid #ece8e7;
  padding: 48px 0 28px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer__logo {
  height: 96px;
  width: auto;
  opacity: 0.9;
  margin-bottom: 8px;
}

.footer__newsletter-text {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--pb-gray);
  max-width: 420px;
}

.footer .signup {
  margin-bottom: 8px;
}

.footer .playbadge {
  margin: 8px 0 32px;
}

.footer__contacts {
  font-size: 14px;
  color: var(--pb-gray);
}

.footer__contacts a {
  color: var(--pb-gray);
  text-decoration: none;
}

.footer__contacts a:hover {
  color: var(--pb-red);
}

.footer__sep {
  margin: 0 8px;
  color: #d8d3d2;
}

.footer__copy {
  margin: 4px 0 0;
  font-size: 12px;
  color: #b6b0ae;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .topbar { padding: 0; }
  .topbar__brand { padding: 12px; border-radius: 0 0 10px 10px; }
  .topbar__logo { height: 68px; }
  .footer__logo { height: 68px; }
  .topbar__nav { gap: 14px; margin-top: 20px; margin-right: 12px; }
  .topbar__nav-link { font-size: 13px; }
  .topbar__phone-label { display: none; }
  .topbar__phone-number { font-size: 15px; }

  .signup {
    flex-direction: column;
  }

  .signup__button {
    width: 100%;
  }

  .contact-form__row {
    flex-direction: column;
  }

  .contact-form__submit {
    width: 100%;
  }

  .footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .footer__sep { display: none; }
}
