/*
Theme Name:     GRANA Child
Theme URI:      https://votre-site.fr/
Description:    Thème enfant personnalisé pour le site GRANA, basé sur Hello Elementor.
Author:         Votre nom ou agence
Author URI:     https://votre-site.fr/
Template:       hello-elementor
Version:        1.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    grana-child
*/


/* ==========================
   style.css – Global Styles
   ========================== */

/* inter-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100;
  src: url('fonts/inter-v19-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100;
  src: url('fonts/inter-v19-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 200;
  src: url('fonts/inter-v19-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-200italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 200;
  src: url('fonts/inter-v19-latin-200italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/inter-v19-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/inter-v19-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/inter-v19-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/inter-v19-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/inter-v19-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/inter-v19-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/inter-v19-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/inter-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/inter-v19-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/inter-v19-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 800;
  src: url('fonts/inter-v19-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  src: url('fonts/inter-v19-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 900;
  src: url('fonts/inter-v19-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
  body {
      margin: 0;
      font-family: 'Inter', sans-serif !important;
      background-color: #f6f5ef;
    height: 100%;}
    

  html {
  scroll-behavior: smooth;

}

html, body {
  height: 100%;
  background-color: #f6f5ef;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif !important;
  font-weight:700 !important;
}

header {
  width: 100%; /* ✅ remplira toute la largeur réelle sans débordement */
  background-color: #f6f5ef;
  padding: 40px 0;
  text-align: center;
  z-index: 10;
}

    header img {
      max-height: 180px;
    }

.hero-box {
  position: relative;
  background-image: url('mnt/data/grana_hero_bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 300px 40px;
  margin: 0px auto;
  max-width: 95%;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-wrapper {
  background-color: #f6f5ef; /* Fond beige partout */
  
}

.hero-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* Overlay sombre */
  z-index: 0;
}

.hero-box h1,
.hero-box p,
.hero-box a {
  position: relative;
  z-index: 1;
  color:#fff;
}

.hero-box h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-box p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 40px auto;
  font-weight:500;

} 

.btn {
      padding: 12px 24px;
      background-color: #B7CE63;
      color: #3A4E2F !important;
      border-radius: 6px;
      font-weight: bold;
      text-decoration: none;
      display: inline-block;
      margin-top: 20px;
      border: none;
      cursor: pointer;
      font-size:19px;
transition: all 0.3s ease; /* transition douce */
}

.btn:hover {
  background-color: #A5C249; /* légèrement plus foncé */
  transform: translateY(-2px); /* petit effet de "soulèvement" */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* ombre douce */
}

.container {
      width: 95%;
      max-width: 1400px;
      margin: auto;
      padding: 60px 20px;

    }


    h1, h2, h3 {
      color: #3A4E2F;
    }
    h1 {
      font-size:2rem;
    }
    h2 {
      font-size: 2.5rem;
      margin-bottom: 20px;
    }
    h3 {
      font-size: 1.2rem;
      margin-bottom: 10px;
      text-align: center;
    }
    .section {
      padding: 80px 0;

    }
    .section-content {
      display: flex;
      gap: 60px;
      align-items: flex-start;
      flex-wrap: wrap;
    }
    .section-title {
      flex: 0 0 30%;
    }
    .section-title h2 {
      margin-top: 0;
    }
    .section-title p {
      font-size: 1.1rem;
    }
    .section-services {
      flex: 1;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }
    .grid-4 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 30px;
      margin-top: 40px;
    }
    .service-box {
      background: #fff;
      border-radius: 40px 0 40px 0;
      padding: 20px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.03);
      text-align: center;
    }
    .service-box img {
      max-height: 100px;
      margin-bottom: 10px;
    }
    .persona-section h2,
    .persona-section p,
    .persona-section .cta {
      text-align: center;
    }
    .persona-section .service-box h3 {
      text-align: center;
    }
 .legumineuses {
  position: relative;
  background-image: url('mnt/data/legumineuses.png');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 100px 40px;
  margin: 0px auto;
  max-width: 95%;
  color: white;
    overflow: hidden;
}

.legumineuses::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Opacité ajustable */
  z-index: 1;
}

.legumineuses .container {
  position: relative;
  z-index: 2;
}


.legumineuses .service-box {
  background: rgba(255, 255, 255, 0.2); /* transparence */
  border: 1px solid rgba(255, 255, 255, 0.3); /* légère bordure blanche */
  border-radius: 20px;
  backdrop-filter: blur(10px); /* flou derrière */
  -webkit-backdrop-filter: blur(10px); /* support Safari */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 40px 0 40px 0;
  padding: 20px;
  color: #fff;
}

.legumineuses h2, .legumineuses h3 {color:#fff;}
    }
    form input[type="text"],
    form input[type="email"],
    form select,
    form textarea {
      width: 100%;
      padding: 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 1rem;
      box-sizing: border-box;
    }


.transformateur{
  background-color: #3A4E2F;
}

.transformateur, .transformateur h2 {
  color: white;
}

.transformateur .service-box {
  color: #2C2C2C;
  background: rgba(255, 255, 255, 0.85); /* optionnel : fond plus lisible */
  border: 1px solid rgba(0,0,0,0.1);
}


    footer {
      background-color: #3A4E2F;
      color: white;
      text-align: center;
      padding: 30px 0;
      font-size: 0.9rem;
    }

    footer a {color:white !important;}

/* ==========================
   responsive.css – Media Queries
   ========================== */

@media (max-width: 768px) {

  section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-box {
    padding: 150px 20px !important; /* réduit la hauteur sur mobile */
  }

  .legumineuses {
    padding: 60px 20px !important;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .btn {
    margin-top: 15px;
  }
  .section-content {
    flex-direction: column;
  }
  .section-title,
  .section-services,
  .grid-4 {
    flex: 1 0 100%;
  }
  .section-services {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  header img {
    max-height: 140px;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}