/* Page temporaire Auto-école François — V4 mobile corrigée */
html { overflow-x: hidden; scroll-behavior: smooth; }

body.construction-v4 {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff2de;
  background:
    radial-gradient(circle at 12% 14%, rgba(128, 38, 26, .25), transparent 22rem),
    radial-gradient(circle at 88% 10%, rgba(211, 180, 133, .14), transparent 26rem),
    radial-gradient(circle at 50% 110%, rgba(211, 180, 133, .08), transparent 34rem),
    linear-gradient(180deg, #050404, #0b0908 55%, #050404);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: v4-bg 16s ease-in-out infinite alternate;
}

body.construction-v4 * { box-sizing: border-box; }

.v4-noise,
.v4-glow,
.v4-road {
  position: fixed;
  pointer-events: none;
}

.v4-noise {
  inset: 0;
  opacity: .07;
  background-image: radial-gradient(rgba(255,255,255,.55) .6px, transparent .6px);
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
}

.v4-glow {
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: .4;
}

.v4-glow-a {
  left: -140px;
  top: 26%;
  background: rgba(129, 39, 27, .45);
  animation: v4-glow-a 11s ease-in-out infinite alternate;
}

.v4-glow-b {
  right: -130px;
  top: 8%;
  background: rgba(211, 180, 133, .16);
  animation: v4-glow-b 12s ease-in-out infinite alternate;
}

.v4-road {
  left: 50%;
  bottom: -28vh;
  width: min(76vw, 760px);
  height: 58vh;
  transform: translateX(-50%) perspective(760px) rotateX(64deg);
  opacity: .12;
  background:
    linear-gradient(90deg, transparent 48%, rgba(211,180,133,.18) 49%, rgba(211,180,133,.18) 51%, transparent 52%),
    repeating-linear-gradient(180deg, transparent 0 38px, rgba(211,180,133,.22) 39px 58px, transparent 59px 92px);
  mask-image: linear-gradient(0deg, rgba(0,0,0,.9), transparent 82%);
  animation: v4-road 2s linear infinite;
}

.v4-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 5, 5, .78);
  border-bottom: 1px solid rgba(211,180,133,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.v4-nav {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.v4-brand {
  min-width: 0;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff2de;
  text-decoration: none;
}

.v4-brand img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}

.v4-brand span {
  min-width: 0;
}

.v4-brand strong,
.v4-brand em {
  display: block;
}

.v4-brand strong {
  font-size: .98rem;
  font-weight: 950;
  white-space: nowrap;
}

.v4-brand em {
  margin-top: 2px;
  color: #cdb487;
  font-size: .82rem;
  font-style: normal;
}

.v4-header-call {
  flex: 0 0 auto;
  padding: 11px 18px;
  border-radius: 999px;
  color: #110c08;
  background: linear-gradient(135deg, #e6c082, #bc8f53);
  font-weight: 950;
  text-decoration: none;
}

.v4-main {
  position: relative;
  z-index: 2;
}

.v4-hero {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: clamp(22px, 4.6vw, 66px) 18px clamp(30px, 5vw, 74px);
}

.v4-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .8fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(24px, 4.5vw, 56px);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(18, 14, 12, .96), rgba(8, 7, 6, .92)),
    radial-gradient(circle at 80% 14%, rgba(211,180,133,.1), transparent 22rem);
  border: 1px solid rgba(211,180,133,.2);
  box-shadow: 0 32px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
  animation: v4-panel-in .8s cubic-bezier(.2,.8,.2,1) both;
}

.v4-logo-zone {
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  position: relative;
  order: 2;
}

.v4-logo-orbit {
  position: absolute;
  top: 6%;
  width: min(90%, 470px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 11deg, rgba(211,180,133,.2) 12deg 13deg, transparent 14deg 24deg),
    radial-gradient(circle, rgba(211,180,133,.10), transparent 65%);
  opacity: .5;
  animation: v4-ring 22s linear infinite;
}

.v4-logo-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,7,6,.92) 0 52%, rgba(8,7,6,.52) 66%, transparent 78%);
  filter: drop-shadow(0 24px 46px rgba(0,0,0,.5));
  animation: v4-float 4.5s ease-in-out infinite;
}

.v4-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  -webkit-mask-image: radial-gradient(circle, #000 0 60%, rgba(0,0,0,.8) 69%, transparent 80%);
  mask-image: radial-gradient(circle, #000 0 60%, rgba(0,0,0,.8) 69%, transparent 80%);
}

.v4-logo-zone p {
  position: relative;
  z-index: 2;
  margin: 14px 0 0;
  color: #d9b879;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.v4-copy {
  min-width: 0;
  order: 1;
}

.v4-kicker {
  margin: 0 0 15px;
  color: #e0bb7b;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.v4-copy h1 {
  margin: 0 0 22px;
  max-width: 720px;
  color: #fff3df;
  font-size: clamp(3rem, 5.6vw, 5rem);
  line-height: .9;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.v4-copy h1 span {
  display: block;
}

.v4-lead {
  max-width: 620px;
  margin: 0;
  color: #dcc8aa;
  font-size: clamp(1.08rem, 1.55vw, 1.26rem);
  line-height: 1.65;
}

.v4-call-card {
  position: relative;
  width: min(100%, 540px);
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(125, 38, 26, .46), rgba(211, 180, 133, .13)),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  border: 1px solid rgba(211,180,133,.26);
  animation: v4-call-glow 3.2s ease-in-out infinite;
}

.v4-call-card::after {
  content: "";
  position: absolute;
  top: -55%;
  bottom: -55%;
  left: -45%;
  width: 34%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  animation: v4-shine 4.4s ease-in-out infinite;
}

.v4-call-card span {
  display: block;
  color: #e9cda1;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.v4-call-card a {
  display: inline-block;
  margin: 10px 0 8px;
  max-width: 100%;
  color: #fff0da;
  text-decoration: none;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 1000;
  line-height: .98;
  letter-spacing: .035em;
  white-space: nowrap;
}

.v4-call-card p {
  margin: 0;
  color: #f0dfc4;
  font-weight: 760;
}

.v4-details {
  width: min(100%, 640px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.v4-details a,
.v4-details div {
  min-width: 0;
  padding: 16px 15px;
  border-radius: 20px;
  background: rgba(211,180,133,.055);
  border: 1px solid rgba(211,180,133,.12);
  color: #f2e3cb;
  text-decoration: none;
}

.v4-details a {
  grid-column: 1 / -1;
}

.v4-details i {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e2bd7a, #b68a50);
  color: #140f0b;
  font-style: normal;
  font-weight: 900;
}

.v4-details strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: .98rem;
  line-height: 1.25;
}

.v4-details em {
  display: block;
  margin-top: 5px;
  color: #cdb487;
  font-size: .82rem;
  font-style: normal;
  font-weight: 850;
}

.v4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.v4-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 950;
}

.v4-btn-main {
  color: #120d09;
  background: linear-gradient(135deg, #e6c082, #bd9053);
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
}

.v4-btn-ghost {
  color: #f4e5ce;
  border: 1px solid rgba(211,180,133,.23);
  background: rgba(211,180,133,.06);
}

.v4-info-section {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 18px clamp(38px, 6vw, 80px);
}

.v4-section-title {
  text-align: center;
}

.v4-section-title h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.v4-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.v4-info-grid article {
  padding: 28px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 12, 11, .92), rgba(9, 8, 7, .9));
  border: 1px solid rgba(211,180,133,.14);
  box-shadow: 0 22px 40px rgba(0,0,0,.20);
  animation: v4-card-up .75s cubic-bezier(.2,.8,.2,1) both;
}

.v4-info-grid article:nth-child(2) { animation-delay: .12s; }
.v4-info-grid article:nth-child(3) { animation-delay: .24s; }

.v4-info-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(146,42,26,.30), rgba(211,180,133,.18));
  color: #f4e6cf;
  font-weight: 950;
  margin-bottom: 14px;
}

.v4-info-grid h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.v4-info-grid p {
  margin: 0;
  color: #d6c4a7;
}

.v4-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 18px 110px;
  color: #cbb58f;
}

.v4-footer a {
  color: #f4e3c6;
  font-weight: 850;
}

.v4-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  color: #120d09;
  background: linear-gradient(135deg, #e6c082, #bd9053);
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(0,0,0,.30);
}

.v4-tabbar {
  display: none;
}

@keyframes v4-bg {
  from { background-position: 0% 0%; }
  to { background-position: 100% 40%; }
}

@keyframes v4-panel-in {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@keyframes v4-card-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes v4-float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-9px) scale(1.012); }
}

@keyframes v4-ring {
  to { transform: rotate(360deg); }
}

@keyframes v4-call-glow {
  0%,100% { box-shadow: 0 18px 34px rgba(0,0,0,.24), 0 0 0 rgba(211,180,133,0); }
  50% { box-shadow: 0 22px 46px rgba(0,0,0,.34), 0 0 38px rgba(211,180,133,.13); }
}

@keyframes v4-shine {
  0%,60% { left: -45%; opacity: 0; }
  72% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

@keyframes v4-road {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 0 92px; }
}

@keyframes v4-glow-a {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(70px,-28px,0) scale(1.08); }
}

@keyframes v4-glow-b {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-60px,42px,0) scale(1.08); }
}

@media (max-width: 1120px) {
  .v4-panel {
    grid-template-columns: 1fr;
  }

  .v4-logo-zone {
    order: 1;
  }

  .v4-copy {
    order: 2;
  }

  .v4-logo-frame {
    width: min(100%, 280px);
  }

  .v4-copy h1 {
    font-size: clamp(2.7rem, 10vw, 4.7rem);
  }
}

@media (max-width: 760px) {
  body.construction-v4 {
    padding-bottom: 96px;
  }

  .v4-header {
    position: static;
  }

  .v4-nav {
    padding: 12px 14px;
  }

  .v4-brand img {
    width: 40px;
    height: 40px;
  }

  .v4-brand strong {
    font-size: .92rem;
  }

  .v4-brand em {
    font-size: .78rem;
  }

  .v4-header-call {
    display: none;
  }

  .v4-hero {
    padding: 16px 12px 30px;
  }

  .v4-panel {
    display: grid;
    padding: 20px 16px 26px;
    border-radius: 28px;
    gap: 24px;
  }

  .v4-logo-zone {
    order: 1;
  }

  .v4-logo-frame {
    width: min(78vw, 230px);
  }

  .v4-logo-orbit {
    width: min(84vw, 300px);
  }

  .v4-logo-zone p {
    font-size: .68rem;
    letter-spacing: .14em;
  }

  .v4-copy {
    order: 2;
  }

  .v4-kicker {
    font-size: .72rem;
    letter-spacing: .14em;
  }

  .v4-copy h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.1rem);
    line-height: .94;
    letter-spacing: -.045em;
  }

  .v4-lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .v4-call-card {
    margin-top: 22px;
    padding: 17px 15px;
    border-radius: 22px;
  }

  .v4-call-card span {
    font-size: .68rem;
    letter-spacing: .13em;
  }

  .v4-call-card a {
    font-size: clamp(1.95rem, 10vw, 2.65rem);
    white-space: normal;
  }

  .v4-call-card p {
    font-size: .95rem;
  }

  .v4-details,
  .v4-info-grid {
    grid-template-columns: 1fr;
  }

  .v4-details a,
  .v4-details div {
    padding: 15px 14px;
  }

  .v4-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .v4-btn {
    width: 100%;
  }

  .v4-section-title h2 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .v4-floating {
    display: none;
  }

  .v4-tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(8, 7, 6, .88);
    border: 1px solid rgba(211,180,133,.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0,0,0,.32);
  }

  .v4-tabbar a {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 9px 4px;
    border-radius: 16px;
    color: #f3e1c4;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 850;
  }

  .v4-tabbar span {
    font-size: 1.05rem;
  }

  .v4-footer {
    padding-bottom: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.construction-v4 *,
  body.construction-v4 *::before,
  body.construction-v4 *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
@media (max-width: 1024px) {
  .v4-floating {
    display: inline-flex !important;
    position: fixed !important;
    right: 14px !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    z-index: 9999 !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #e6c082, #bd9053) !important;
    color: #120d09 !important;
    text-decoration: none !important;
    font-weight: 950 !important;
    box-shadow: 0 16px 34px rgba(0,0,0,.35) !important;
  }
}
