@import url('fonts.css');
@import url('typography.css');
@import url('sizes.css');
@import url('colors.css');
@import url('templates/home.css');
@import url('templates/offers.css');
@import url('templates/about.css');
@import url('templates/nos-realisations.css');
@import url('templates/realisation.css');
@import url('templates/blog.css');
@import url('templates/contact.css');

* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 2rem;
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #777;
  --color-light: #efefef;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #35C475;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #483EB8;
  --color-code-pink:        #C991F9;
  --font-family-sans: 'Gilroy', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
}
img {
  width: 100%;
}

.body-padding {
  padding: var(--padding);
  max-width: 70rem;
  margin: 0 auto;
}

.body-centered {
  text-align: center;
}

a {
  color: currentColor;
  text-decoration: none;
  cursor: pointer;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

.header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: var(--padding);
}

.logo {
  position: static;
  padding: 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  max-width: 130px;
}

/* Cacher le CTA mobile (dans le menu) par défaut sur desktop/tablette */
.header-cta-mobile { display: none !important; }

.header .btn-outline-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  border-radius: 9999px;
  border: 3px solid var(--color-code-green);
  color: var(--color-code-green);
  background: transparent;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: box-shadow .25s ease, background .25s ease, color .25s ease;
}

.header .btn-outline-green:hover {
  box-shadow: 0 6px 20px rgba(53,196,117,.25);
  color: var(--color-white);
  background: var(--color-code-green);
}


.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 1001;
  margin-left: auto;
}

.hamburger {
  display: flex;
  flex-direction: column;
  width: 24px;
  height: 18px;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.menu { display: contents; }
.menu-center { display:flex; justify-content:center; align-items:center; gap:2rem; }
.header-left { display:flex; align-items:center; gap:.5rem; }
.menu-cta { display:flex; align-items:center; justify-content:flex-end; }

.header-cta { max-width: fit-content !important; }
.header-cta-mobile { max-width: fit-content !important; }

@media screen and (max-width: 768px) {
  .header { grid-template-columns: 1fr; row-gap: .5rem; }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .header .btn-outline-green {
    padding: .55rem 1rem;
    font-size: .85rem;
    border-width: 3px;
  }
  .menu {
    display: none;
  }

  .menu.is-open {
    display: block;
  }
  .menu.is-open > div { width: 100%; }
  .menu.is-open .menu-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  .menu.is-open .menu-cta { display:flex; justify-content:center; }
  .menu.is-open .header-cta-mobile {
    display: inline-flex !important;
    margin-top: 2rem;
    width: 100%;
    justify-content: center;
  }
}

/* Casse intermédiaire: si l'espace est réduit, on masque le CTA header et on ne l'affiche que dans le menu ouvert */
@media screen and (max-width: 1024px) {
  .header { flex-wrap: wrap; }
  .header-cta { display: none !important; }
}
.menu a {
  padding: 1rem;
  display: block;
  white-space: nowrap;
}
.menu a[aria-current] {
  color: var(--color-text-green);
  font-weight: 700;
}

/* Dropdown for pages with children */
.menu .has-dropdown { position: relative; }
.menu .has-dropdown > a { position: relative; }
.menu .has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background: var(--color-background);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  min-width: 14rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: .25rem 0;
  z-index: 1002;
}
.menu .has-dropdown:focus-within .dropdown,
.menu .has-dropdown:hover .dropdown { display: block; }
.menu .has-dropdown .dropdown a { display: block; padding: .75rem 1rem; white-space: nowrap; font-size: .95rem; }
.menu .has-dropdown .dropdown a:hover { background: var(--color-light); }

.social {
  display: flex;
  padding: 0 .5rem;
  flex-shrink: 0;
}
.social a {
  padding: 1rem .5rem;
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

.text {
  line-height: 1.5em;
}
.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1,
.intro {
  font-size: 2rem;
  line-height: 1.25em;
}
.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
}
.text h3,
.h3 {
  font-weight: 600;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

.intro {
  max-width: 40rem;
}
.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.footer {
  padding: 3rem 0 6rem;
  line-height: 1.5em;
}

.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer ul,

.footer a:hover {
  color: var(--color-text-purple);
}

.footer ul {
  list-style: none;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.footer-social-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-social-link:hover {
  transform: scale(1.2);
}

.footer-social-link .social-icon {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  display: block;
}

.end-footer-container {
  grid-column: 1 / -1;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.end-footer-logo {
  max-width: 30px;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
}

.end-footer-container p {
  color: var(--color-white);
}


.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}

.padding-section {
  padding-top: 4rem;
}

.padding-section-small {
  padding-top: 2rem;
}

/* Responsive navbar */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    order: 3;
    margin-left: auto;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-background);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 2rem;
    display: none;
  }

  .menu.is-open {
    display: flex;
    transform: translateX(0);
  }

  /* Mobile: show children directly smaller under parent */
  .menu .has-dropdown .dropdown {
    position: static;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 .5rem;
  }
  .menu .has-dropdown .dropdown a { font-size: .9rem; opacity: .9; }

  .menu a {
    font-size: 1.5rem;
    text-align: center;
  }

  .social {
    margin-top: 2rem;
  }

  .padding-section {
    padding-top: 2rem;
  }

  .footer .grid {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media screen and (min-width: 60rem) {
  .body-padding {
    --padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }

}

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt header {
  margin-bottom: 1.5rem;
}
.note-excerpt figure {
  margin-bottom: .5rem;
}
.note-excerpt-title {
  font-weight: 600;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}

.purple-section {
  background-color: var(--color-code-purple);
  position: relative;
  background-image: url('/assets/images/background-vectors/vector-purple.svg');
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
}

.black-section {
  background-color: var(--color-black);
  position: relative;
  background-image: url('/assets/images/background-vectors/vector-black.svg');
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
}

.green-section {
  background-color: var(--color-code-green);
  position: relative;
  background-image: url('/assets/images/background-vectors/vector-green-full.svg');
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
}

.pink-section {
  background-color: var(--color-code-pink);
  position: relative;
  background-image: url('/assets/images/background-vectors/vector-black.svg');
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
}


.background-white-with-green-vector {
  background-image: url('/assets/images/background-vectors/vector-green.svg');
  background-repeat: repeat;
  background-size: cover;
  background-position: center;
}

.spot {
  width: 50px;
  height: auto;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.text-green {
  color: var(--color-code-green);
}

.text-white {
  color: var(--color-white);
}

.transition-spot {
  position: relative;
  z-index: 10;
  text-align: center;
  margin: -40px 0;
}

.transition-spot img {
  width: 60px;
  height: auto;
  object-fit: contain;
}

.hover-animation {
  transition: transform 0.3s ease;
}

.hover-animation:hover {
  transform: scale(1.05);
}

.hover-animation-rotate {
  transition: transform 0.3s ease;
}

.hover-animation-rotate:hover {
  transform: rotate(3deg) scale(1.05);
}

.page-subtitle {
  letter-spacing: .08em;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===== BOUTONS GLOBAUX ===== */
.btn-purple {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-code-purple);
  color: var(--color-white);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--color-code-purple);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-purple::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-purple:hover::before {
  left: 0;
}

.btn-purple:hover {
  color: var(--color-code-purple);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(72, 62, 184, 0.3);
}

.btn-black {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--color-black);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-black::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-black:hover::before {
  left: 0;
}

.btn-black:hover {
  color: var(--color-black);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Simple Page Content
   ============================================ */
.simple-page-content {
  max-width: 52rem;
  margin: 0 auto;
  line-height: 1.8;
  text-align: left;
}

.simple-page-content h1,
.simple-page-content h2,
.simple-page-content h3,
.simple-page-content h4,
.simple-page-content h5,
.simple-page-content h6 {
  margin: 2rem 0 1rem 0;
  color: var(--color-code-purple);
}

.simple-page-content h1 {
  font-size: 2rem;
}

.simple-page-content h2 {
  font-size: 1.75rem;
}

.simple-page-content h3 {
  font-size: 1.5rem;
  color: var(--color-code-green);
}

.simple-page-content p {
  margin: 1rem 0;
}

.simple-page-content ul,
.simple-page-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.simple-page-content li {
  margin-bottom: 0.5rem;
}

.simple-page-content strong {
  font-weight: 600;
  color: var(--color-code-purple);
}

.simple-page-content a {
  color: var(--color-code-green);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.simple-page-content a:hover {
  color: var(--color-code-purple);
}
