/* ================================
   Ciel Effervescent AutoPropulse — style.css
   Theme: soft_pastel (gentle colors, soft UI, dreamy feel)
   Layout: Mobile-first, FLEXBOX ONLY (no grid/columns)
   ================================ */

/* 1) CSS RESET & NORMALIZE */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body { margin: 0; font-family: "Helvetica Neue", Arial, sans-serif; color: #2A3B47; background: #FAFCFE; line-height: 1.6; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: #0A3D62; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
ul, ol { padding-left: 20px; }
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(46, 204, 113, 0.5); outline-offset: 2px; }

/* 2) THEME VARIABLES (with fallbacks) */
:root {
  --color-primary: #0A3D62;
  --color-secondary: #2ECC71;
  --color-accent: #F4F8FB;
  --color-ink: #2A3B47;
  --color-muted: #6B7C8F;
  --color-soft-sky: #EAF4FF;    /* pastel sky */
  --color-soft-mint: #E8F8F2;   /* pastel mint */
  --color-soft-lilac: #F2ECFF;  /* pastel lilac */
  --color-soft-blush: #FFEFF5;  /* pastel blush */
  --color-soft-sand: #FFF8E6;   /* pastel sand */
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --shadow-soft: 0 6px 24px rgba(10, 61, 98, 0.08);
  --shadow-hover: 0 10px 28px rgba(10, 61, 98, 0.12);
  --container-max: 1200px;
}

/* 3) TYPOGRAPHY SCALE */
h1, h2, h3 { color: var(--color-primary, #0A3D62); line-height: 1.2; }
h1 { font-size: 32px; font-weight: 800; letter-spacing: 0.2px; }
h2 { font-size: 24px; font-weight: 700; margin-top: 8px; }
h3 { font-size: 18px; font-weight: 700; }
p { font-size: 16px; color: var(--color-ink, #2A3B47); }
.subhead { color: var(--color-muted, #6B7C8F); font-size: 18px; }
.microcopy { color: var(--color-muted, #6B7C8F); font-size: 14px; font-style: italic; }
.pull-quote { font-size: 18px; line-height: 1.5; color: var(--color-ink); padding: 16px 20px; background: #FFFFFF; border-left: 4px solid var(--color-secondary); border-radius: var(--radius-s); box-shadow: var(--shadow-soft); }
strong { font-weight: 700; }
small { font-size: 14px; color: var(--color-muted); }

/* 4) GLOBAL LAYOUT (FLEX ONLY) */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 16px; display: flex; justify-content: center; }
.content-wrapper { width: 100%; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* Sections default spacing (also see mandatory .section below) */
section { display: flex; width: 100%; }
section > .container { padding-top: 28px; padding-bottom: 28px; }

/* Alternating soft pastel backgrounds for visual rhythm */
main section:nth-of-type(odd) { background: var(--color-accent, #F4F8FB); }
main section:nth-of-type(even) { background: #FFFFFF; }

/* 5) HEADER */
header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; box-shadow: 0 2px 12px rgba(10,61,98,0.06); }
header .container { padding-top: 10px; padding-bottom: 10px; }
header .content-wrapper { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

/* Navigation */
.main-nav { display: none; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a { font-size: 15px; color: var(--color-ink); padding: 8px 10px; border-radius: 8px; transition: background-color 180ms ease, color 180ms ease; }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--color-soft-sky); color: var(--color-primary); text-decoration: none; }

.cta-nav { display: none; align-items: center; gap: 10px; margin-left: auto; }

/* Mobile menu toggle */
.mobile-menu-toggle { margin-left: auto; font-size: 22px; line-height: 1; width: 40px; height: 40px; border-radius: 10px; color: var(--color-primary); background: var(--color-accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); transition: transform 200ms ease, box-shadow 200ms ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: rgba(255,255,255,0.98); display: flex; flex-direction: column; padding: 16px; gap: 16px; transform: translateX(100%); transition: transform 280ms ease; z-index: 100; box-shadow: 0 10px 40px rgba(10,61,98,0.2); }
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; font-size: 22px; width: 40px; height: 40px; border-radius: 10px; background: var(--color-soft-blush); color: var(--color-primary); display: flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a { display: flex; padding: 12px 10px; border-radius: 10px; background: var(--color-accent); color: var(--color-ink); font-size: 16px; box-shadow: var(--shadow-soft); transition: background-color 180ms ease, transform 180ms ease; }
.mobile-nav a:hover { background: #FFFFFF; transform: translateX(2px); text-decoration: none; }

/* 6) BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius-m); border: 1px solid transparent; font-weight: 700; font-size: 16px; letter-spacing: 0.2px; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; box-shadow: var(--shadow-soft); }
.btn.primary { background: var(--color-primary); color: #FFFFFF; }
.btn.primary:hover { background: #0B4876; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn.secondary { background: #E7F7EF; color: #1C7E4F; border-color: rgba(46,204,113,0.4); }
.btn.secondary:hover { background: #D9F3E7; border-color: rgba(46,204,113,0.6); transform: translateY(-1px); box-shadow: var(--shadow-hover); text-decoration: none; }

/* 7) TEXT BLOCKS & CARDS */
.text-section { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #FFFFFF; color: #1E2C38; border: 1px solid #E8EEF5; border-radius: var(--radius-m); box-shadow: var(--shadow-soft); }
.testimonial-card p { margin: 0; }
.testimonial-card strong { color: var(--color-primary); }

.card { background: #FFFFFF; border-radius: var(--radius-m); box-shadow: var(--shadow-soft); padding: 20px; margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* Lists inside soft containers */
.text-section ul li, .text-section ol li { margin-bottom: 8px; }

/* 8) FOOTER */
footer { background: #FFFFFF; border-top: 1px solid #E8EEF5; }
footer section > .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { flex-direction: column; gap: 16px; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer nav h3 { font-size: 16px; color: var(--color-ink); margin-bottom: 6px; }
footer a { color: var(--color-ink); }
footer a:hover { color: var(--color-primary); text-decoration: none; }
footer .text-section img { display: inline-flex; vertical-align: middle; margin-right: 6px; }
footer .content-wrapper:last-child { align-items: center; }

/* 9) UTILITIES & STRUCTURAL FLEX (MANDATORY PATTERNS) */
.section { margin-bottom: 60px; padding: 40px 20px; display: flex; flex-direction: column; gap: 20px; background: var(--color-accent); border-radius: var(--radius-l); }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Generic spacing helpers */
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }

/* 10) PAGE-SPECIFIC TOUCHES */
/* Hero headings larger for the first section on each page */
main section:first-of-type h1 { font-size: 36px; }

/* KPI/Badges lines */
[aria-label="Indicateurs clés"], [aria-label="Preuves de confiance"] { background: var(--color-soft-sky); padding: 12px 14px; border-radius: var(--radius-m); box-shadow: var(--shadow-soft); }

/* Pulling attention to CTA final section */
#home-cta-final ~ .container, #sol-cta ~ .container, #pricing-cta ~ .container { }

/* 11) NAV VISIBILITY (RESPONSIVE) */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .main-nav { display: flex; }
  .cta-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  .content-wrapper { gap: 20px; }
}

/* 12) CARDS / GRIDS ON LARGER VIEWPORTS */
@media (min-width: 768px) {
  .card-container > .card, .content-grid > .card { flex: 1 1 calc(50% - 24px); }
}
@media (min-width: 1024px) {
  .card-container > .card, .content-grid > .card { flex: 1 1 calc(33% - 24px); }
}

/* 13) LINKS & MICRO-INTERACTIONS */
a.btn { text-decoration: none; }
a:hover.btn { text-decoration: none; }

/* Decorative pastel separators for longer textual pages */
hr { height: 1px; background: #E8EEF5; border: 0; }

/* 14) TABLES (if any appear in resources/legal pages) */
table { width: 100%; border-collapse: collapse; background: #FFFFFF; border-radius: var(--radius-m); box-shadow: var(--shadow-soft); overflow: hidden; display: flex; flex-direction: column; }
thead, tbody, tr { display: flex; width: 100%; flex-direction: column; }
tr { border-bottom: 1px solid #EDF2F7; }
th, td { padding: 12px 14px; text-align: left; }

/* 15) ACCESSIBILITY BADGES & ICON TEXT ALIGNMENT */
.icon-row { display: flex; align-items: center; gap: 8px; }

/* 16) COOKIE CONSENT BANNER & MODAL */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #FFFFFF; border-top: 1px solid #E8EEF5; box-shadow: 0 -6px 24px rgba(10,61,98,0.08); }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(10,61,98,0.12); font-weight: 700; box-shadow: var(--shadow-soft); transition: transform 160ms ease, background 160ms ease; }
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-accept { background: var(--color-primary); color: #FFF; border-color: transparent; }
.cookie-accept:hover { background: #0B4876; }
.cookie-reject { background: #F9FAFB; color: var(--color-ink); }
.cookie-settings { background: #EAF4FF; color: var(--color-primary); }

/* Cookie preferences modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 210; }
.cookie-modal.open { display: flex; }
.cookie-modal .modal-panel { background: #FFFFFF; width: 100%; max-width: 680px; border-radius: 16px; box-shadow: 0 14px 48px rgba(10,61,98,0.25); display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--color-accent); border-radius: 12px; }
.cookie-category .label { display: flex; flex-direction: column; gap: 4px; }
.cookie-modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Toggle switch */
.cookie-toggle { appearance: none; -webkit-appearance: none; width: 44px; height: 24px; background: #D9E3EE; border-radius: 24px; position: relative; outline: none; transition: background 160ms ease; }
.cookie-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #FFFFFF; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: transform 160ms ease; }
.cookie-toggle:checked { background: var(--color-secondary); }
.cookie-toggle:checked::after { transform: translateX(20px); }
.cookie-toggle[disabled], .cookie-toggle[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* Utility to hide cookie banner after consent */
.cookie-banner.is-hidden { display: none !important; }

/* 17) MOBILE MENU ACCESSIBILITY STYLES */
[aria-hidden="true"] .mobile-nav a { pointer-events: none; }

/* 18) READABILITY FOR TESTIMONIALS & REVIEW SECTIONS */
/* Ensures dark text on light background for good contrast */
#home-testimonials, #case-testimonials { background: #FFFFFF; }
#home-testimonials .testimonial-card, #case-testimonials .testimonial-card { background: #FFFFFF; color: #1E2C38; }

/* 19) MISC PAGE ELEMENTS */
/* Hero contact row icons alignment */
.text-section p img { display: inline-flex; vertical-align: middle; margin-right: 6px; }

/* 20) HOVER STATES FOR NAV IN FOOTER */
footer nav a:hover, footer nav a:focus-visible { color: var(--color-primary); text-decoration: underline; }

/* 21) DESKTOP REFINEMENTS */
@media (min-width: 900px) {
  header .content-wrapper { gap: 16px; }
  .text-image-section { flex-wrap: nowrap; }
}

/* 22) ENSURE MINIMUM SPACING BETWEEN CARDS/SECTIONS */
section + section { border-top: 0; }
.content-wrapper > * + * { margin-top: 0; }

/* 23) OPTIONAL BADGE STYLES */
.badge { display: inline-flex; align-items: center; padding: 6px 10px; gap: 6px; background: var(--color-soft-lilac); color: var(--color-primary); border-radius: 999px; font-size: 14px; }

/* 24) FORMS (newsletter/email links appearance) */
input[type="text"], input[type="email"], textarea, select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #DDE6EE; background: #FFFFFF; box-shadow: var(--shadow-soft); }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus { border-color: var(--color-secondary); box-shadow: 0 0 0 4px rgba(46,204,113,0.15); }

/* 25) PRINT BASICS */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}

/* 26) SOFT PASTEL SECTION HIGHLIGHTS */
/* Add optional gentle backgrounds by ID if desired */
#home-hero, #sol-hero, #cases-hero, #pricing-hero, #res-hero, #about-hero, #contact-hero, #pp-hero, #rgpd-hero, #cookies-hero, #tos-hero, #thanks-hero { scroll-margin-top: 80px; }

/* 27) HORIZONTAL GROUPS (links/inline contact) */
.inline-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* 28) PASTEL CALLOUT BOXES */
.callout-sky { background: var(--color-soft-sky); border-radius: var(--radius-m); padding: 16px; box-shadow: var(--shadow-soft); }
.callout-mint { background: var(--color-soft-mint); border-radius: var(--radius-m); padding: 16px; box-shadow: var(--shadow-soft); }
.callout-blush { background: var(--color-soft-blush); border-radius: var(--radius-m); padding: 16px; box-shadow: var(--shadow-soft); }

/* 29) ENSURE FLEX FOR ALL MAJOR CONTAINERS/WRAPS */
header, main, footer, nav, .text-section, .testimonial-card, .card-container, .content-grid, .feature-item { display: flex; }
main, footer, nav, .text-section, .feature-item { flex-direction: column; }

/* Keep nav bars horizontal when needed (desktop handled in media queries) */
nav.main-nav { flex-direction: row; }

/* 30) PREVENT OVERLAP BY SPACING */
.content-wrapper { padding-top: 4px; padding-bottom: 4px; }
.content-wrapper > .testimonial-card, .content-wrapper > .card, .content-wrapper > .text-section, .content-wrapper > p { margin: 0; }

/* End of stylesheet */
