/* ===================================================================
   GLOBAL FONTS & VARIABLES
=================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Merriweather:wght@300;400;700&display=swap');

:root{
  /* Tetradic Palette */
  --primary: #1e90ff;          /* Bleu Vif */
  --primary-dark: #1564b3;
  --secondary: #ff6b6b;        /* Rouge Corail */
  --secondary-dark: #c14646;
  --accent: #ffd166;           /* Jaune Solaire */
  --accent-dark: #c9a23e;
  --neutral: #f1f2f6;          /* Gris Clair */
  --neutral-dark: #d5d7dd;
  --text-dark: #222222;
  --text-light: #ffffff;

  /* Neumorphism */
  --shadow-light: rgba(255,255,255,0.6);
  --shadow-dark: rgba(0,0,0,0.12);

  /* Animation */
  --transition: all .35s ease;
}

/* ===================================================================
   RESET & BASE
=================================================================== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Merriweather',serif;
  line-height:1.6;
  color:var(--text-dark);
  background:var(--neutral);
  overflow-x:hidden;
}
h1,h2,h3,h4,h5,h6{
  font-family:'Montserrat',sans-serif;
  font-weight:700;
  line-height:1.2;
  color:var(--text-dark);
  text-align:center;
  margin-bottom:.75rem;
}
p,li{margin-bottom:1rem;font-size:1rem}
ul{list-style:none}

/* ===================================================================
   UTILITY CLASSES
=================================================================== */
.container{width:90%;max-width:1200px;margin:0 auto}
.section{padding:4rem 0;position:relative}
.section-title{text-shadow:1px 1px 3px rgba(0,0,0,0.15)}
.btn,button,input[type='submit']{
  display:inline-block;
  padding:.85rem 2.25rem;
  border-radius:45px;
  border:none;
  font-family:'Montserrat',sans-serif;
  font-weight:600;
  cursor:pointer;
  transition:var(--transition);
  background:var(--primary);
  color:var(--text-light);
  box-shadow:6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}
.btn:hover,button:hover,input[type='submit']:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
}
.primary-btn{background:var(--secondary)}
.primary-btn:hover{background:var(--secondary-dark)}
.secondary-btn{background:var(--accent);color:#000}
.secondary-btn:hover{background:var(--accent-dark)}

.small-btn{padding:.45rem 1.25rem;font-size:.875rem}

.switcher{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin-top:1rem;
}
.switcher input[type=checkbox]{
  appearance:none;
  width:46px;height:24px;
  background:var(--neutral-dark);
  border-radius:12px;
  position:relative;
  cursor:pointer;
  transition:var(--transition);
}
.switcher input[type=checkbox]:before{
  content:'';
  position:absolute;
  top:2px;left:2px;
  width:20px;height:20px;
  background:#fff;
  border-radius:50%;
  transition:var(--transition);
  box-shadow:2px 2px 5px rgba(0,0,0,.2);
}
.switcher input[type=checkbox]:checked{
  background:var(--secondary);
}
.switcher input[type=checkbox]:checked:before{
  transform:translateX(22px);
}

/* ===================================================================
   HEADER & NAV
=================================================================== */
.neumorphic-header{
  width:100%;
  position:fixed;
  top:0;left:0;
  background:var(--neutral);
  z-index:5000;
  box-shadow:4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}
.neumorphic-header .container{display:flex;justify-content:space-between;align-items:center;padding:1rem 0}
.logo{font-family:'Montserrat',sans-serif;font-weight:700;font-size:1.5rem;color:var(--primary);text-decoration:none}
.logo span{color:var(--secondary)}
.nav ul{display:flex;gap:1.5rem}
.nav a{font-family:'Montserrat',sans-serif;color:var(--text-dark);text-decoration:none;font-weight:600;transition:var(--transition)}
.nav a:hover{color:var(--primary)}
/* Burger */
.burger{background:none;border:none;display:none;flex-direction:column;gap:4px;cursor:pointer}
.burger .line{width:28px;height:3px;background:var(--text-dark);border-radius:3px;transition:var(--transition)}

/* Mobile Navigation */
@media(max-width:768px){
  .burger{display:flex}
  .nav{position:absolute;top:100%;right:0;width:220px;background:var(--neutral);transform:scaleY(0);transform-origin:top;transition:var(--transition)}
  .nav.open{transform:scaleY(1)}
  .nav ul{flex-direction:column;padding:1rem}
}

/* ===================================================================
   HERO
=================================================================== */
.hero{
  padding: 10rem 0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-light);
  text-align:center;
  background-size:cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
}
.hero p{max-width:600px;margin:1.25rem auto;color:var(--text-light)}
.hero .btn{margin-top:1rem}

/* ===================================================================
   FEATURES / CARDS
=================================================================== */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2rem;
  margin-top:2rem;
}
.card{
  background:var(--neutral);
  border-radius:20px;
  padding:1.5rem;
  box-shadow:6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  display:flex;flex-direction:column;align-items:center;text-align:center;
  transition:var(--transition);
}
.card:hover{transform:translateY(-6px)}
.card-image{width:100%;height:220px;overflow:hidden;border-radius:15px;margin-bottom:1rem;display:flex;justify-content:center;align-items:center}
.card-image img{width:100%;height:100%;object-fit:cover;margin:0 auto}
.card-content h3{margin-bottom:.5rem;font-size:1.25rem;color:var(--primary)}
.card-content p{font-size:.95rem}

/* ===================================================================
   CURVY GRID BACKGROUNDS
=================================================================== */
.section:nth-child(even):before{
  content:'';
  position:absolute;
  top:0;left:0;width:100%;height:100%;
  background:linear-gradient(135deg,var(--neutral) 25%,rgba(255,255,255,0) 25%) repeat;
  background-size:40px 40px;
  opacity:.08;
  pointer-events:none;
}

/* ===================================================================
   PARALLAX
=================================================================== */
.parallax{
  background-size:cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
}

/* ===================================================================
   INNOVATION CAROUSEL
=================================================================== */
.carousel{position:relative;margin-top:2.5rem;overflow:hidden;border-radius:20px}
.carousel-inner{display:flex;transition:var(--transition)}
.carousel-item{
  min-width:100%;
  padding:3rem 2rem;
  background:var(--accent);
  color:#000;font-family:'Montserrat',sans-serif;font-size:1.25rem;
  display:flex;align-items:center;justify-content:center;
}
.carousel-control{
  position:absolute;top:50%;transform:translateY(-50%);
  background:var(--secondary);color:#fff;border:none;width:40px;height:40px;border-radius:50%;cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-size:1.5rem;transition:var(--transition)
}
.carousel-control.prev{left:10px}
.carousel-control.next{right:10px}
.carousel-control:hover{background:var(--secondary-dark)}

/* ===================================================================
   COMMUNITY
=================================================================== */
#community p{max-width:800px;margin:0 auto}

/* ===================================================================
   TESTIMONIALS
=================================================================== */
#testimonials .card{background:rgba(255,255,255,0.85);backdrop-filter:blur(4px)}
.author{display:block;margin-top:.5rem;font-size:.875rem;color:var(--secondary);font-weight:600}

/* ===================================================================
   CONTACT
=================================================================== */
.contact-form{max-width:640px;margin:0 auto;padding:2rem;background:var(--neutral);border-radius:20px;box-shadow:6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light)}
.contact-form .field{margin-bottom:1.25rem}
.contact-form label{display:block;margin-bottom:.5rem;font-weight:600}
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea{
  width:100%;padding:.85rem;border-radius:12px;border:1px solid var(--neutral-dark);font-family:inherit;
  box-shadow:inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
  background:var(--neutral);
}
.contact-form textarea{resize:vertical}

/* ===================================================================
   FOOTER
=================================================================== */
.neumorphic-footer{
  background:var(--neutral);
  padding:3rem 0;
  box-shadow:inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}
.neumorphic-footer .columns{display:flex;flex-wrap:wrap;gap:2rem;justify-content:space-between}
.neumorphic-footer h3{font-size:1.15rem;margin-bottom:1rem}
.neumorphic-footer ul li{margin-bottom:.5rem}
.neumorphic-footer a{color:var(--primary);text-decoration:none;transition:var(--transition)}
.neumorphic-footer a:hover{text-decoration:underline;color:var(--primary-dark)}
.social-icons a{margin-right:.75rem;font-weight:600}
@media(max-width:768px){
  .neumorphic-footer .columns{flex-direction:column;align-items:flex-start}
}

/* ===================================================================
   LINK - “Lire la suite”
=================================================================== */
.read-more{
  color:var(--secondary);
  font-weight:700;
  text-decoration:none;
  position:relative;
}
.read-more:after{
  content:'';
  position:absolute;left:0;bottom:-2px;width:100%;height:2px;background:var(--secondary);transition:var(--transition)
}
.read-more:hover:after{transform:scaleX(0)}
.read-more:hover{color:var(--secondary-dark)}

/* ===================================================================
   SUCCESS PAGE
=================================================================== */
.success-page{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  background:var(--accent);
  color:#000;
  flex-direction:column;
}

/* ===================================================================
   PRIVACY / TERMS PADDING
=================================================================== */
.legal-page{padding-top:100px}

/* ===================================================================
   ANIMATIONS - Hand Drawn Effect
=================================================================== */
@keyframes sketch{
  0%{stroke-dasharray:0 1000}
  100%{stroke-dasharray:1000 0}
}
.sketch-path{
  animation:sketch 2s forwards;
  stroke:var(--secondary);stroke-width:2;fill:none
}

/* ===================================================================
   COOKIE POPUP (override inline if needed)
=================================================================== */
#cookiePopup a{color:var(--accent)}
#cookiePopup button:hover{background:var(--accent-dark)}

/* ===================================================================
   RESPONSIVE GRID HELPERS
=================================================================== */
.columns{display:flex;flex-wrap:wrap;gap:2rem}
.column{flex:1 1 220px}
.is-two-thirds{flex-basis:66.666%}

/*==================================================================== 
  PARALLAX MOBILE FIX (prevent jitter)
====================================================================*/
@media(max-width:1024px){
  .parallax{background-attachment:scroll}
}

/* ===================================================================
   ACCESSIBILITY & MISC
=================================================================== */
img{max-width:100%;height:auto;display:block}
a:focus,button:focus,input:focus,textarea:focus{outline:2px dashed var(--primary)}

.logo {
  display: flex;
  align-items: center;
}