/* ---- 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #EEEEEE;
  color: #1A2745;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}
img {
  max-width: 100%;
  display: block;
}
.button, button, input[type="submit"], .btn-primary, .btn-secondary {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: #1A2745;
  letter-spacing: -1px;
}
:root {
  --color-primary: #1A2745;
  --color-secondary: #EEEEEE;
  --color-accent: #F2B10F;
  --color-electric1: #00CFFF;
  --color-electric2: #FF3366;
  --color-electric3: #54E346;
  --color-black: #121212;
  --color-white: #FFFFFF;
}

/* ---- GENERAL LAYOUT CONTAINERS ---- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(26, 39, 69, 0.09), 0 1.5px 4px rgba(242,177,15,0.03);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- CARDS & FLEX LAYOUTS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-secondary);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(26,39,69,.13);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.22s cubic-bezier(.4,2,.6,.96), box-shadow 0.19s;
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(0,207,255,0.12), 0 1px 4px rgba(242,177,15,0.10);
  z-index: 3;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px 20px;
}

.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) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 5px 28px rgba(26,39,69,0.10), 0 1px 4px rgba(242,49,102,0.16);
  margin-bottom: 20px;
  position: relative;
  flex-direction: column;
  font-size: 1rem;
}
.testimonial-card blockquote {
  color: var(--color-primary);
  font-size: 1.18rem;
  font-style: italic;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  margin-bottom: 10px;
}
.testimonial-card cite {
  color: var(--color-black);
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.testimonial-card div {
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0px;
  letter-spacing: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- TYPOGRAPHY ---- */
h1 {
  font-size: 2.8rem;
  line-height: 1.13;
  color: var(--color-primary);
  margin-bottom: 10px;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  color: var(--color-electric2);
  margin-bottom: 4px;
}
h3 {
  font-size: 1.44rem;
  color: var(--color-primary);
}
p, li, blockquote, cite {
  font-size: 1.05rem;
  color: var(--color-primary);
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  line-height: 1.55;
  font-size: 1rem;
}
ul li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

strong {
  color: var(--color-electric1);
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  p, li {
    font-size: 0.96rem;
  }
}

/* ---- BUTTONS & LINKS ---- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-family: 'Roboto Slab', serif;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 999px;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background .17s, color .18s, box-shadow 0.17s, transform 0.13s;
  box-shadow: 0 2px 12px rgba(0,207,255,0.13);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 18px rgba(242,177,15,0.16), 0 0.5px 2px rgba(26,39,69,0.10);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-electric1);
  color: var(--color-white);
  transform: scale(1.05);
  box-shadow: 0 6px 24px 0 rgba(0,207,255,0.29), 0 2px 6px 0 rgba(26,39,69,0.11);
  outline: none;
}
.btn-secondary {
  background: var(--color-electric2);
  color: var(--color-white);
  box-shadow: 0 2px 12px rgba(255,51,102,0.18);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-electric3);
  color: var(--color-black);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 16px 0 rgba(84,227,70,0.19);
  outline: none;
}
nav a {
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color .14s, background .14s;
  color: var(--color-primary);
}
nav a.btn-primary {
  margin-left: 10px;
  font-size: 1rem;
}
nav a:hover, nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  outline: none;
}

/* ---- HEADER / NAVIGATION ---- */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 4px 24px rgba(0,207,255,0.07);
  position: sticky;
  top: 0;
  z-index: 1060;
  padding: 0;
  min-height: 60px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
header nav a img {
  width: 128px;
  height: auto;
  margin-right: 18px;
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-electric2);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(255,51,102,0.13);
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 15px;
  z-index: 1215;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-electric1);
  color: var(--color-primary);
  outline: none;
  transform: scale(1.05);
}
@media (max-width: 1100px) {
  header nav {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
  header nav a img {
    width: 100px;
    margin-right: 6px;
  }
}
@media (max-width: 950px) {
  header nav {
    flex-wrap: wrap;
    gap: 3px;
    font-size: .95rem;
    padding-right: 40px;
  }
}
@media (max-width: 860px) {
  header nav a {
    font-size: .95rem;
    padding: 7px 10px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU STYLES */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.83,.02,.35,1.48);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 2000;
  padding-top: 24px;
  padding-bottom: 40px;
}
.mobile-menu.active {
  transform: translateX(0);
  box-shadow: 0 10px 32px rgba(26,39,69,0.19);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-electric2);
  color: var(--color-white);
  font-size: 2.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 10px 22px 16px 0;
  border: none;
  box-shadow: 0 .5px 3px rgba(255,51,102,0.10);
  cursor: pointer;
  transition: background .16s, color .15s, transform .13s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-accent);
  color: var(--color-black);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10vh;
  align-items: flex-start;
  width: 90vw;
  margin-left: 22px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  color: var(--color-white);
  font-size: 1.18rem;
  font-weight: 700;
  padding: 16px 0 12px 6px;
  border-radius: 8px;
  transition: background 0.16s,color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-electric1);
  color: var(--color-primary);
  outline: none;
}

/* ---- MAIN CONTENT ---- */
main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 60vh;
  margin-bottom: 30px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0px;
  background: transparent;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ---- FOOTER ---- */
footer {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 36px 0 18px 0;
  position: relative;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  row-gap: 32px;
  column-gap: 28px;
  flex-direction: row;
}
.footer-content img {
  width: 120px;
  height: auto;
  margin-right: 12px;
  margin-bottom: 12px;
}
.footer-content nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-content nav a {
  color: var(--color-white);
  font-size: 1rem;
  padding: 6px 0;
  border-radius: 6px;
  transition: color 0.14s, background 0.13s;
}
.footer-content nav a:hover,
.footer-content nav a:focus {
  background: var(--color-electric2);
  color: var(--color-white);
  outline: none;
}
.footer-content > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-content p, .footer-content cite {
  font-size: .98rem;
  color: var(--color-secondary);
}
.footer-content a img {
  width: 32px;
  height: 32px;
  margin-right: 6px;
  margin-bottom: 2px;
  transition: filter 0.13s, transform 0.14s;
}
.footer-content a img:hover {
  filter: brightness(1.35) drop-shadow(0 2px 8px #FF3366);
  transform: scale(1.13) rotate(-5deg);
}
.legal {
  margin-top: 8px;
  font-size: .90rem;
  color: var(--color-secondary);
  opacity: 0.75;
  display: flex;
  gap: 10px;
}
.legal a {
  color: var(--color-electric1);
  text-decoration: underline;
  transition: color 0.13s;
  font-size: .93rem;
}
.legal a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  footer {
    padding: 30px 0 16px 0;
  }
  .footer-content img {
    width: 100px;
  }
}

/* ---- COOKIES CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-electric2);
  color: var(--color-white);
  box-shadow: 0 -3px 24px rgba(26,39,69,0.11);
  z-index: 2040;
  padding: 20px 20px 16px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform .3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-banner-message {
  font-size: 1.01rem;
  color: var(--color-white);
  max-width: 680px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner .btn-accept {
  background: var(--color-electric3);
  color: var(--color-black);
}
.cookie-banner .btn-reject {
  background: var(--color-electric1);
  color: var(--color-primary);
}
.cookie-banner .btn-settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-banner .btn-accept,
.cookie-banner .btn-reject,
.cookie-banner .btn-settings {
  font-size: 1rem;
  font-family: 'Roboto Slab',serif;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: background .14s, color .13s, transform .10s;
}
.cookie-banner .btn-accept:hover,
.cookie-banner .btn-accept:focus {
  background: var(--color-accent);
  color: var(--color-black);
  transform: scale(1.05);
}
.cookie-banner .btn-reject:hover,
.cookie-banner .btn-reject:focus {
  background: var(--color-electric2);
  color: var(--color-white);
  transform: scale(1.05);
}
.cookie-banner .btn-settings:hover,
.cookie-banner .btn-settings:focus {
  background: var(--color-electric1);
  color: var(--color-primary);
  transform: scale(1.05);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 16px 8px 14px 8px;
  }
  .cookie-banner-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 9px;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,39,69,0.79);
  z-index: 3080;
  align-items: center;
  justify-content: center;
  transition: opacity .25s;
  opacity: 0;
}
.cookie-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: var(--color-white);
  border-radius: 20px;
  padding: 32px 28px 20px 28px;
  box-shadow: 0 8px 40px rgba(0,207,255,0.15), 0 1px 8px rgba(242,177,15,0.08);
  max-width: 410px;
  width: 90vw;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 3122;
  animation: cookiePopUp .35s cubic-bezier(.83,.02,.35,1.48);
}
@keyframes cookiePopUp {
  0% {transform: translateY(60px) scale(0.95); opacity:0;}
  100% {transform: translateY(0) scale(1); opacity:1;}
}
.cookie-modal h3 {
  color: var(--color-electric2);
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 12px;
  gap: 15px;
}
.cookie-category label {
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1rem;
}
.cookie-category .toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  width: 44px;
  height: 24px;
  background: var(--color-secondary);
  border-radius: 12px;
  transition: background 0.26s;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: var(--color-electric1);
  transition: transform 0.22s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--color-electric3);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background: var(--color-electric2);
}
.cookie-modal .btn-group {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 14px;
  align-items: flex-end;
  justify-content: flex-end;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary {
  margin: 0;
}

/* ---- RESPONSIVE ADJUSTMENTS ---- */
@media (max-width: 550px) {
  .cookie-modal {
    padding: 18px 9px 16px 9px;
    max-width: 99vw;
  }
}

/* ---- ICONS & IMAGES ---- */
img[alt^="Icone"],
img[alt^="téléphone"],
img[alt^="email"],
img[alt^="adresse"],
img[alt^="horaires"] {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

/* ---- UTILITIES & MICRO-INTERACTIONS ---- */
.fade-in {
  animation: fadeIn 0.7s ease-out;
}
@keyframes fadeIn {
  0% {opacity:0;transform: translateY(15px);}
  100%{opacity:1;transform: none;}
}

.shadow-pop {
  animation: shadowPop 0.37s cubic-bezier(.4,2,.6,.96);
}
@keyframes shadowPop {
  0% { box-shadow: none; }
  70%{ box-shadow: 0 16px 64px #FF336667;} 
  100%{ box-shadow: 0 6px 24px 0 rgba(0,207,255,0.12), 0 1px 4px rgba(242,177,15,0.10); }
}

/* ---- SPACING HELPERS ---- */
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-32 { margin-top: 32px !important; }
.gap-16 { gap: 16px !important; }

/* ---- COLORS & VIBRANCE ---- */
.vibrant-bg-one {
  background: var(--color-electric1);
  color: var(--color-primary);
}
.vibrant-bg-two {
  background: var(--color-electric2);
  color: var(--color-white);
}
.vibrant-bg-three {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ---- FORM ELEMENTS (for DEVIS pages) ---- */
input, textarea, select {
  outline: none;
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--color-electric1);
  margin-bottom: 16px;
  background: var(--color-white);
  transition: border-color 0.15s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-electric2);
  box-shadow: 0 2px 7px rgba(255,51,102,0.13);
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-electric1);
  border-radius: 8px;
}

/* ---- Accessibility: Focus States ---- */
a:focus, button:focus, input:focus {
  outline: 2.5px solid var(--color-electric2);
  outline-offset: 1.5px;
}

/* ---- PRINT (clean output) ---- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {display: none !important;}
}
