/* === PALETTE COULEURS OCCITANIE PREMIUM === */
:root {
  --red: #A00017;
  --dark-red: #7A0010;
  --yellow: #FFD338;
  --beige: #FFF3E3;
  --brown: #2E1E17;
  --gray: #6F6258;
  --radius: 16px;
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}

/* === RESET DE BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--brown);
  background: var(--beige);
  line-height: 1.6;
}

/* === HEADER === */
.site-header {
  background: #fffaf5;
  border-bottom: 1px solid rgba(160, 0, 23, 0.1);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* ✅ on supprime le logo du header */
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === NAVIGATION === */
.nav a {
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2e1e17;
  margin-left: 2rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: var(--red);
}
.btn-outline {
  border: 1px solid var(--red);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
}
.btn-outline:hover {
  background: var(--red);
  color: #fff;
}

/* === HERO === */
@keyframes occitanieGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  position: relative;
  padding: 8rem 0 4rem; /* ✅ plus d’espace en haut pour le logo */
  text-align: center;
  background: linear-gradient(
      120deg,
      rgba(160, 0, 23, 0.25) 0%,
      rgba(255, 211, 56, 0.4) 30%,
      rgba(255, 240, 190, 0.25) 70%
    ),
    url("https://www.transparenttextures.com/patterns/paper-fibers.png");
  background-size: 200% 200%;
  animation: occitanieGlow 14s ease-in-out infinite;
  color: var(--brown);
  overflow: hidden;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: <img src="img/blason-occitanie.svg" alt="Blason Occitanie" width="60" height="60" loading="lazy" style="vertical-align:middle; margin-right:8px;">

    center/200px no-repeat;
  opacity: 0.05;
  z-index: -1;
}
.hero-inner,
.hero-cta,
.hero-badges {
  position: relative;
  z-index: 2;
}

/* === LOGO DANS LE HERO === */
.hero-logo {
  position: absolute;
  top: 40px;
  left: 60px;
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 1px 4px rgba(160, 0, 23, 0.25))
    drop-shadow(0 0 2px rgba(255,255,255,0.7));
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: fadeIn 1s ease;
}
.hero-logo:hover {
  transform: scale(1.04);
  filter:
    drop-shadow(0 2px 8px rgba(160, 0, 23, 0.35))
    drop-shadow(0 0 3px rgba(255,255,255,0.8));
}

/* TITRES HERO */
.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  background: linear-gradient(90deg, #a00017, #ffd338);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 2rem;
  color: var(--gray);
  font-size: 1.05rem;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-badges li {
  list-style: none;
  background: #fff;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  color: var(--dark-red);
}

/* === BOUTONS === */
.btn {
  display: inline-block;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(90deg, #ffd338 0%, #ffb800 60%, #a00017 100%);
  color: #2e1e17;
  border: none;
  box-shadow: 0 6px 16px rgba(160, 0, 23, 0.25);
  padding: 0.7rem 1.4rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(160, 0, 23, 0.4);
  background: linear-gradient(90deg, #ffdd55, #ffd338 40%, #a00017 100%);
}
.btn-ghost {
  background: #fff;
  border: 1px solid #ffd338;
  color: var(--dark-red);
  padding: 0.7rem 1.4rem;
}
.btn-ghost:hover {
  background: #fff5d6;
  color: var(--red);
  border-color: var(--red);
}

/* === SECTIONS GÉNÉRALES === */
.section {
  padding: 4rem 0;
}
.section-head {
  text-align: center;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}
.section-head span {
  color: var(--red);
}

/* === CARTES === */
.card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.card-link:hover {
  text-decoration: none;
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(160, 0, 23, 0.15);
}

.card h3 {
  font-family: "Playfair Display", serif;
  color: var(--brown);
  margin-bottom: 0.6rem;
}
/* Liste des cartes : marge entre les lignes */
.cards { display: grid; gap: 14px; }

/* Carte en ligne (icône | titre | descriptif) */
.card-row{
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  align-items: center;
  gap: 12px;
}

/* Lien étiré sur toute la carte, sans changer le style du texte */
.card { position: relative; }
.card .stretched-link{
  position: absolute; inset: 0; z-index: 1;
  text-decoration: none; color: inherit;
}
.card .stretched-link:focus{ outline: 2px solid #999; outline-offset: 4px; }

/* Pas de bleu/violet sur les textes cliquables */
.card a{ color: inherit; text-decoration: none; }
.card a:hover{ text-decoration: none; }

/* Petits ajustements visuels */
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p{ margin: 0; color: var(--gray); }

/* Responsive : on empile titre + description sous 768px */
@media (max-width: 768px){
  .card-row{
    grid-template-columns: 32px 1fr;
    grid-auto-rows: auto;
  }
  .card-row p{
    grid-column: 2 / -1;
    margin-top: 4px;
  }
}
/* --- FIX "cartes pleine page" --- */

/* Le conteneur qui ENTOURE les cartes (la liste) */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

/* Chaque carte n'est PAS une grille globale */
.card{
  display: block;           /* override du display:grid précédent */
  gap: 0 !important;        /* au cas où */
}

/* Carte en ligne : icône | titre | descriptif */
.card.card-row{
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  align-items: center;
  gap: 12px;
}

/* Lien étiré sur toute la carte (cliquable partout) */
.card{ position: relative; }
.card .stretched-link{
  position: absolute; inset: 0; z-index: 1;
  text-decoration: none; color: inherit;
}
.card a{ color: inherit; text-decoration: none; }
.card a:hover{ text-decoration: none; }

.card h3{ margin: 0; }
.card p{ margin: 0; color: var(--gray); }

/* Responsive */
@media (max-width: 768px){
  .card.card-row{
    grid-template-columns: 32px 1fr;
  }
  .card.card-row p{
    grid-column: 2 / -1;
    margin-top: 4px;
  }
}

/* === POURQUOI NOUS === */
.grid-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.why {
  background: #fff;
  border-left: 4px solid var(--red);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.why h4 {
  font-family: "Playfair Display", serif;
  margin-bottom: 0.5rem;
  color: var(--brown);
}
.why p {
  font-size: 0.95rem;
  color: var(--gray);
}

/* === CONTACT === */
.contact-form {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}
.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form textarea {
  grid-column: 1 / -1;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: inherit;
}
.contact-form .form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* === FOOTER === */
.site-footer {
  background: #fff3e3;
  border-top: 4px solid var(--yellow);
  text-align: center;
  padding: 1.8rem 0 2.4rem;
  color: var(--gray);
  font-size: 0.95rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: <img src="img/blason-occitanie.svg" alt="Blason Occitanie" width="60" height="60" loading="lazy" style="vertical-align:middle; margin-right:8px;">

    center/contain no-repeat;
  opacity: 0.18;
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav a {
    margin-left: 1rem;
    font-size: 0.8rem;
  }
  .hero-logo {
    width: 130px;
    top: 20px;
    left: 20px;
  }
}
/* === Cookies (sitewide) === */
.cookie-banner{
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  display: none; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #fff; border: 1px solid rgba(160,0,23,.15); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: 14px;
}
.cookie-banner p{ margin: 0; color: #2E1E17; font-size: .95rem; }
.cookie-actions{ display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-pref-btn{
  position: fixed; left: 16px; bottom: 16px; z-index: 9998;
  padding: .5rem .8rem; border-radius: 999px; border: 1px solid rgba(160,0,23,.25);
  background: #FFF3E3; color: #7A0010; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.cookie-pref-btn:hover{ background:#ffe9c7; }
@media (max-width: 480px){
  .cookie-pref-btn{ left: 12px; bottom: 12px; }
}
/* === Skip Link === */
.skip-link {
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus {
  left: 12px; top: 12px; width:auto; height:auto; padding:8px 12px; 
  background:#fff; color:#000; border-radius:8px; box-shadow:0 4px 14px rgba(0,0,0,.1);
  z-index:9999;
}
/* === Encarts Webinar === */

.webinar-banner {
  --webinar-red: var(--red, #A00017);
  --webinar-yellow: var(--yellow, #F4C300);

  background: linear-gradient(135deg, var(--webinar-red), #d62035);
  color: #fff;
  padding: 2.5rem 1.5rem;
  margin: 3rem 0;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.webinar-banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.webinar-badge {
  flex-shrink: 0;
  background: #fff;
  color: var(--webinar-red);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 90px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.webinar-badge-day {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 800;
}

.webinar-badge-month {
  display: block;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.webinar-badge-year {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  color: #666;
}

.webinar-content h2 {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.webinar-subtitle {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.webinar-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.webinar-points li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.35rem;
}

.webinar-points li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.9rem;
  color: var(--webinar-yellow);
}

.webinar-meta {
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.webinar-cta {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: #fff;
  color: var(--webinar-red);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.webinar-cta:hover,
.webinar-cta:focus-visible {
  background: transparent;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  .webinar-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .webinar-badge {
    margin-bottom: 0.75rem;
  }

  .webinar-content h2 {
    font-size: 1.6rem;
  }
}
