/* =========================================================
   CRECARDSHOP — feuille de style principale
   -----------------------------------------------------------
   Ce fichier est organisé en grandes sections, chacune
   annoncée par un bandeau de commentaires. Pour changer une
   couleur du site entier, il suffit de modifier les variables
   dans le bloc ":root" tout en haut : tout le reste du site
   se met à jour automatiquement.
   ========================================================= */

/* ---------- 1. VARIABLES DE STYLE (couleurs, espacements) ---------- */
:root {
  /* Couleurs principales de la marque — palette "Navy & Sauge" */
  --navy: #0f2036;          /* Bleu marine profond — header, footer, titres, boutons principaux */
  --navy-light: #1d3a5c;    /* Variante un peu plus claire du bleu marine */
  --accent: #5c7a63;        /* Vert sauge — kickers, liens, éléments actifs */
  --accent-dark: #46614c;   /* Sauge au survol */
  --teal: #8fa88f;          /* Sauge clair — touches secondaires, dégradés */
  --bg: #f5f3ef;            /* Fond général ivoire */
  --bg-alt: #efece1;        /* Fond alterné pour sections */
  --white: #ffffff;
  --text: #1c2630;          /* Texte principal */
  --text-muted: #5b6259;    /* Texte secondaire / descriptions */
  --border: #ded9c8;

  /* Typographie */
  --font-titre: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-texte: 'Inter', 'Segoe UI', Arial, sans-serif;

  /* Rayons et ombres réutilisés partout */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 32, 54, 0.08);
  --shadow-hover: 0 16px 40px rgba(15, 32, 54, 0.14);

  /* Largeur maximale du contenu */
  --container: 1180px;
}

/* ---------- 2. RESET DE BASE ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-texte);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em 0;
}

p {
  margin: 0 0 1em 0;
}

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

/* ---------- 3. BOUTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(15, 32, 54, .3);
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 32, 54, .35);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- 4. EN-TÊTE / NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-top {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.header-top a {
  color: rgba(255,255,255,.85);
}

.header-top a:hover {
  color: var(--white);
}

.header-top .top-links {
  display: flex;
  gap: 18px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo .logo-sub {
  display: block;
  font-family: var(--font-texte);
  font-weight: 400;
  font-size: .68rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width .2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- 5. HERO ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 55%, #2b4a6d 100%);
  color: var(--white);
  padding: 86px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,168,143,.35), transparent 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: .5em;
}

.hero p.lead {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 46ch;
}

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

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-titre);
  font-size: 1.6rem;
  color: var(--white);
}

.hero-stats div span {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}

.hero-visual {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}

.hero-visual .placeholder-box {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
}

/* ---------- 6. VISUELS DE REMPLACEMENT (placeholders) ---------- */
/* Ces blocs remplacent des photos en attendant les vraies images.
   Voir GUIDE-MODIFICATION.md pour les remplacer par de vraies photos. */
.placeholder-box {
  width: 100%;
  height: 100%;
  min-height: 140px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bg-alt), #e4ddc9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
  border: 1px dashed #d7cfba;
}

.placeholder-box svg {
  width: 34px;
  height: 34px;
  opacity: .55;
}

.placeholder-box span {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.placeholder-box.dark {
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.75);
}

/* ---------- 7. SECTIONS GÉNÉRIQUES ---------- */
section {
  padding: 76px 0;
}

section.alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-head p {
  color: var(--text-muted);
}

.kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

/* ---------- 8. GRILLES DE CARTES (univers produits, avantages) ---------- */
.grid {
  display: grid;
  gap: 26px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}

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

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 18px;
}

.card .icon svg {
  width: 26px;
  height: 26px;
}

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

.card p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 0;
}

.card .tags,
.product-card .tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card .tags span,
.product-card .tags span {
  background: var(--bg-alt);
  color: var(--navy);
  font-size: .74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: .88rem;
}

/* Bandeau "univers produits" avec photo produit à venir */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}

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

.product-card .placeholder-box {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  aspect-ratio: 16/10;
}

.product-card .product-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.product-card p {
  color: var(--text-muted);
  font-size: .9rem;
  flex: 1;
}

/* ---------- 9. MARQUES PARTENAIRES ---------- */
.brands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.brand-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 26px;
  font-family: var(--font-titre);
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--navy);
  font-size: .95rem;
}

/* ---------- 10. BANDE CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), #2b4a6d);
  color: var(--white);
  border-radius: var(--radius);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255,255,255,.8);
  margin-bottom: 0;
}

/* ---------- 11. PAGE INTERIEURE : bandeau de titre ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255,255,255,.8);
  max-width: 60ch;
  margin: 0 auto;
}

.breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: rgba(255,255,255,.9);
}

/* ---------- 12. CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row .icon svg {
  width: 20px;
  height: 20px;
}

.contact-row h4 {
  margin-bottom: 3px;
  font-size: .98rem;
}

.contact-row p, .contact-row a {
  color: var(--text-muted);
  font-size: .92rem;
  margin: 0;
}

.contact-row a:hover {
  color: var(--accent);
}

.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
}

/* ---------- 13. PIED DE PAGE ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 60px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-grid h4 {
  color: var(--white);
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: rgba(255,255,255,.72);
  font-size: .92rem;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
}

.footer-bottom a {
  color: rgba(255,255,255,.6);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-bottom-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* Liens réglementaires (mentions légales, confidentialité, CNIL, CGU) */
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: .8rem;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* ---------- 14. DIVERS (badges, valeurs à propos, timeline) ---------- */
.value-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-item .icon svg {
  width: 20px;
  height: 20px;
}

.value-item h4 {
  font-size: .98rem;
  margin-bottom: 4px;
}

.value-item p {
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0;
}

.notice-box {
  background: #fff8e6;
  border: 1px solid #f2d98a;
  color: #7a5a00;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .85rem;
  margin-top: 24px;
}

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-top { display: none; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    gap: 22px;
    box-shadow: -12px 0 30px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 90;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .burger { display: flex; z-index: 110; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-band .btn { width: 100%; justify-content: center; }
  section { padding: 54px 0; }
  .hero { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Overlay assombri derrière le menu mobile ouvert */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,32,54,.45);
  z-index: 80;
}

.nav-overlay.open {
  display: block;
}

/* ---------- 16. ANIMATIONS AU DÉFILEMENT (reveal on scroll) ---------- */
/* Géré automatiquement par js/main.js : pas besoin d'ajouter de classe
   dans le HTML, les cartes et sections s'animent toutes seules. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 17. DÉCOR HERO (motif à points + formes flottantes) ---------- */
.hero {
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  z-index: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(circle at 30% 30%, rgba(0,0,0,.9), transparent 70%);
  mask-image: radial-gradient(circle at 30% 30%, rgba(0,0,0,.9), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,168,143,.3), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

/* Léger relief sur les cartes au survol : liseré d'accent en haut */
.card, .product-card {
  position: relative;
  overflow: hidden;
}

.card::before, .product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.card:hover::before, .product-card:hover::before {
  transform: scaleX(1);
}

/* ---------- 18. LOGO ---------- */
/* Les styles détaillés du logo (en-tête + pied de page) sont définis
   plus bas, section 21 "PHOTOS RÉELLES", avec le vrai logo CrecardShop. */

/* ---------- 19. FORMULAIRE DE CONTACT ---------- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 6px;
}

.contact-form .form-note {
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-texte);
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92, 122, 99, .15);
  background: var(--white);
}

.form-field textarea {
  min-height: 130px;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-status {
  font-size: .86rem;
  color: var(--teal);
  font-weight: 600;
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* =========================================================
   20. DESIGN RAFFINÉ — habillage visuel plus élaboré
   -----------------------------------------------------------
   Cette section regroupe les touches "signature" du site :
   texture de grain, composition du hero en pile de cartes,
   bordures angulaires entre sections, cartes numérotées avec
   icônes cerclées, boutons avec micro-animation de flèche.
   ========================================================= */

/* ---------- Police d'accent pour les grands chiffres/labels ---------- */
:root {
  --grain-opacity: .05;
}

/* Texture de grain très légère, en SVG inline (aucune image à charger) */
.hero, .page-hero {
  background-image:
    linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 55%, #2b4a6d 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-blend-mode: normal, overlay;
}

.page-hero {
  background-image:
    linear-gradient(120deg, var(--navy), var(--navy-light)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-blend-mode: normal, overlay;
}

/* Transition angulaire en bas du hero d'accueil, pour un tracé moins "boîte" */
.hero {
  padding-bottom: 130px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), 0 100%);
}

.page-hero {
  padding-bottom: 78px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 30px));
}

/* ---------- Composition "pile de cartes" du hero (remplace le simple cadre) ---------- */
.hero-stack {
  position: relative;
  height: 360px;
}

.hero-stack .stack-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px rgba(3,12,26,.35);
}

.hero-stack .stack-card.c1 {
  transform: rotate(-6deg) translate(-18px, 10px);
  z-index: 1;
  opacity: .55;
}

.hero-stack .stack-card.c2 {
  transform: rotate(4deg) translate(14px, -6px);
  z-index: 2;
  opacity: .8;
}

.hero-stack .stack-card.c3 {
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 0;
  color: rgba(255,255,255,.8);
}

.hero-stack .stack-card.c3 svg {
  width: 40px;
  height: 40px;
  opacity: .6;
}

.hero-stack .stack-card.c3 span {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.hero-stack .stack-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  z-index: 4;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: 0 14px 30px rgba(3,12,26,.28);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-stack .stack-badge .badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.hero-stack .stack-badge .badge-icon svg {
  width: 18px;
  height: 18px;
}

.hero-stack .stack-badge strong {
  display: block;
  font-family: var(--font-titre);
  font-size: .95rem;
}

.hero-stack .stack-badge span {
  font-size: .74rem;
  color: var(--text-muted);
}

/* ---------- Cartes numérotées avec icône cerclée (style plus éditorial) ---------- */
.card.card-numbered {
  padding-top: 34px;
}

.card .card-index {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: .82rem;
  color: var(--border);
  letter-spacing: .02em;
}

.card .icon-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.6px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.card .icon-ring svg {
  width: 24px;
  height: 24px;
}

.card:hover .icon-ring {
  border-color: var(--accent);
  background: var(--bg-alt);
  transform: scale(1.06);
}

/* ---------- Boutons : micro-animation de flèche ---------- */
.btn .btn-arrow {
  display: inline-flex;
  transition: transform .18s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- Séparateur de section fin, dégradé ---------- */
.divider-fade {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
  margin: 0;
}

/* ---------- Sur-titre avec trait d'accent (variante éditoriale) ---------- */
.kicker-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.kicker-line::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Page Services : bloc étape numéroté ---------- */
.service-card {
  position: relative;
}

.service-card .service-num {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--bg-alt);
  -webkit-text-stroke: 1px var(--border);
  line-height: 1;
  margin-bottom: 4px;
}

/* En-tête de carte service : texte (numéro + titre) à gauche, icône à droite */
.service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.service-card-head h3 {
  margin-bottom: 0;
}

.service-card-head .icon-ring {
  width: 64px;
  height: 64px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-card-head .icon-ring svg {
  width: 29px;
  height: 29px;
}

@media (max-width: 760px) {
  .hero { clip-path: none; padding-bottom: 60px; }
  .page-hero { clip-path: none; padding-bottom: 56px; }
  .hero-stack { height: 260px; margin-top: 10px; }
  .hero-stack .stack-badge { left: 0; bottom: -16px; padding: 10px 14px; }
}

/* =========================================================
   21. PHOTOS RÉELLES — intégration des visuels du site d'origine
   ========================================================= */

/* Photo produit dans une "product-card" (page Nos produits) :
   même emplacement, mêmes coins arrondis que le placeholder,
   "contain" pour ne jamais rogner le produit. */
.product-card .product-photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: block;
  transition: opacity .12s ease;
}

/* Pastille "+N photos" ajoutée en JS sur les catégories avec un carrousel au survol
   (voir js/main.js) — discrète par défaut, un peu plus visible au survol de la carte. */
.product-card .carousel-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(15, 32, 54, .78);
  color: var(--white);
  font-family: var(--font-texte);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 4px 10px;
  border-radius: 999px;
  opacity: .82;
  transition: opacity .15s ease, background .15s ease;
  pointer-events: none;
}

.product-card:hover .carousel-hint {
  opacity: 1;
  background: var(--accent);
}

/* Logo réel dans l'en-tête */
.logo img.logo-image {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 6px;
}

/* Logo réel dans le pied de page (fond bleu marine) */
.footer-logo img.logo-image {
  height: 30px;
  width: auto;
  border-radius: 4px;
  background: var(--white);
  padding: 3px 6px;
}

/* Photo dans la composition "pile de cartes" du hero — photo de mise en situation,
   affichée en plein cadre (contrairement à une photo produit isolée sur fond blanc) */
.hero-stack .stack-card.c3 img.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--radius);
  display: block;
}

/* Photo "Notre entreprise" sur la page À propos (atelier / imprimantes) */
.about-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* Conteneur pour ancrer la mention "Image générée par IA" sur une photo
   qui n'est pas déjà dans un bloc positionné (voir .ai-label ci-dessous) */
.ai-photo-wrap {
  position: relative;
  height: 100%;
}

/* Mention discrète, obligatoire sur toute photo générée par IA (accueil et
   À propos). Volontairement petite et semi-transparente : lisible sans
   attirer l'œil plus que le visuel lui-même. */
.ai-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(15, 32, 54, .58);
  color: rgba(255,255,255,.9);
  font-family: var(--font-texte);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
}

/* Bandeau "Accueil uniquement sur rendez-vous" au-dessus du plan (page Contact) */
.appointment-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.appointment-notice svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.appointment-notice p {
  color: var(--text);
  font-size: .93rem;
  margin: 0;
}

.appointment-notice strong {
  color: var(--navy);
}

/* La photo hero (page d'accueil) est dans ".stack-card.c3", dont la règle
   ".stack-card.c3 span" met tout texte en majuscules/gras — on neutralise
   ça ici pour que la mention IA reste discrète comme partout ailleurs. */
.hero-stack .stack-card.c3 span.ai-label {
  text-transform: none;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .01em;
}

/* =========================================================
   22. PAGES RÉGLEMENTAIRES — mentions légales, confidentialité,
   déclaration CNIL, conditions générales d'utilisation
   ========================================================= */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
}

.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 2em;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2.2em;
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-top: 1.6em;
  margin-bottom: .5em;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.2em;
  margin: 0 0 1em 0;
}

.legal-page strong {
  color: var(--text);
}

/* =========================================================
   23. BANDEAU COOKIES
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 16px 54px 16px 22px;
  font-size: .86rem;
  line-height: 1.55;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  box-shadow: 0 -6px 24px rgba(3,12,26,.28);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  max-width: 880px;
  flex: 1 1 480px;
}

.cookie-banner a {
  color: var(--teal);
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: var(--white);
}

.cookie-accept {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 11px 24px;
  border-radius: 999px;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: .86rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
  flex: 0 0 auto;
}

.cookie-accept:hover {
  background: var(--accent-dark);
}

.cookie-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

.cookie-close:hover {
  color: var(--white);
}

@media (max-width: 640px) {
  .cookie-banner {
    justify-content: flex-start;
    padding: 16px 40px 16px 18px;
  }
}
