/*
Theme Name: Calendrier Pompier Personnalisé
Theme URI: https://calendrier-pompier-personnalise.fr/
Author: Imprimerie Notre Dame
Author URI: https://imprimerienotredame.com/
Description: Thème dédié au site Calendrier Pompier Personnalisé. Charte graphique bleu sapeur-pompier inspirée du catalogue (Imprimerie Notre Dame). Page d'accueil, header et footer sur mesure.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calendrier-pompier
*/

/* =========================================================
   0. Polices du catalogue (Imprimerie Notre Dame) — self-hosted
   Amsi Pro Condensed (titres) + Avenir (texte)
   ========================================================= */
@font-face {
  font-family: "Amsi Pro Cond";
  src: url("assets/fonts/amsi-pro-cond-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amsi Pro Cond";
  src: url("assets/fonts/amsi-pro-cond-xlight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir LT";
  src: url("assets/fonts/avenir-book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir LT";
  src: url("assets/fonts/avenir-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir LT";
  src: url("assets/fonts/avenir-heavy.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   1. Variables & reset
   ========================================================= */
:root {
  --navy-900: #08263f;
  --navy-800: #0c3252;
  --navy-700: #103a5e;
  --blue-600: #1d5d92;
  --blue-500: #2b6fa8;
  --sky: #6fb9e0;
  --sky-light: #a9d6ef;
  --red: #af2b1e;       /* Rouge pompier — RAL 3000 « rouge feu » */
  --red-dark: #8e2218;  /* Variante foncée (survol) */
  --ink: #1b2733;
  --muted: #5b6b78;
  --paper: #f5f7f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 18px 40px -22px rgba(8, 38, 63, .55);
  --container: 1180px;
  --font-display: "Amsi Pro Cond", "Arial Narrow", "Saira Condensed", system-ui, sans-serif;
  --font-body: "Avenir LT", "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .4em;
  letter-spacing: .5px;
}

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

.text-italic { font-style: italic; }

/* =========================================================
   2. Boutons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 1.05rem;
  padding: 13px 26px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--navy-800); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--sky-light); color: var(--navy-900); }

/* =========================================================
   3. Header
   ========================================================= */
.topbar {
  background: var(--navy-900);
  color: var(--sky-light);
  font-size: .82rem;
  letter-spacing: .3px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 7px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--sky); }
.topbar .topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }

.site-header {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 100%);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 24px -12px rgba(0,0,0,.6);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { color: #fff; }
.brand-flame {
  width: 12px; align-self: stretch;
  background: linear-gradient(var(--red), #f7a600);
  border-radius: 3px;
  min-height: 46px;
}
.brand-text { display: flex; flex-direction: column; line-height: .92; }
.brand-text .l1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: .5px;
}
.brand-text .l2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 4px;
  color: var(--sky);
}

/* Nav */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0; padding: 0;
  align-items: center;
}
.main-nav a {
  color: #eaf3fb;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: #fff; border-color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
}
.header-phone span { display: block; font-size: .62rem; letter-spacing: 2px; color: var(--sky); font-weight: 600; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; color: #fff;
  font-size: 1.6rem; cursor: pointer;
}

/* =========================================================
   4. Hero (page d'accueil)
   ========================================================= */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(95deg, rgba(8,38,63,.92) 0%, rgba(8,38,63,.8) 30%, rgba(8,38,63,.5) 60%, rgba(8,38,63,.55) 100%),
    linear-gradient(0deg, rgba(8,38,63,.7), transparent 48%),
    url("assets/img/hero-pompier.jpg") center 60% / cover no-repeat;
  overflow: hidden;
}

.hero-figure { display: none; }
.hero-inner { position: relative; z-index: 2; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .35;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .container { position: relative; z-index: 2; padding-block: 92px; }
.hero .eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--sky);
  font-size: 1rem;
  margin-bottom: 12px;
}
.hero h1 {
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.hero h1 .year {
  display: block;
  color: var(--sky);
  -webkit-text-stroke: 1px rgba(255,255,255,.25);
}
.hero p.lead {
  max-width: 640px;
  margin: 18px auto 30px;
  font-size: 1.18rem;
  color: #dceaf6;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-url {
  margin-top: 34px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 1px;
  color: #fff;
  opacity: .9;
}

/* Hero "split" sur grand écran : texte à gauche, pompier à droite */
@media (min-width: 901px) {
  .hero { text-align: left; }
  .hero-inner { max-width: 620px; }
  .hero p.lead { margin-left: 0; margin-right: 0; }
  .hero-cta { justify-content: flex-start; }
}

/* =========================================================
   5. Sections génériques
   ========================================================= */
.section { padding-block: 78px; }
.section--paper { background: var(--paper); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-500);
  font-size: .95rem;
}
.section-head h2 {
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy-800);
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Atouts */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature {
  background: #fff;
  border: 1px solid #e6ecf1;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature h3 {
  color: var(--navy-800);
  font-size: 1.5rem;
  font-style: italic;
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 3px solid var(--red);
  display: inline-block;
}
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Produits */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(160deg, var(--navy-700), var(--blue-600));
  box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.product:hover { transform: translateY(-4px); }
.product-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
.product--rollup .product-img { object-position: left center; }
.product .product-body { padding: 22px; position: relative; z-index: 2; }
.product h3 { font-style: italic; text-transform: uppercase; font-size: 1.4rem; margin-bottom: 4px; }
.product p { margin: 0; font-size: .92rem; color: #e7f1f9; }
.product::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 18%, rgba(8,38,63,.55) 52%, rgba(8,38,63,.93));
  z-index: 1;
}

/* Bandeau CTA */
.cta-band {
  background: linear-gradient(120deg, var(--red), #f06a12);
  color: #fff;
  text-align: center;
}
.cta-band .container { padding-block: 60px; }
.cta-band h2 { font-style: italic; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { font-size: 1.15rem; margin-bottom: 26px; opacity: .95; }

/* =========================================================
   6. Footer (inspiré de la dernière page du catalogue)
   ========================================================= */
.site-footer { color: #eaf3fb; }
.footer-main {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--blue-600) 60%, var(--blue-500) 100%);
  padding-block: 56px 40px;
}
.footer-lead {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: #fff;
  margin-bottom: 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-col h4 {
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sky-light);
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.footer-logo {
  background: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  display: inline-block;
  margin-bottom: 16px;
  max-width: 260px;
}
.footer-logo img { width: 100%; height: auto; display: block; }
.footer-col address { font-style: normal; color: #dceaf6; line-height: 1.8; }

.contact-person { margin-bottom: 18px; }
.contact-person .name {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}
.contact-person .tel {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  display: block;
}
.contact-person a { color: #dceaf6; }
.contact-person a:hover { color: #fff; }

.footer-visit { color: #dceaf6; }
.footer-visit .map-note {
  font-style: italic;
  color: var(--sky-light);
  margin-bottom: 8px;
}
.france-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 14px;
  border-radius: 50px;
  margin-top: 12px;
  font-weight: 600;
}
.france-badge .tricolore {
  width: 22px; height: 15px; border-radius: 2px;
  background: linear-gradient(to right, #0055A4 0 33%, #fff 33% 66%, #EF4135 66% 100%);
  display: inline-block;
}

.footer-url-band {
  background: var(--navy-900);
  text-align: center;
  padding-block: 26px;
}
.footer-url-band a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  letter-spacing: 1px;
}
.footer-url-band a:hover { color: var(--sky); }
.footer-url-band .legal { display: block; font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: .76rem; color: #8fb0c9; letter-spacing: .3px; margin-top: 8px; }

.footer-bottom {
  background: #061d31;
  color: #7f9bb3;
  font-size: .82rem;
  padding-block: 14px;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   7. Contenu standard (pages internes / loop)
   ========================================================= */
.page-content { padding-block: 70px; }
.page-content .container { max-width: 820px; }
.page-content h1 { color: var(--navy-800); font-style: italic; text-transform: uppercase; font-size: 2.6rem; }

/* =========================================================
   8. Responsive
   ========================================================= */
@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 760px) {
  .topbar { display: none; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-800);
    padding: 18px 22px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 14px; align-items: flex-start; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .site-header .container { position: relative; }
}
@media (max-width: 560px) {
  .features, .products { grid-template-columns: 1fr; }
  .hero .container { padding-block: 64px; }
}
