/* ==========================================================================
   IT CARS — Design tokens
   Palette : rouge dynamique, noir haut de gamme, blanc lisible
   Signature : la plaque d'immatriculation arrondie, motif récurrent
   ========================================================================== */

:root{
  --red: #E10600;
  --red-dark: #A30500;
  --red-soft: #FFE9E7;
  --black: #0B0B0C;
  --white: #FFFFFF;
  --cream: #F6F3EF;
  --paper: #FBFAF8;
  --ink: #16161A;
  --ink-soft: #57565B;
  --line: #E6E1DA;
  --blue: #0000FF;

  --bg: var(--cream);
  --bg-alt: var(--paper);
  --surface: var(--white);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --border: var(--line);
  --header-bg: rgba(251, 250, 248, 0.82);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-xl: 32px;
  --radius-l: 24px;
  --radius-m: 16px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 30px rgba(11,11,12,0.08);
  --shadow-lift: 0 16px 40px rgba(11,11,12,0.14);

  --ease: cubic-bezier(.22,.9,.32,1);
  --speed: .35s;
}

[data-theme="dark"]{
  --bg: #121113;
  --bg-alt: #1A1A1C;
  --surface: #1E1D20;
  --text: #F4F1EC;
  --text-soft: #B5B1AA;
  --border: #333134;
  --red-soft: #3A1512;
  --header-bg: rgba(18, 17, 19, 0.82);
  --shadow-soft: 0 8px 30px rgba(0,0,0,0.35);
  --shadow-lift: 0 16px 40px rgba(0,0,0,0.5);
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Bandeau de valeurs : purement décoratif (aria-hidden) et déjà
     retranscrit en clair dans la section Valeurs plus bas — on le laisse
     défiler même en mode "réduire les animations". */
  .ticker__track{
    animation-duration: 32s !important;
    animation-iteration-count: infinite !important;
  }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 110px; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.08;
  margin: 0;
  color: var(--text);
}

p{ margin: 0; }

a{ color: inherit; text-decoration: none; }

img, svg{ display: block; max-width: 100%; }

:focus-visible{
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--radius-m);
}

.icon{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--red);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker{
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  position: relative;
  z-index: 60;
}

.ticker__track{
  display: inline-flex;
  align-items: center;
  gap: 18px;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}

.ticker__item{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.ticker__dot{ color: var(--red); font-size: 0.7rem; }

@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header__inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo{
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img{ height: 30px; width: auto; }

.logo__img--dark{ display: none; }
[data-theme="dark"] .logo__img--light{ display: none; }
[data-theme="dark"] .logo__img--dark{ display: block; }

.footer .logo__img{ height: 34px; }

.nav{
  display: flex;
  gap: 6px;
}

.nav a{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.nav a:hover{ background: var(--surface); color: var(--text); }

.header__actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle{
  width: 42px; height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  position: relative;
}

.theme-toggle .icon{ position: absolute; transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease); }
.theme-toggle .icon--moon{ opacity: 0; transform: rotate(-40deg) scale(0.6); }
[data-theme="dark"] .theme-toggle .icon--sun{ opacity: 0; transform: rotate(40deg) scale(0.6); }
[data-theme="dark"] .theme-toggle .icon--moon{ opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .icon--sun{ opacity: 1; transform: rotate(0) scale(1); }

.phone-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.phone-pill:hover{ background: var(--red-dark); transform: translateY(-1px); }
.phone-pill .icon{ width: 16px; height: 16px; }

.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span{
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding: 120px 28px 140px;
  display: flex;
  justify-content: center;
}

.hero__content{
  max-width: 780px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero .eyebrow{ color: #FF6E68; }

.hero__title{
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--white);
}

.hero__title-accent{ color: var(--red); }

.hero__lede{
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #C8C6C2;
  max-width: 560px;
  margin: 26px auto 0;
}

.hero__actions{
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero__plate{
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%) rotate(-8deg);
  width: 460px;
  max-width: 60vw;
  aspect-ratio: 3.4 / 1;
  background: var(--white);
  border-radius: var(--radius-l);
  display: flex;
  align-items: stretch;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  opacity: 0.14;
  z-index: 1;
}

.hero__plate-band{
  width: 16%;
  background: var(--blue);
  border-radius: var(--radius-l) 0 0 var(--radius-l);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.hero__plate-code{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: 0.06em;
  color: var(--black);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.btn--primary{
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover{ background: var(--red-dark); transform: translateY(-2px); }

.btn--ghost{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost:hover{ border-color: var(--white); transform: translateY(-2px); }

.btn--block{ width: 100%; }

/* ==========================================================================
   Services
   ========================================================================== */

.services{ display: flex; flex-direction: column; }

.service{ padding: 88px 28px; }
.service--light{ background: var(--bg-alt); }
.service--dark{ background: var(--black); color: var(--white); }
.service--dark .service__text p{ color: #C8C6C2; }
.service--dark .service__icon{ background: var(--red); color: var(--white); }

.service__inner{
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}

.service__icon{
  width: 68px; height: 68px;
  border-radius: var(--radius-pill);
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.service__icon svg{ width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.service__text h2{
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.service__text p{
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 620px;
}

.partners{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  width: 100%;
}

.partner-badge{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  padding: 18px 28px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.partner-badge img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px){
  .partners{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .partner-badge{
    height: 76px;
    padding: 14px 22px;
  }
}

/* ==========================================================================
   Valeurs
   ========================================================================== */

.values{
  padding: 100px 28px;
  background: var(--bg);
}

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

.values__header h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }

.values__grid{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.value-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 30px 26px;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.value-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.value-card__icon{
  width: 48px; height: 48px;
  border-radius: var(--radius-pill);
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.value-card__icon svg{ width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.value-card h3{
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.value-card p{
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact{
  padding: 100px 28px 120px;
  background: var(--bg-alt);
}

.contact__header{
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.contact__header h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }

.contact__grid{
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact__info{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-list{
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-list li{
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-list .icon{
  width: 22px; height: 22px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-label{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.info-value{
  display: block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
}

.info-value--mono{ font-family: var(--font-mono); font-size: 0.9rem; }

.map-frame{
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  width: 100%;
}

.contact__form{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__form h3{
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.field, .field-row > .field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

input, select, textarea{
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 13px 18px;
  width: 100%;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

textarea{ border-radius: var(--radius-l); resize: vertical; min-height: 110px; }

input:focus, select:focus, textarea:focus{
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
  outline: none;
}

input:invalid:not(:placeholder-shown){ border-color: #D9534F; }

select{ appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357565B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
}

.form__note{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  min-height: 1.2em;
  color: var(--red);
}
.form__note.is-success{ color: #2E8B57; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer{
  background: var(--black);
  color: var(--white);
  padding: 56px 28px 32px;
}

.footer__inner{
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}



.footer__baseline{
  font-family: var(--font-body);
  color: #B5B1AA;
  max-width: 420px;
  font-size: 0.95rem;
}

.footer__nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.footer__nav a{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #2B2A2D;
  color: #E5E2DC;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.footer__nav a:hover{ background: var(--red); border-color: var(--red); color: var(--white); }

.payments{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid #2B2A2D;
  width: 100%;
  max-width: 900px;
}

.payments__label{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #77746E;
}

.payments__list{
  list-style: none;
  margin: 0;
  padding: 0 2px 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.payment-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 45px;
  padding: 1px 4px;
  border-radius: var(--radius-m);
  background: var(--white);
  flex-shrink: 0;
}

.payment-badge img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px){
  .payments__list{
    gap: 8px;
  }
  .payment-badge{
    width: 68px;
    height: 40px;
    padding: 8px 10px;
  }
}

.footer__copy{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #77746E;
  margin-top: 10px;
}

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

@media (max-width: 900px){
  .hero__plate{ opacity: 0.08; }
  .contact__grid{ grid-template-columns: 1fr; }
  .field-row{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .nav{
    position: fixed;
    top: 74px;
    left: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    flex-direction: column;
    padding: 10px;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), visibility var(--speed);
  }
  .nav.is-open{ opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a{ text-align: center; padding: 12px; }

  .nav-toggle{ display: flex; }
  .phone-pill span{ display: none; }
  .phone-pill{ padding: 11px; }

  .logo__img{ height: 26px; }

  .hero{ padding: 90px 20px 100px; }
  .hero__plate{ display: none; }

  .service__inner{ grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 480px){
  .header__inner{ padding: 12px 16px; }
  .service{ padding: 64px 18px; }
  .values, .contact{ padding: 72px 18px; }
  .contact__info, .contact__form{ padding: 26px; }
}

.nav-toggle.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
