.user-is-tabbing a:focus,
.user-is-tabbing button:focus{
  outline: 3px solid var(--color-primary);
}

/* ================= RESET ================= */
*, *::before, *::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
img{
  max-width: 100%;
  display: block;
}
ul{
  list-style: none;
  padding: 0!important;
}
a{
  text-decoration: none;
  color: inherit;
}
::selection{
  color: white;
  background-color: var(--color-primary);
}
/* ================= VARIABLES ================= */
:root{
  --color-primary: #079992;
  --color-primary-dark: #16897E;
  --color-secondary: #ff7300;
  --color-dark: #1E1E1E;
  --color-gray: #6B7280;
  --color-light: #F8F9FA;
  --color-white: #FFFFFF;
  --color-crema: #f4f1ec;

  --font-title: 'Lora', sans-serif;
  --font-text: 'Nunito', sans-serif;

  --container-width: 1280px;
  --radius: 12px;
  --radius-sm: 8px;

  --transition-fast: 0.25s ease;
  --transition: 0.4s ease;
}
/* ================= BASE ================= */
body{
  font-family: var(--font-text)!important;
  color: var(--color-dark);
  line-height: 1.6;
  background-color: var(--color-white);
}
h1, h2, h3{
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
}
h1{
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}
h2{
  color: var(--color-primary);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
h3{
  font-size: 1.3rem;
}
p{
  color: var(--color-dark);
  margin-bottom: 0;
}

.container{
  /* max-width: var(--container-width); */
  margin: 0 auto;
  padding: 0 1.25rem;
}
section{
  padding: 4.5rem 0;
}
.section-header{
  margin-bottom: 3rem;
  text-align: center;
}
/* ================= BUTTONS ================= */
.btn{
  display: inline-block;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.btn-green{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  background: var(--color-primary);
  color: #fff;
  border: 1px solid #079992;
  border-radius: 12px;
  font-weight: 600;
  transition: color .45s ease;
  z-index: 1;
}
.btn-green::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color-crema);
  transition: width .5s ease;
  z-index: -1;
}
.btn-green:hover::before{
  width: 100%;
}
.btn-green:hover{
  color: var(--color-primary);
}
.btn-crema{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  background: var(--color-crema);
  color: var(--color-primary);
  border: 1px solid #079992;
  border-radius: 12px;
  font-weight: 600;
  transition: color .45s ease;
  z-index: 1;
}
.btn-crema::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color-primary);
  transition: width .5s ease;
  z-index: -1;
}
.btn-crema:hover::before{
  width: 100%;
}
.btn-crema:hover{
  color: var(--color-crema);
}
.fa-hand-point-right:before{
  padding-right: 0.5rem;
}
.btn-lg{
  max-width: 570px;
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.05rem;
}
/* =========================================================
   ÉTUDE DE POTENTIEL D'AUTOCONSOMMATION
   ========================================================= */

.study-potential {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background-image: url('/images/business/image-bierville.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}


/* ---------------------------------------------------------
   CALQUE DE FLOU
   --------------------------------------------------------- */

.study-potential__background {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


/* ---------------------------------------------------------
   CONTENEUR
   --------------------------------------------------------- */

.study-potential__container {
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   TITRE
   --------------------------------------------------------- */

.study-potential__header {
    width: 100%;
    margin: 0 0 2rem;
}

.study-potential__title {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    padding: 1rem 1.5rem;

    color: #ffffff;
    background-color: var(--color-primary);

    border-radius: var(--radius);

    text-align: center;
    text-shadow: 2px 1px 0 #000000;

    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
    line-height: 1.25;

    overflow-wrap: break-word;
}


/* ---------------------------------------------------------
   BLOC DES STATISTIQUES
   --------------------------------------------------------- */

.study-potential__stats {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    align-items: stretch;

    background: rgba(253, 253, 253, 0.22);

    border-radius: var(--radius);

    overflow: hidden;
}


/* ---------------------------------------------------------
   STATISTIQUE
   --------------------------------------------------------- */

.study-potential__stat {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 1.5rem 1.25rem;

    text-align: center;
}


/* Séparation entre les statistiques sur desktop */

.study-potential__stat + .study-potential__stat {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}


/* ---------------------------------------------------------
   VALEUR PRINCIPALE
   --------------------------------------------------------- */

.study-potential__value {
    margin: 0;

    color: var(--color-dark);

    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.2;

    text-align: center;

    overflow-wrap: break-word;
    word-break: normal;
}

.study-potential__value strong {
    font-weight: 700;
}


/* ---------------------------------------------------------
   DESCRIPTION
   --------------------------------------------------------- */

.study-potential__description {
    max-width: 260px;

    margin: 0.5rem 0 0;

    color: var(--color-dark);

    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.45;

    text-align: center;
}


/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.study-potential__cta {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 2rem;
}

.study-potential__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;

    max-width: 100%;

    text-align: center;
}

.study-potential__button i {
    flex-shrink: 0;
}


/* =========================================================
   TABLETTE LARGE
   ========================================================= */

@media (max-width: 1100px) {

    .study-potential__title {
        max-width: 950px;
    }

    .study-potential__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .study-potential__stat {
        padding: 1.5rem 1rem;
    }

    /* On recrée les séparations pour la grille 2 × 2 */

    .study-potential__stat + .study-potential__stat {
        border-left: none;
    }

    .study-potential__stat:nth-child(2),
    .study-potential__stat:nth-child(4) {
        border-left: 1px solid rgba(0, 0, 0, 0.08);
    }

    .study-potential__stat:nth-child(n + 3) {
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
}


/* =========================================================
   TABLETTE / PETIT ÉCRAN
   ========================================================= */

@media (max-width: 768px) {

    .study-potential {
        background-position: center center;
    }

    .study-potential__header {
        margin-bottom: 1.5rem;
    }

    .study-potential__title {
        padding: 0.9rem 1rem;

        font-size: clamp(1.3rem, 4vw, 1.8rem);
        line-height: 1.3;
    }

    .study-potential__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .study-potential__stat {
        padding: 1.25rem 0.85rem;
    }

    .study-potential__value {
        font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    }

    .study-potential__description {
        font-size: 0.9rem;
    }

    .study-potential__cta {
        margin-top: 1.5rem;
    }

    .study-potential__button {
        width: auto;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .study-potential {
        background-position: center center;
    }

    .study-potential__header {
        margin-bottom: 1.25rem;
    }

    .study-potential__title {
        padding: 0.85rem 0.9rem;

        border-radius: var(--radius-sm);

        font-size: 1.25rem;
        line-height: 1.3;
    }

    .study-potential__stats {
        grid-template-columns: 1fr;

        border-radius: var(--radius-sm);
    }

    .study-potential__stat {
        padding: 1.25rem 1rem;
    }

    /* Suppression de toutes les anciennes séparations */

    .study-potential__stat:nth-child(2),
    .study-potential__stat:nth-child(4) {
        border-left: none;
    }

    .study-potential__stat:nth-child(n + 3) {
        border-top: none;
    }

    /* Une seule séparation horizontale entre les éléments */

    .study-potential__stat + .study-potential__stat {
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .study-potential__value {
        font-size: 1.4rem;
    }

    .study-potential__description {
        max-width: 320px;

        margin-top: 0.4rem;

        font-size: 0.9rem;
        line-height: 1.4;
    }

    .study-potential__cta {
        width: 100%;
        margin-top: 1.25rem;
    }

    .study-potential__button {
        width: 100%;
        max-width: 100%;

        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 380px) {

    .study-potential__title {
        font-size: 1.15rem;
    }

    .study-potential__stat {
        padding: 1.1rem 0.75rem;
    }

    .study-potential__value {
        font-size: 1.25rem;
    }

    .study-potential__description {
        font-size: 0.85rem;
    }

    .study-potential__button {
        font-size: 0.9rem;
    }
}
/* ================ TXT =================== */
#section-txt{
    max-width: var(--container-width);
    margin: auto;
}
#section-txt p, #section-txt ul{
    padding: 1rem 0rem;
    list-style: disc;
}
#section-txt ul{
    margin-left: 3rem;
}
#section-txt li{
    padding: 0.5rem 0rem;
}
#data-key{
  padding-left: 1.5rem!important;
  margin-left: 1.5rem;
  background-color: #ecf7f6;
  border-left: 2px solid var(--color-primary);
}
/* ========================================
   TABLEAU RESULTATS
   ======================================== */
.results-section{
  padding: 1.5rem 0;
}
.results-table-wrapper{
  overflow-x: auto;
}
.results-table{
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  font-size: 1rem;
}
.results-table th{
  padding: 1rem;
  text-align: left;
  background: #11998e;
  color: #fff;
  font-weight: 700;
}
.results-table td{
padding: 0.9rem 1rem;
border-top: 1px solid #d9d9d9;
}
.results-table tbody tr:nth-child(even){
  background: #f7f7f7;
}
.results-table td:last-child{
  background: rgba(17,153,142,.08);
}
.results-table strong{
  color: #11998e;
  font-weight: 700;
}
/* RESPONSIVE TABLE */
@media (max-width: 768px){
  .results-table,
  .results-table thead,
  .results-table tbody,
  .results-table th,
  .results-table td,
  .results-table tr {
    display: block;
  }
  .results-table thead{
    display: none;
  }
  .results-table tr{
    margin-bottom: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
  }
  .results-table td{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: none;
  }
  .results-table td::before{
    content: attr(data-label);
    font-weight: 700;
    color: #0c4a6e;
    flex-shrink: 0;
  }
  .results-table td:last-child{
    background: rgba(17,153,142,.08);
  }
}
/* ================ PARTNERS =================== */
.partners{
  padding: 5rem 0;
  background-color: var(--color-crema);
}
#partners-title{
  margin-bottom: 4.5rem;
}
.partners-slider{
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.partners-slider__viewport{
  overflow: hidden;
  flex: 1;
}
.partners-slider__track{
  display: flex;
  transition: transform .5s ease;
}
.partner-logo{
  flex: 0 0 33.333%;
  padding: 1rem;
}
.partner-logo img{
  width: 100%;
  height: 175px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .75;
  transition: transform .3s ease, opacity .3s ease, filter .3s ease;
}
.partner-logo img:hover{
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}
  /* boutons */
.partners-slider__btn{
    opacity: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    transition: .3s;
}
.partners-slider__btn:hover{
  transform: scale(1.08);
}
.partners-slider:hover .partners-slider__btn {
  opacity: 1;
}
  /* RESPONSIVE tablette */
@media (max-width:1024px){
    .partner-logo{
      flex: 0 0 50%;
    }
}
  /* RESPONSIVE mobile */
@media (max-width:768px){
    .partner-logo{
      flex: 0 0 100%;
    }
    .partners-slider__btn{
      display:none;
    }
}
/* ================= ANIMATIONS ================= */
.js-animate{
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}
.js-animate.is-visible{
  opacity: 1;
  transform: none;
}
.fade-left{
  transform: translateX(-30px);
}
.fade-right{
  transform: translateX(30px);
}
.scale-in{
  transform: scale(0.95);
}
/* ================= RESPONSIVE ================= */
@media (min-width: 1400px){
    .container{  
        max-width: 1600px;
    }
}

@media (max-width: 1024px){
  .hero-grid,
  .energy-grid,
  .solution,
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .process-steps{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px){
  section{
    padding: 3rem 1rem;
  }
  .commitments-grid,
  .reviews-grid,
  .projects-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }
}