/* ===================
   Celestial Range - Playful Dynamic CSS
   Style for all pages - Brand: Celestial Range
   =================== */

/* === CSS RESET & NORMALIZE === */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body { line-height: 1; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
button { background: none; border: none; cursor: pointer; }

/* === CSS CUSTOM PROPERTIES === */
:root {
  --primary: #26394D;
  --secondary: #B0D235;
  --accent: #F5F8FA;
  --accent2: #FFF799;
  --fun-pink: #FF7FA1;
  --fun-blue: #68A0FF;
  --fun-orange: #FFB84C;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* === GENERAL BODY === */
body {
  font-family: var(--font-body);
  background: var(--accent);
  color: var(--primary);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 900px) {
  .container {
    padding: 0 12px;
  }
  .section {
    padding: 36px 10px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 24px 6px;
    margin-bottom: 36px;
  }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-weight: 800;
  color: var(--primary);
}
h1 {
  font-size: 2.7rem;
  line-height: 1.16;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, dl, dd, dt {
  font-family: var(--font-body);
  color: #2c3551;
  font-size: 1rem;
}
strong {
  color: var(--fun-blue);
  font-weight: 700;
}
em {
  color: var(--fun-pink);
  font-style: italic;
}

/* === FUN FONTS & ACCENTS === */
.hero h1, .hero h2 {
  /* Playful title font treatment */
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--secondary);
  background: linear-gradient(90deg, var(--secondary) 60%, var(--fun-orange) 100%);
  -webkit-background-clip: text;
  color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--primary);
  font-size: 1.18rem;
  font-family: var(--font-body);
}

/* === HEADER, MAIN NAV & LOGO === */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(176,210,53,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}
header a img {
  height: 44px;
  transition: transform 0.2s cubic-bezier(.57,1.21,.67,1.06);
}
header a img:hover {
  transform: scale(1.06) rotate(-5deg);
  filter: drop-shadow(0 2px 6px var(--fun-blue));
}
.main-nav {
  display: flex;
  gap: 22px;
  flex: 1 1 auto;
  align-items: center;
  margin-left: 28px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  transition: color 0.2s;
  padding: 7px 12px;
  border-radius: 18px;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  background: var(--accent2);
  transition: all .15s;
}
.cta-button {
  display: inline-block;
  padding: 11px 32px 11px 32px;
  background: var(--secondary);
  color: #183040;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 46px;
  box-shadow: 0 2px 12px 0 rgba(176,210,53,0.16);
  letter-spacing: 0.012em;
  margin-left: auto;
  transition: background .19s, color .17s, transform .15s;
  border: none;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--fun-pink);
  color: #fff;
  transform: translateY(-2px) scale(1.06) rotate(-1deg);
  box-shadow: 0 4px 14px 0 rgba(250,129,171,0.19);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  background: var(--fun-orange);
  color: var(--primary);
  font-size: 2.3rem;
  border-radius: 40%;
  padding: 0 12px;
  border: none;
  display: none;
  line-height: 1;
  margin-left: 16px;
  transition: background 0.2s, color 0.18s;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--fun-pink);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(0.86, 0, 0.07, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: 0 5px 35px 0 rgba(39,87,153,0.08);
  padding: 26px 30px 30px 30px;
  gap: 24px;
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--fun-blue);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 100%;
  width: 47px;
  height: 47px;
  border: none;
  align-self: flex-end;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.17s;
  z-index: 1010;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--fun-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 22px;
  width: 90vw;
  max-width: 400px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  background: var(--accent2);
  color: var(--primary);
  padding: 15px 18px;
  border-radius: 26px;
  margin-bottom: 2px;
  transition: background .17s, box-shadow .14s;
  box-shadow: 0 2px 6px 0 rgba(176,210,53,0.09);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--fun-pink);
  color: #fff;
  box-shadow: 0 3px 9px 0 rgba(250,129,171,0.13);
}
@media (max-width: 1180px) {
  .main-nav {
    gap: 12px;
    margin-left: 14px;
  }
  .cta-button { padding: 12px 18px; margin-left: 8px; }
}
@media (max-width: 970px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .cta-button { margin-right: 2px; }
}
@media (max-width: 600px) {
  header .container { padding: 0 9px; gap: 9px; }
  .mobile-menu { padding: 15px 6px 38px 16px; }
  .mobile-nav a { font-size: 1.1rem; padding: 11px 11px; }
  .mobile-menu-close { width: 39px; height: 39px; font-size: 1.5rem; }
}


/* === HERO & SECTION STYLES === */
.hero {
  background: var(--fun-blue);
  color: #fff;
  padding: 56px 0 44px 0;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero .cta-button {
  margin-top: 20px;
  background: var(--fun-orange);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.hero .cta-button:hover {
  background: var(--fun-pink);
  color: #fff;
  border-color: var(--fun-pink);
}
@media (max-width: 768px) {
  .hero {
    padding: 37px 0 25px 0;
  }
  .hero h1 { font-size: 2rem; }
  .hero .container { gap: 13px; }
}

/* === GENERIC FLEX UTILS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 2px 9px 0 rgba(68,110,236,0.13);
  border-radius: 20px;
  padding: 32px 24px;
  min-width: 250px;
  flex: 1 1 300px;
  transition: transform 0.2s, box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 8px 25px 0 rgba(68,110,236,0.23);
  transform: translateY(-4px) scale(1.03) rotate(-2deg);
  z-index: 3;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .content-grid { flex-direction: column; align-items: stretch; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === FEATURE GRID (Homepage, Guide, etc.) === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 12px;
  width: 100%;
}
.feature-grid li {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 15px 0 rgba(176,210,53,0.09);
  flex: 1 1 260px;
  min-width: 220px;
  padding: 28px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
  margin-bottom: 20px;
  border-bottom: 4px solid var(--fun-orange);
}
.feature-grid li:hover {
  box-shadow: 0 8px 30px 0 rgba(176,210,53,0.15);
  transform: translateY(-5px) scale(1.04) rotate(-1deg);
  border-bottom: 4px solid var(--fun-pink);
}
.feature-grid img {
  height: 54px; width: 54px;
  margin-bottom: 13px;
  animation: popSpin .7s cubic-bezier(.5,.01,.18,.99);
}
.feature-grid h3 {
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--fun-blue);
}
@keyframes popSpin {
  0% { transform: scale(0.6) rotate(-24deg); }
  60% { transform: scale(1.13) rotate(9deg); }
  100% { transform: scale(1) rotate(0); }
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 15px 0 rgba(104,160,255,0.09);
  margin-bottom: 20px;
  padding: 20px 28px 20px 24px;
  min-width: 220px;
  max-width: 630px;
  font-size: 1.06rem;
  color: #20222f;
  border-left: 8px solid var(--fun-blue);
  position: relative;
  overflow: hidden;
}
.testimonial-card blockquote {
  quotes: "\201C" "\201D";
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--primary);
  margin-right: 16px;
}
.testimonial-card p {
  color: #444;
  font-size: 0.98rem;
}
.testimonial-card:after {
  content: "";
  background: var(--fun-pink);
  opacity: 0.06;
  position: absolute;
  right: -40px;
  top: 16px;
  width: 64px; height: 64px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
/* Ensure testimonial text is always high-contrast on light background */
.testimonial-card blockquote, .testimonial-card p {
  color: #1d2731;
}

/* === REVIEW & NEWS CARDS === */
.review-cards, .news-cards, .team-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.review-card, .news-card, .team-member {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(176,210,53,0.1);
  padding: 28px 22px 20px 20px;
  min-width: 250px;
  max-width: 340px;
  flex: 1 1 330px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.16s;
  position: relative;
}
.review-card:hover, .news-card:hover, .team-member:hover {
  box-shadow: 0 8px 24px 0 rgba(250,129,171,0.13);
  transform: translateY(-5px) scale(1.03) rotate(-1deg);
  z-index: 2;
}
.review-card h3 { margin-bottom: 8px; color: var(--fun-blue); }
.news-card h3 { color: var(--fun-orange); margin-bottom: 8px; }
.news-card p { color: var(--primary); }
.team-member h3 { font-size: 1.08rem; color: var(--fun-blue); margin-bottom: 8px; }
.team-member p { color: #323a49; }

@media (max-width: 1020px) {
  .feature-grid, .review-cards, .news-cards, .team-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .review-card, .news-card, .team-member {
    max-width: 100%;
  }
}

/* === TABLES (Comparatifs) === */
table {
  width: 100%;
  margin: 16px 0 16px 0;
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  font-family: var(--font-body);
  box-shadow: 0 2px 11px 0 rgba(176,210,53,0.06);
}
thead th {
  background: var(--secondary);
  color: #20292D;
  font-size: 1.08rem;
  font-family: var(--font-display);
  padding: 15px 7px;
  text-align: left;
}
tbody td {
  padding: 13px 7px;
  border-bottom: 1px solid #eef0f4;
  color: var(--primary);
  font-size: 1rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
@media (max-width:600px){
  table, thead, tbody, th, td, tr{display:block;width:100%;}
  thead{display:none;}
  tbody tr{margin-bottom:16px;box-shadow:0 1px 5px 0 rgba(176,210,53,0.08);border-radius:11px;background:#fff;}
  tbody td{padding:9px 5px;position:relative;border-bottom:none;}
  tbody td::before{content:attr(data-label)":";font-weight:700;color:var(--secondary);display:block;}
}

/* === FAQ ACCORDION === */
.faq-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 13px;
}
.faq-accordion dt {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fun-orange);
  background: #fff6ce;
  border-radius: 15px;
  padding: 16px 22px;
  font-size: 1.08rem;
  transition: background 0.12s;
  margin-bottom: 4px;
  position: relative;
}
.faq-accordion dt:hover, .faq-accordion dt:focus {
  background: var(--fun-pink);
  color: #fff;
}
.faq-accordion dd {
  background: #f8fbfd;
  border-left: 4px solid var(--fun-blue);
  border-radius: 0 12px 12px 0;
  padding: 15px 14px 14px 18px;
  color: var(--primary);
  margin-bottom: 9px;
  margin-left: 15px;
  font-size: 1rem;
}

/* === CHECKLISTS & EXPERT TIPS === */
.checklists {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.checklists li {
  background: var(--fun-orange);
  color: var(--primary);
  border-radius: 13px;
  padding: 7px 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.expert-tips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}
.expert-tips-list li {
  background: var(--fun-blue);
  color: #fff;
  border-radius: 13px;
  padding: 7px 12px;
  font-family: var(--font-display);
  font-size: 1rem;
}

/* === VALUES & TEAM === */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 10px;
}

.team-section {
  margin-top: 12px;
}

/* === CONTACT INFOS === */
.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.contact-infos p {
  display: flex;
  align-items: center;
  font-size: 1.01rem;
  color: var(--primary);
  gap: 9px;
}
.contact-infos img {
  height: 23px; width: 23px;
  margin-right: 8px;
}

/* === CATEGORIES FILTER === */
.categories-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--accent2);
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 1rem;
  margin-top: 19px;
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 24px 0;
  margin-top: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--accent2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--fun-orange); }
.contact-info {
  color: #fff;
  font-size: 0.97rem;
  line-height: 1.5;
}
.contact-info a {
  color: var(--fun-orange);
  text-decoration: underline;
}
@media (max-width: 650px) {
  .footer-nav { flex-direction: column; gap: 11px; align-items: flex-start; }
}

/* === MARGIN & SPACING CLASSES === */
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.gap-20 { gap: 20px !important; }

/* === BUTTONS (Universal) === */
button, .button, .cta-button {
  transition: background 0.19s, color 0.19s, box-shadow 0.15s, transform 0.14s;
}
.button {
  background: var(--fun-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 17px;
  font-size: 1rem;
  padding: 10px 18px;
  border: none;
  margin-right: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(39,87,153,0.09);
}
.button:hover, .button:focus {
  background: var(--fun-pink);
  color: #fff;
}

/* === ANIMATION HELPERS === */
.card, .card *, .testimonial-card, .feature-grid li, .cta-button, .mobile-menu, .mobile-menu-toggle, .mobile-nav a {
  will-change: transform, shadow, color, background;
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe6;
  color: #252530;
  box-shadow: 0 -3px 18px 0 rgba(104,160,255,0.15);
  z-index: 1300;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 24px 14px;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  animation: bannerIn .7s cubic-bezier(.57,1.21,.67,1.06);
}
@keyframes bannerIn {
  0% { transform: translateY(74px) scale(0.98); opacity: 0; }
  70% { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner .button, .cookie-banner .cookie-settings-btn {
  margin: 0 11px 0 0;
  border-radius: 40px;
  font-family: var(--font-display);
  font-size: 0.99rem;
  padding: 10px 21px;
  border: none;
  background: var(--fun-blue);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: var(--fun-orange);
  color: var(--primary);
}
.cookie-banner .button:hover, .cookie-banner .cookie-settings-btn:hover {
  background: var(--fun-pink);
  color: #fff;
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(38,57,77,0.43);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalIn .31s cubic-bezier(.8,-0.01,.23,1.07);
}
@keyframes modalIn {
  0% { opacity:0; transform: scale(1.06); }
  90% { opacity:1; transform: scale(0.98); }
  100% { opacity:1; transform: scale(1); }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 28px 0 rgba(68,110,236,0.25);
  min-width: 310px;
  max-width: 95vw;
  padding: 42px 37px 24px 37px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.04rem;
}
.cookie-modal-content h2 {
  color: var(--secondary);
}
.cookie-modal-content ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal-content label {
  font-family: var(--font-display);
  color: var(--fun-blue);
  font-size: 1.12rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.cookie-modal-content input[type=checkbox] {
  accent-color: var(--fun-orange);
  margin-right: 11px;
  scale: 1.25;
}
.cookie-modal-close {
  position: absolute;
  top: 11px; right: 11px;
  background: var(--fun-blue);
  border-radius: 100%;
  color: #fff;
  border: none;
  width: 39px; height: 39px;
  font-size: 1.3rem;
  transition: background .17s;
  display: flex; align-items: center; justify-content: center;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--fun-pink);
}
.cookie-modal .button { margin: 10px 18px 0 0; }
.cookie-modal .button:last-child { margin-right: 0; }

@media (max-width: 570px) {
  .cookie-modal-content { padding: 23px 7px 18px 7px; }
}
@media (max-width: 800px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 8px; }
}

/* === Miscellaneous & Visual Accents === */
.text-section {
  margin: 12px 0 15px 0;
  font-size: 1.04rem;
  color: var(--primary);
}
.text-section h2, .text-section h3 {
  color: var(--fun-blue);
  margin-bottom: 7px;
}

/* Highlighted for playful, energetic vibe */
dt, th, .highlight, .fun-accent {
  color: var(--fun-pink);
  font-weight: 700;
}

/* Gaps between all cards/sections (enforced) */
section + section, .card + .card, .testimonial-card + .testimonial-card {
  margin-top: 24px;
}
.content-wrapper > * + * {
  margin-top: 20px;
}

/* Responsive adjustments for tighter mobile screens */
@media (max-width: 500px) {
  .container { padding: 0 3px; }
  .content-wrapper { gap: 11px; }
}

/* Scrollbar customization for playful effect */
::-webkit-scrollbar {
  width: 10px;
  background-color: var(--accent2);
}
::-webkit-scrollbar-thumb {
  background: var(--fun-pink);
  border-radius: 10px;
}

/* ============== END ================= */
