/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Poppins", sans-serif;
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Poppins", sans-serif;
  
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #f0eee9;        /* gris clair : Background color for the entire website, including individual sections*/
  --default-color: #1A1A2E;           /* bleu foncé pour textes : Default color used for the majority of the text content across the entire website */
  --heading-color: #1A1A2E;           /* idem titres : Color for headings, subheadings and title throughout the website*/
  --accent-color: #007C91;            /* bleu pétrole, couleur principale : Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff;           /*The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff;      
  --yellow-accent: #FFC300;  /* blanc pour texte sur fond coloré : Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors.*/
}


/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #1A1A2E;/* The default color of the main navmenu links */
  --nav-hover-color: #00BFA6;          /* vert d’eau pour hover : Applied to main navmenu links when they are hovered over or active*/
  --nav-mobile-background-color: #f0eee9;/* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff;/* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #1A1A2E;/* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #00BFA6;/* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}


/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #eef0f2;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: 	#1A1A2E;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #4f6171;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}








@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }
    .header .navmenu {
    order: 3;
  }
}
.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 40px 0;
  scroll-margin-top: 100px;
  overflow: clip;

}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 16px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 16px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  background-color: color-mix(in srgb, var(--background-color), white 5%);
  padding-top: 50px;
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--default-font);
}

.footer h4 {
  font-size: 16px;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.footer h4::after {
  content: "";
  position: absolute;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-color);
  bottom: 0;
  left: 0;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--yellow-accent);
}



.footer .copyright {
  padding: 30px 0;
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 5px;
  font-size: 13px;
}

.footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--contrast-color);
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 4px;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: var(--yellow-accent);
  color: var(--background-color);
  text-decoration: none;
}

/* Footer copyright */
.footer-copyright {
  color: var(--default-color);
}

.footer-copyright .footer-brand {
  color: var(--default-color);
}

.footer-copyright .footer-year {
  color: var(--default-color);
  font-weight: 400;
}

.footer-copyright .credits {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}


/*--------------------------------------------------------------
# Index - Hero Section
--------------------------------------------------------------*/

.hero h1 {
   margin: 0 0 12px 0;
    font-weight: 400;
  color: #ffffff;
    font-size: 2.1rem;        /* au lieu de 2.8rem */
  margin-bottom: 10px;
  line-height: 1.15;
}

.hero p {
   color: rgba(240, 238, 233, 0.92);
  margin: 0 0 30px 0;
    font-weight: 400;
   font-size: 1.05rem;       /* au lieu de 1.2rem */
  margin-bottom: 18px;      /* au lieu de 30px */
  max-width: 62ch;          /* lecture propre */
  line-height: 1.6;
  
}

.hero{
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
    /* Fond principal : dégradé Afrique data */
  background:
    radial-gradient(circle at top left, rgba(255, 195, 0, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 191, 166, 0.18), transparent 55%),
    linear-gradient(135deg, #1A1A2E 0%, #007C91 55%, #00BFA6 100%);
  color: var(--contrast-color);
  overflow: hidden;
  min-height: auto;
  padding: 56px 0;          /* au lieu de 100px */
  justify-content: flex-start;
  text-align: left;
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    );
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.28;            /* au lieu de 0.5 */
}





.hero-subtitle{
  font-size: 1.05rem;
  margin-bottom: 22px;
  color: rgba(240, 238, 233, 0.92);
}


/* Quelques “nodes” data discrets */
.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  top: 10%;
  right: 12%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 18px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
  pointer-events: none;
  display: none;
}

/* Contenu du hero au-dessus du décor */
.hero .container {
  position: relative;
  z-index: 1;
}


/* <= 991px (tablette paysage / petit laptop) */
@media (max-width: 991px){
  .hero{
    padding: 50px 0;
  }
  .hero h1{
    font-size: 2rem;
    line-height: 1.3;
  }
  .hero p{
    font-size: 1rem;
    line-height: 1.55;
  }
}

/* <= 768px (tablette portrait / gros mobile) */
@media (max-width: 768px){
  .hero{
    padding: 44px 0;
  }
  .hero h1{
    font-size: 1.8rem;
  }
}

/* <= 575px (mobile) */
@media (max-width: 575px){
  .hero{
    padding: 40px 0;
  }
  .hero h1{
    font-size: 1.7rem;
  }
  .hero p{
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 15px;
}

.section-title p {
  margin-bottom: 0;
  }


/* ===========================
   Index - Projets (cartes sans lien + statuts)
   =========================== */
.project-card {
  cursor: default;
}

.project-card:hover {
  transform: translateY(-6px); /* conserve ton hover existant */
}

.section-intro{
  max-width: 70ch;
  margin: 0 auto 32px auto;
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

/* Projects section */
.projects {
  padding: 48px 0;
}

.projects-intro {
  max-width: 70ch;
  margin: 0 auto 36px auto;
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  text-align: center;
}

/* Grid */
.projects-grid {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); */
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
  }

/* Card */
.project-card {
  text-decoration: none;
  color: inherit;
}

.project-card article {
  height: 100%;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 18px 18px 20px;
}

.project-title {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.project-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/* Hover */
.project-card:hover article {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 55%);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* Mobile */
@media (max-width: 640px) {
  .projects-intro {
    text-align: left;
  }
}

:root{
  --solar-yellow: var(--yellow-accent, #FFC300);
  --ink: var(--default-color, #1A1A2E);
  --accent: var(--accent-color, #007C91);
}

/* Section */
.projects{
  padding: 52px 0;
}

.projects-intro{
  max-width: 72ch;
  margin: 0 auto 34px auto;
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink), transparent 28%);
  text-align: center;
}



/* Card link */
.project-card{
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Hover: plus “envie de cliquer” */
.project-card:hover article{
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--solar-yellow), transparent 45%);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
}

.project-card:hover .project-title::after{
  width: 72px; /* petit effet “vivant” */
}

.project-card:hover .project-cta span[aria-hidden="true"]{
  transform: translateX(4px);
}

.project-cta span[aria-hidden="true"]{
  display: inline-block;
  transition: transform .2s ease;
}

/* Focus clavier (important) */
.project-card:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--solar-yellow), transparent 15%);
  outline-offset: 4px;
  border-radius: 18px;
}


/* Card shell */
.project-card article{
  height: 100%;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink), transparent 88%);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  will-change: transform;
}

/* Media */
.project-media{
  position: relative;
}

.project-media img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* Yellow badge (tape mais maîtrisé) */
.project-badge{
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .2px;
  background: var(--solar-yellow);
  color: #111;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

/* Content */
.project-content{
  padding: 18px 18px 20px;
}

.project-title{
  font-size: 1.22rem;
  margin: 0 0 10px;
  position: relative;
  padding-bottom: 10px;
}

/* Yellow accent underline */
.project-title::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 99px;
  background: var(--solar-yellow);
  opacity: .9;
  transition: width .2s ease;
}

.project-desc{
  margin: 0 0 14px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink), transparent 18%);
}

/* Micro CTA */
.project-cta{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--accent), transparent 0%);
  opacity: .95;
}

/* Mobile */
@media (max-width: 640px){
  .projects-intro{ text-align: left; }
  .project-media img{ height: 190px; }
}

.project-card{ cursor: pointer; }

/* CTA Exchange — bold but clean */
:root{
  --solar-yellow: var(--yellow-accent, #FFC300);
  --ink: var(--default-color, #1A1A2E);
  --accent: var(--accent-color, #007C91);
}

.cta-exchange{
  padding: 70px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 420px at 15% -20%, color-mix(in srgb, var(--solar-yellow), transparent 70%), transparent 60%),
    radial-gradient(900px 380px at 90% 0%, color-mix(in srgb, var(--accent), transparent 78%), transparent 58%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--solar-yellow), transparent 94%));
  border-top: 1px solid color-mix(in srgb, var(--ink), transparent 90%);
  border-bottom: 1px solid color-mix(in srgb, var(--ink), transparent 90%);
}

/* Subtle "data" pattern (pure CSS, no image) */
.cta-exchange::before{
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 12px 12px, color-mix(in srgb, var(--accent), transparent 78%) 2px, transparent 2.5px) 0 0 / 34px 34px;
  opacity: 0.28;
  pointer-events: none;
  mask-image: radial-gradient(closest-side, #000 55%, transparent 90%);
}

:root{
  --solar-yellow: var(--yellow-accent, #FFC300);
  --ink: var(--default-color, #1A1A2E);
  --accent: var(--accent-color, #007C91);
}

/* Fond + pattern subtil */
.cta-exchange{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 15% -15%, color-mix(in srgb, var(--solar-yellow), transparent 70%), transparent 60%),
    radial-gradient(800px 360px at 95% 0%, color-mix(in srgb, var(--accent), transparent 82%), transparent 58%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--solar-yellow), transparent 94%));
  border-top: 1px solid color-mix(in srgb, var(--ink), transparent 90%);
  border-bottom: 1px solid color-mix(in srgb, var(--ink), transparent 90%);
}

.cta-exchange::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 12px 12px, color-mix(in srgb, var(--accent), transparent 78%) 2px, transparent 2.5px) 0 0 / 34px 34px;
  opacity:.28;
  pointer-events:none;
  mask-image: radial-gradient(closest-side, #000 55%, transparent 90%);
}

/* Boutons Bootstrap custom */
.btn-solar{
  background: var(--solar-yellow);
  color:#111;
  font-weight:800;
  border: 1px solid color-mix(in srgb, #000, transparent 88%);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.btn-solar:hover{
  color:#111;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}

.btn-outline-solar{
  border-color: color-mix(in srgb, var(--ink), transparent 80%);
  color: color-mix(in srgb, var(--ink), transparent 10%);
  font-weight:800;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
}

.btn-outline-solar:hover{
  border-color: color-mix(in srgb, var(--solar-yellow), transparent 45%);
  box-shadow: 0 16px 38px rgba(0,0,0,.10);
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Burger + X en noir */
.mobile-nav-toggle {
  color: #1A1A2E; /* noir / bleu foncé PyCode */
}

/* Même quand le menu est ouvert */
.mobile-nav-active .mobile-nav-toggle {
  color: #1A1A2E;
}


/* Bouton institutionnel – cta */
.btn.btn-brand {
  background-color: var(--accent-color); /* même bleu pétrole */
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px; /* même gabarit que Contribuer */
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.2s ease;
}

.btn.btn-brand:hover,
.btn.btn-brand:focus {
  background-color: color-mix(in srgb, var(--accent-color), #000 12%);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 124, 145, 0.35);
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 767px) {

  .btn.btn-brand {
    width: 100%;
  }
}
