:root {
  --green: #1f7a4d;
  --green-dark: #145236;
  --light: #f5f7fa;
  --light-alt: #e9edf3;
  --text: #222;
  --muted: #666;
  --white: #ffffff;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.06);
  --radius-card: 14px;
  --radius-pill: 999px;
  --transition-fast: 0.2s ease-out;
  --max-width: 1100px;
}

/* Reset simple */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--light);
}

/* Layout global */
main {
  padding-top: 120px  !important; /* hauteur header */
  
    max-width: 900px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  
}

h2 {
  color: #0a3d62;
  border-left: 4px solid #145a8d;
  padding-left: 0.6rem;
  margin-top: 2rem;
}

.honeypot {
  display: none;
}

.logo-img {
  width: 128px;
  object-fit: contain;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3bd68a, var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.site-title h1 {
  font-size: 1.1rem;
  margin: 0;
}

.site-title p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
  font-weight: bold;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition-fast);
}

.main-nav a:hover {
  color: var(--green);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
/* --- Breadcrumb --- */
.breadcrumb {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  padding: 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--green-dark);
  text-decoration: none;
}
/* Hero */
.hero {
  background: linear-gradient(135deg, #1f7a4d, #2fa86b);
  color: var(--white);
  padding: 4.5rem 1.5rem 4rem;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

/* Sections */
.section {
  padding: 3rem 1.5rem;
}

.section-alt {
  background: var(--light-alt);
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 1.75rem;
}

.section-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* Grille */
.grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid0 {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
	grid-template-columns: 1fr;
}


/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Actualités */
.list-news {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.news-item h3 {
  margin: 0 0 0.25rem;
}

.news-item p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.news-date {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Wrapper contact --- */
.contact-wrapper {
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  max-width: 500px;
  width: 100%;
  animation: fadeIn 0.4s ease-out;
}

.contact-card h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.contact-card .intro {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* --- Champs --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field label {
  font-weight: 600;
}

input,
textarea {
  border-radius: 12px;
  border: 1px solid #ccd3df;
  padding: 0.8rem;
  font-size: 1rem;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.2);
}

/* --- Bouton --- */
.btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: 14px;
}

/* --- Message de succès --- */
.success-message {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  background: #e8f8ef;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 600;
  animation: fadeIn 0.4s ease-out;
}

/* --- Page Merci améliorée --- */

.thankyou-card {
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.thankyou-blason {
  width: 80px;
  margin-bottom: 1rem;
  animation: fadeIn 0.6s ease-out;
}

.thankyou-illustration {
  margin: 1rem 0;
  animation: fadeIn 0.7s ease-out;
}

.thankyou-icon {
  font-size: 3.5rem;
  color: var(--green);
  margin: 1rem 0;
  animation: popIn 0.4s ease-out;
}

.countdown {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.back-home {
  display: inline-block;
  margin-top: 1rem;
}

/* Animation icône */
@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* --- Page 404 --- */

.thankyou-card h2 {
  margin-top: 0.5rem;
}

.thankyou-icon {
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 1rem 0;
}

.two-column {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
}

.column {
  flex: 1 1 45%;
}

.image-column {
  display: flex;
  margin: auto;
/*   
  align-items: center;   centre verticalement
  justify-content: center; centre horizontalement si tu veux
 */
 }

.image-column img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: auto;
}

.text-column h2 {
  color: #b03a2e; /* terracotta */
/*   font-size: larger; */
  margin-bottom: 0.5rem;
  line-height: 2.5;
}

.text-column h3 {
  color: #3e6b4c; /* vert sauge */
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.text-column ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.text-column li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.text-column .footer {
  font-style: italic;
  color: #3e6b4c;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .thankyou-icon {
    font-size: 2.4rem;
  }

}
/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Ultra-mobile --- */
@media (max-width: 600px) {
	
  .contact-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
    box-shadow: none;
  }

  input,
  textarea {
    padding: 0.9rem;
  }

  .btn-primary {
    padding: 1rem;
  }
}

/* Boutons */
.btn-primary,
.btn-secondary {
  border-radius: var(--radius-pill);
  border: none;
  padding: 0.55rem 1.3rem;
  font: inherit;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: var(--shadow-soft);
}

.hero .btn-primary {
  background: var(--white);
  color: var(--green-dark);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
  background: rgba(31, 122, 77, 0.08);
  color: var(--green-dark);
}

.btn-secondary:hover {
  background: rgba(31, 122, 77, 0.16);
}

/* Footer */
.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}



/* Responsive */
@media (max-width: 900px) {
	
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
.burger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 140px;
    right: 0;
    left: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }
}

.hfont {
	font-size: medium !important; 
	font-style: italic; 
	font-family: inherit; 
	color: forestgreen;
}
/* --- Améliorations spécifiques mobile pour la page contact --- */

@media (max-width: 600px) {
	
  h2 {
  	font-size: large;
  }
  .topbar {
    height: 120px;
    padding: 0 1rem;
  }

  .logo-circle {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .site-title h1 {
    font-size: 1rem;
  }

  .site-title p {
    font-size: 0.75rem;
  }

  .burger span {
    width: 24px;
    height: 3px;
  }

  .contact-form {
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: none; /* plus léger sur mobile */
    background: var(--white);
    margin: 0 0.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-field label {
    font-size: 0.9rem;
  }

  input,
  textarea {
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
  }

  textarea {
    min-height: 140px;
  }

  .btn-primary {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    border-radius: 14px;
  }

  .section-header {
    padding: 0 0.5rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }
  
  .two-column {
    flex-direction: column;
  }
  .column {
    flex: 1 1 100%;
  }
  
  .text-column h2 {
  color: #b03a2e; /* terracotta */
  font-size: small;
  margin-bottom: 0.5rem;
  line-height: 2.5;
}
  
}
/* Burger animé */
.burger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


