*,
*::before,
*::after {
  box-sizing: border-box;
}


:root {
  --bg: #f4f6f9;
  --text: #2c3e50;
  --primary: #0a3d62;
  --accent: #f1c40f;
  --success: #27ae60;
  --card-bg: #ffffff;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

/* HEADER */
.hero {
  position: relative;
  background: url("img/solar_parking.jpg") right center / 80% no-repeat;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, white 0%, rgba(255,255,255,0.8) 20%, rgba(255,255,255,0.0) 50%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 3rem;
  padding-right: 3rem;
  align-items: center;

}

.logo {
  height: 160px;
  background: white;
  padding: 0.3rem;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.hero-content {
  text-align: right;
  color: white;
  max-width: 600px;
  margin-left: auto;
  margin-right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;

}

.hero-content h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
}

.hero-content p {
  margin: 0.5rem 0 1rem;
  font-size: 1.4rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #d4ac0d;
}

/* CONTAINER */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* SECTIONS */
.section-card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 2rem 3rem;
  margin: 2rem 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.section-card h2 {
  font-size: 2rem;                /* un peu plus grand pour marquer la hiérarchie */
  font-weight: 700;               /* plus affirmé */
  color: var(--primary);
  border-left: 6px solid var(--accent);
  padding-left: 0.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  position: relative;
}
.section-card h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-card h3 {
  font-size: 1.25rem;             /* légèrement réduit pour contraster avec h2 */
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  color: #34495e;                 /* un ton plus doux que le h2 */
  letter-spacing: 0.3px;          /* un peu d’air entre les lettres */
}


.features {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 0.75rem 1.25rem;
}

.features li {
  position: relative;
  padding-left: 1.8rem;
  background: linear-gradient(90deg, rgba(10,61,98,0.06), rgba(10,61,98,0.0));
  border-radius: 8px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.features li::before {
  content: "✔";
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--success);
  font-weight: 700;
}

/* CONTACT FORM */
.contact-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box; /* sécurité */
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(241, 196, 15, 0.4);
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #062a44;
}

/* Section Qui sommes nous */
#qui-sommes-nous.section-card {
  max-width: 1200px;   /* même largeur réduite que Contexte */
  margin: 2rem auto;
}

.qs-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

/* Image à gauche */
.qs-image {
  flex: 1;
}
.qs-image img {
  width: 420px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Texte à droite */
.qs-text {
  flex: 2;
  text-align: left; /* garde le texte aligné à gauche pour la lisibilité */
}

.qs-text ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.qs-text li {
  display: flex;
  align-items: flex-start;  /* bulle alignée en haut */
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.qs-text .bullet-icon {
  width: 22px;
  height: 22px;
  margin-right: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem; /* ajuste l’alignement vertical */
}

/* Responsive */
@media (max-width: 900px) {
  .qs-container {
    flex-direction: column;
  }
  .qs-image {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .qs-image img {
    width: 100%;
    max-width: 500px;
  }
}


/* Section Contexte */
#contexte {
  max-width: 1200px;       /* même largeur que "Nos expertises" */
  margin: 2rem auto;
}

#contexte h2 {
  text-align: left;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* Conteneur en 2 colonnes */
.contexte-container {
  display: flex;
  align-items: flex-start;   /* aligne le haut de la liste et de l’image */
  justify-content: space-between;
  gap: 2rem;
}

/* Liste à gauche */
.contexte-list {
  flex: 1;
}

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

.contexte-list li {
  display: flex;
  align-items: flex-start;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.6;          /* aère le texte si plusieurs lignes */
}

/* Icône de puce */
.bullet-icon {
  width: 28px;   /* adapte la taille selon ton design */
  height: 28px;
  margin-right: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.2rem; /* petit ajustement pour un alignement parfait */
}

/* Image à droite */
.contexte-image {
  flex: 1;
  text-align: right;
}

.contexte-image img {
  width: 450px;       /* fixe une largeur raisonnable */
  max-width: 100%;    /* ne déborde pas sur petit écran */
  height: auto;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .contexte-image {
    text-align: center;
    margin-top: 1.5rem;
  }
}

/* Responsive : tout à gauche sur mobile */
@media (max-width: 768px) {
  .contexte-item {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* EXPERTISE */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.expertise-item {
  background: linear-gradient(to bottom, #f9f9f9, #ffffff);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  border: 1px dashed red;

}

.expertise-item:hover {
  transform: translateY(-5px);
}

.expertise-item h3 {
  margin-top: 1rem;
  font-size: 1.3rem;
  color: var(--primary);
}

.expertise-item p {
  font-size: 1rem;
  margin-top: 0.5rem;
  color: #555;
}

.circle {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-weight: bold;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* LISTE PERSONNALISÉE DANS EXPERTISES */
.expertise-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.expertise-list li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.expertise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 20px;
  height: 20px;
  background: url("img/icon-bullet.png") no-repeat center center;
  background-size: contain;
}

/* ALIGNEMENT TEXTE CONTEXTE & MISSION */
#contexte p,
#mission p {
  text-align: justify;
  text-justify: inter-word; /* meilleure répartition des espaces */
  line-height: 1.7;         /* confort de lecture */
}

.acc-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.acc-image {
  flex: 1 1 300px;
  max-width: 400px;
}

.acc-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.acc-intro {
  flex: 2 1 500px;
}

.acc-details {
  margin-top: 2rem;
}

.acc-banner {
  text-align: center;
  padding: 2rem;
}

.acc-banner p {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #222;
  margin: 0;
}