/* styles.css - Design moderne pour navigateurs actuels (Chrome/Edge/Firefox)
   Compatible avec un hebergement statique Apache sur IBM i (AS/400 V7R3).
*/

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #152033;
  --muted: #5b6b7c;

  --brand-1: #0a2f6b;
  --brand-2: #0b4db7;

  --danger-bg: #fff2f1;
  --danger-bd: #ffd0cb;
  --danger-tx: #8a1f15;

  --warn-bg: #fff7e6;
  --warn-bd: #ffe3ab;
  --warn-tx: #7a4b00;

  --info-bg: #eef5ff;
  --info-bd: #cfe2ff;
  --info-tx: #0b3a79;


  --success: #2e7d32;

  --shadow: 0 10px 30px rgba(10, 30, 70, .12);
  --shadow-soft: 0 6px 18px rgba(10, 30, 70, .10);
  --radius: 14px;
  --radius-sm: 10px;

  --grad: linear-gradient(135deg, rgba(11,77,183,.10), rgba(10,47,107,.06));
  --grad-cta: linear-gradient(135deg, #0b4db7, #0a2f6b);

  --focus: 0 0 0 3px rgba(11, 77, 183, .25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(11,77,183,.16), rgba(11,77,183,0)),
              radial-gradient(900px 500px at 100% 0%, rgba(10,47,107,.14), rgba(10,47,107,0)),
              var(--bg);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Topbar */
.topbar {
  background: var(--grad);
  border-bottom: 1px solid rgba(10, 30, 70, .10);
}

.topbar__inner {
  display: flex;
  flex-direction: column;  /* <--- ajoute ceci */
  gap: 12px;
  align-items: center;     /* centre logo + texte */
  padding: 18px 0;
  text-align: center;      /* centre les lignes de texte */
}


.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.65);
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}

.brand:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.brand__logo { display: block; height: auto; }

.topbar__title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #0a2f6b;    /* bleu Suzuki */
  margin-top: 12px;
  text-shadow: 0 2px 6p;
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, rgba(11,77,183,0.25), rgba(255,255,255,0));
  padding: 4px 8px;
  border-radius: 6px;
  transition: transform .2s ease, text-shadow 
}

.topbar__title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: #0a2f6b;
  border-radius: 3px;
}

.topbar__subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

/* Alerts */
.alerts { margin: 18px 0 10px; }

.alert {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  border: 1px solid transparent;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.alert:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.45));
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.alert:hover:before { opacity: .55; }

.alert--danger { background: var(--danger-bg); border-color: var(--danger-bd); color: var(--danger-tx); }
.alert--warning { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn-tx); }

.alert__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.25);
}

.alert__content {
  text-align: center;
}


.alert__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.7);
}

.alert--info {
  background: var(--info-bg);
  border-color: var(--info-bd);
  color: var(--info-tx);
}

.icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.icon--white { fill: #fff; }

/* Hero / CTA */
.hero { margin: 18px 0; }

.hero__card {
  display: flex;
  flex-direction: column;   /* <-- empilement vertical */
  align-items: center;      /* <-- centre horizontalement */
  gap: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 30, 70, .10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .2px;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
  box-shadow: 0 8px 22px rgba(10, 30, 70, .12);
}

.btn:focus { outline: none; box-shadow: var(--focus), 0 8px 22px rgba(10, 30, 70, .12); }

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-cta);
  color: #fff;
}

.btn--primary:hover { box-shadow: 0 12px 28px rgba(10, 30, 70, .18); }

.btn--ghost {
  background: #fff;
  color: var(--brand-2);
  border-color: rgba(11,77,183,.30);
}

.btn--ghost:hover { background: rgba(11,77,183,.06); border-color: rgba(11,77,183,.45); }

.btn__icon {
  width: 30px;
  height: 30px;
  flex: 0 0 33px;
  border-radius: 999px;
  display: block;
  place-items: center;
  background: rgba(255,255,255,.18);
}

.btn--ghost .btn__icon { background: rgba(11,77,183,.10); }

.hero__note { margin: 12px 0 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(106, 58, 163, .10);
  color: #5f2da3;
}

.pill__icon { width: 18px; height: 18px; }

/* Cards */
.cards { margin: 16px 0 8px; }

.cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;   /* <-- empilement vertical */
  align-items: center;      /* <-- centre horizontalement */
  text-align: center;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(10, 30, 70, .10);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Centre le contenu de l'en-tête de la carte */
.card__header{
  text-align: center;
}

/* Met l’icône AU-DESSUS du texte "Partenaires Auto" */
.card__title{
  margin: 0;
  color: var(--brand-1);
  font-size: 16px;
  display: flex;
  flex-direction: column;   /* <-- empile (icone puis texte) */
  align-items: center;
  gap: 8px;
  margin: 0 ;
}

/* Taille de l’icône du titre (auto/moto) */
.card__title-icon{
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto;
}

/* Force "Liens utiles" à passer sous le titre */
.card__subtitle{
  display: block;           /* <-- s'assure que c'est sur une ligne à part */
  margin: 6px 0 0;          /* <-- espace sous le titre */
  color: var(--muted);
  font-size: 13px;
}

.card__body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 8px;
  flex: 1;                 /* prend l’espace restant */
  align-content: start
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10, 30, 70, .08);
  color: var(--text);
  background: #fff;
  text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}

.link:hover {
  background: rgba(11,77,183,.06);
  border-color: rgba(11,77,183,.22);
  transform: translateY(-1px);
}

.link:focus { outline: none; box-shadow: var(--focus); }

.link__icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(11,77,183,.08);
  color: var(--brand-2);
}

.link__meta { color: var(--muted); font-size: 12px; }

/* Support */
.support {
  margin: 18px 0 34px;
  display: grid;
  place-items: center;
}

.support__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--success), #1f5d23);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(46,125,50,.28);
  transition: transform .12s ease, filter .12s ease;
}

.support__btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.support__test { display: flex;
  flex-direction: column;   /* <--- empile les 2 lignes */
  line-height: 1.1;
 }
.support__small { font-size: 18px; font-weight: 700; opacity: .92; }

.support__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);}

.support__link { opacity: .9; color: #fff; font-size: 16px; text-align: center; }

/* Footer */
.footer {
  border-top: 1px solid rgba(10, 30, 70, .10);
  background: rgba(255,255,255,.55);
}

.footer__inner {
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .topbar__inner { flex-direction: column; text-align: center; }
  .cards__grid { grid-template-columns: 1fr; }
  .hero__actions { justify-content: center; }
}
