/* ==========================================================================
   ABO'TECH – feuille de style
   Bootstrap 5.3 est chargé avant ce fichier : on le personnalise via
   des variables CSS plutôt que de réécrire ses règles.
   ========================================================================== */
/* === Polices auto-hébergées (licence SIL OFL) === */
@font-face {
  font-family: 'Fraunces';
  src: url("fonts/fraunces.eb2486760f75.woff2") format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url("fonts/nunito.166202cc391c.woff2") format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caveat';
  src: url("fonts/caveat.2d9de14f93a2.woff2") format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* === Palette et réglages Bootstrap === */
:root {
  /* Palette ABO'TECH, inspirée du logo */
  --abo-cream: #fff8f0;
  --abo-ink: #2b1d14;
  --abo-muted: #6b5b4f;
  --abo-orange: #c2410c;
  --abo-orange-dark: #9a3412;
  --abo-amber: #f59e0b;
  --abo-blue: #0b6fb0;
  --abo-radius: 0.75rem;
  --abo-shadow: 0 4px 16px rgba(43, 29, 20, 0.08);

  /* On dit à Bootstrap d'utiliser nos valeurs */
  --bs-body-bg: var(--abo-cream);
  --bs-body-color: var(--abo-ink);
  --bs-link-color-rgb: 194, 65, 12;
  --bs-link-hover-color-rgb: 154, 52, 18;
  --bs-primary: var(--abo-orange);
  --bs-primary-rgb: 194, 65, 12;
  --abo-sand: #fde6c8;
  --bs-light-rgb: 253, 230, 200;
  --bs-secondary-color: var(--abo-muted);
  --bs-border-color: rgba(43, 29, 20, 0.15);

  --abo-font-titre: 'Fraunces', Georgia, serif;
  --abo-font-texte: 'Nunito', system-ui, sans-serif;
  --abo-font-manuscrit: 'Caveat', cursive;

  --bs-body-font-family: var(--abo-font-texte);
}

.btn-primary {
  --bs-btn-bg: var(--abo-orange);
  --bs-btn-border-color: var(--abo-orange);
  --bs-btn-hover-bg: var(--abo-orange-dark);
  --bs-btn-hover-border-color: var(--abo-orange-dark);
  --bs-btn-active-bg: var(--abo-orange-dark);
  --bs-btn-active-border-color: var(--abo-orange-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--abo-orange);
  --bs-btn-border-color: var(--abo-orange);
  --bs-btn-hover-bg: var(--abo-orange);
  --bs-btn-hover-border-color: var(--abo-orange);
  --bs-btn-active-bg: var(--abo-orange-dark);
  --bs-btn-active-border-color: var(--abo-orange-dark);
}

/* Cartes toujours blanches, pour se détacher du crème et du sable */
.card {
  --bs-card-bg: #ffffff;
  --bs-card-border-color: rgba(43, 29, 20, 0.12);
}

/* Sur fond sable, les liens passent à l'orange foncé (contraste) */
.bg-light {
  --bs-link-color-rgb: 154, 52, 18;
}

/* === Utilitaires de couleur (utilisés dans les templates) === */
.bg-orange {
  background-color: var(--abo-orange) !important;
  color: #fff;
}

.text-orange {
  color: var(--abo-orange) !important;
}

.btn-orange {
  background-color: var(--abo-orange);
  color: #fff;
  border: none;
}

.btn-orange:hover {
  background-color: var(--abo-orange-dark);
  color: #fff;
}

/* === En-tête === */
.site-header {
  background-color: var(--abo-cream);
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--abo-ink);
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

.site-header .navbar-brand img {
  height: 56px;
  width: auto;
  mix-blend-mode: multiply; /* le fond blanc du logo se fond dans le crème */
}

.site-header .nav-link {
  color: var(--abo-ink);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.5rem 1rem;
}

.site-header .nav-link:hover {
  color: var(--abo-orange);
}

.site-header .nav-link.active {
  color: var(--abo-orange);
  text-decoration: underline;
  text-decoration-color: var(--abo-amber);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* === Pied de page === */
.site-footer {
  background-color: var(--abo-ink);
  color: var(--abo-cream);
}

.site-footer a {
  color: var(--abo-cream);
  text-decoration: underline;
  text-decoration-color: rgba(255, 248, 240, 0.4);
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--abo-amber);
  text-decoration-color: var(--abo-amber);
}

.footer-brand {
  font-family: var(--abo-font-titre);
  font-size: 1.6rem;
  font-weight: 700;
}

.footer-slogan {
  font-family: var(--abo-font-manuscrit);
  font-size: 1.6rem;
  color: var(--abo-amber);
}

.footer-small {
  color: rgba(255, 248, 240, 0.75);
  font-size: 0.9rem;
}

.footer-sep {
  border: 0;
  border-top: 2px dashed rgba(255, 248, 240, 0.3);
  opacity: 1;
}

/* === Roadmap : frise chronologique === */
.timeline {
  position: relative;
  border-left: 2px solid var(--abo-orange);
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: -1.3rem;
  background: #fff;
  border: 2px solid var(--abo-orange);
  color: var(--abo-orange);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-content {
  padding-left: 1rem;
}

.timeline-content h5 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-content small {
  font-size: 0.85rem;
  color: var(--abo-muted);
}

.timeline-content p {
  margin: 0.5rem 0 0;
}

/* Ajustements mobiles de la frise */
@media (max-width: 576px) {
  .timeline {
    padding-left: 1.2rem;
  }

  .timeline-icon {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.9rem;
    left: -1.1rem;
  }

  .timeline-content h5 {
    font-size: 1rem;
  }
}

/* === Page détail d'une offre === */
.section-block {
  background-color: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--abo-radius);
  box-shadow: var(--abo-shadow);
}

h2.section-title {
  font-size: 1.4rem;
  color: var(--abo-orange);
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(43, 29, 20, 0.1);
  padding-bottom: 0.5rem;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
  font-family: var(--abo-font-titre);
  font-weight: 700;
}

.manuscrit {
  font-family: var(--abo-font-manuscrit);
  font-weight: 600;
}

/* === Accueil === */
.hero-kicker {
  font-family: var(--abo-font-manuscrit);
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--abo-orange);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.5px;
}

.hero-slogan {
  font-family: var(--abo-font-titre);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--abo-orange);
  margin: 1rem 0;
}

/* Surligné « feutre » sous un mot */
.souligne {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
}

.souligne::after {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.02em;
  height: 0.3em;
  background: var(--abo-amber);
  border-radius: 999px;
  transform: rotate(-1deg);
  z-index: -1;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Photo en polaroïd */
.photo-zone {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 2.5rem;
}

.photo-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--abo-amber);
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  z-index: -1;
}

.polaroid {
  position: relative;
  max-width: 300px;
  margin: 0;
  padding: 14px 14px 18px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(43, 29, 20, 0.2);
  transform: rotate(-3deg);
}

.polaroid::before { /* le « scotch » */
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 100px;
  height: 28px;
  margin-left: -50px;
  background: rgba(194, 65, 12, 0.35);
  transform: rotate(3deg);
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
}

.polaroid figcaption {
  font-family: var(--abo-font-manuscrit);
  font-weight: 600;
  font-size: 1.45rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* Cartes de réalisations */
.realisation .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.realisation .card-img-top {
  object-fit: cover;
  object-position: top;
  aspect-ratio: 16 / 10;
}

.etiquette {
  position: absolute;
  top: -14px;
  left: 1.25rem;
  z-index: 2;
  background: var(--abo-amber);
  color: var(--abo-ink);
  font-family: var(--abo-font-manuscrit);
  font-weight: 600;
  font-size: 1.4rem;
  padding: 0.1rem 1rem;
  border-radius: 999px;
  transform: rotate(-4deg);
  box-shadow: 0 4px 10px rgba(43, 29, 20, 0.15);
}

@media (min-width: 992px) {
  .realisation-une {
    flex-direction: row;
  }

  .realisation-une .card-img-top {
    width: 55%;
    aspect-ratio: auto;
  }

  .realisation-une .card-body {
    justify-content: center;
    padding: 2rem;
  }

  .realisation-une .card-title {
    font-size: 1.6rem;
  }
}

/* Atouts */
.atouts {
  border-top: 2px dashed rgba(43, 29, 20, 0.25);
  padding-top: 1.5rem;
  font-weight: 700;
}

.atouts i {
  margin-right: 0.4rem;
}

/* Bouton contour brun, aligné sur la palette */
.btn-outline-dark {
  --bs-btn-color: var(--abo-ink);
  --bs-btn-border-color: var(--abo-ink);
  --bs-btn-hover-color: var(--abo-cream);
  --bs-btn-hover-bg: var(--abo-ink);
  --bs-btn-hover-border-color: var(--abo-ink);
  --bs-btn-active-color: var(--abo-cream);
  --bs-btn-active-bg: var(--abo-ink);
  --bs-btn-active-border-color: var(--abo-ink);
}

/* Listes à coches (cartes de fonctionnalités) */
.liste-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.liste-check li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}

.liste-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--abo-orange-dark);
  font-weight: 700;
}

/* Offres */
.icone-rond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--abo-sand);
  color: var(--abo-orange);
  font-size: 1.4rem;
}

.offre-prix {
  font-family: var(--abo-font-titre);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--abo-orange-dark);
}

@media (min-width: 992px) {
  .aside-sticky {
    position: sticky;
    top: 1.5rem;
  }
}
:root {
  --abo-font-titre: var(--abo-font-texte);
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .hero-title {
  font-weight: 800;
  letter-spacing: 0;
}