:root {
  /* Couleurs */
  --light-font-color: #ffffff;       /* Texte clair */
  --dark-font-color: #0d0d0d;          /* Texte sombre */
  --accent-color: #ff9800;             /* Orange chaleureux */
  --accent-hover: #fb8c00;             /* Variation pour le hover */
  --dark-gray: #444444;               /* Gris foncé pour bordures, etc. */
  --overlay-color: rgba(0, 0, 0, 0.7); /* Couche pour l'en-tête */
  --shadow-color: rgba(0, 0, 0, 0.5);  /* Ombre pour le texte */

  /* Couleurs de fond (limité à 3) */
  --light-background-color: #ffffff;       /* Fond principal du body */
  --dark-background-color: #0d0d0d;          /* Fond des sections principales */
  --neutral-background-color: #1f1f1f;       /* Fond alternatif pour certaines sections */

  /* FONT FAMILY */
  --font-primary: "Space Grotesk", sans-serif;

  /* TITRES */
  --font-h1: 72px;
  --font-h2: 42px;
  --font-h3: 32px;
  --font-h4: 26px;

  /* PARAGRAPHES */
  --font-p-primary: 20px;
  --font-p-secondary: 18px;
  --font-p-tertiary: 16px;

  /* BOUTONS & UI */
  --font-btn-primary: 20px;
  --font-btn-secondary: 18px;
  --font-form-text: 16px;

  /* LINE HEIGHT & SPACING */
  --line-height-default: 1.6;
  --line-height-title: 1.15;
  --line-height-paragraph: 1.8;
  --letter-spacing-default: 0.5px;
  --letter-spacing-button: 1px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corps du site */
body {
  font-family: 'Montserrat', sans-serif;
  /* Option alternative : font-family: var(--font-primary); */
  line-height: var(--line-height-default);
  letter-spacing: var(--letter-spacing-default);
  color: var(--dark-font-color);
  background-color: var(--light-background-color);
  box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.05);
  padding-top: 90px;
}

/* Règles globales de typographie pour les éléments textuels */
h1, h2, h3, h4 {
  letter-spacing: var(--letter-spacing-default);
  line-height: var(--line-height-title);
}

p, ul, a {
  letter-spacing: var(--letter-spacing-default);
  line-height: var(--line-height-paragraph);
}

/* Style des liens */
a {
  text-decoration: none;
  color: inherit;
}

/* TITRES */
h1 {
  font-size: var(--font-h1);
  font-weight: 700;
  /* line-height et letter-spacing hérités */
}

h2 {
  font-size: var(--font-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--font-h3);
  font-weight: 600;
  margin-bottom: 20px;
}

h4 {
  font-size: var(--font-h4);
  font-weight: 600;
  margin-bottom: 20px;
}

/* PARAGRAPHES */
p {
  font-size: var(--font-p-primary);
  font-weight: 400;
  margin-bottom: 30px;
}

p.secondary {
  font-size: var(--font-p-secondary);
}

p.tertiary {
  font-size: var(--font-p-tertiary);
}

ul {
  font-size: var(--font-p-tertiary);
  font-weight: 400;
  margin-bottom: 30px;
}

/* BOUTONS */
button.primary {
  font-size: var(--font-btn-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-button);
  line-height: var(--line-height-default);
  cursor: pointer;
}

button.secondary {
  font-size: var(--font-btn-secondary);
  font-weight: 500;
  line-height: var(--line-height-default);
  cursor: pointer;
}

/* FORMULAIRES */
input, textarea {
  font-size: var(--font-form-text);
  letter-spacing: var(--letter-spacing-default);
  line-height: var(--line-height-default);
}

/* SCROLLBAR */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--dark-gray);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--dark-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border: 2px solid var(--dark-gray);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Sélection de texte */
::selection {
  background: var(--accent-color);
  color: var(--light-font-color);
}

/* Conteneurs et sections */
.container {
  margin: 0 100px;
}

section {
  padding: 50px 0;
}

.underline {
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border: none;
  margin: 10px 0 30px;
}

.underline-center {
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border: none;
  margin: 10px auto 30px;
}

.cta-section {
  background: url("/assets/tourbe-installee-2-86428a4b.webp") no-repeat center center/cover;
  padding: 100px 0;
  text-align: center;
  color: var(--light-font-color);
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}
/* Version grand ecrans */
@media screen and (min-width: 2000px) {
  .container {
    margin: 0 auto;
    max-width: 1600px;
  }
}

/* Version tablette */
@media screen and (max-width: 1024px) {
  :root {
    --font-h1: 44px;
    --font-h2: 36px;
    --font-h3: 26px;
    --font-h4: 22px;

    --font-p-primary: 18px;
    --font-p-secondary: 16px;
    --font-p-tertiary: 14px;

    --font-btn-primary: 18px;
    --font-btn-secondary: 16px;
    --font-form-text: 14px;

    --line-height-default: 1.6;
    --line-height-title: 1.15;
    --line-height-paragraph: 1.7;
    --letter-spacing-default: 0.4px;
    --letter-spacing-button: 0.8px;
  }
}

/* Version mobile */
@media screen and (max-width: 768px) {
  :root {
    --font-h1: 36px;
    --font-h2: 32px;
    --font-h3: 26px;
    --font-h4: 20px;

    --font-p-primary: 16px;
    --font-p-secondary: 15px;
    --font-p-tertiary: 14px;

    --font-btn-primary: 16px;
    --font-btn-secondary: 15px;
    --font-form-text: 14px;

    --line-height-default: 1.45;
    --line-height-title: 1.15;
    --line-height-paragraph: 1.55;
    --letter-spacing-default: 0.25px;
    --letter-spacing-button: 0.6px;
  }

  .container {
    margin: 0 32px;
  }
}

@media (max-width: 490px) {
  .container {
    margin: 0 16px;
  }
}

@media screen and (max-width: 375px) {
  :root {
    /* Titres */
    --font-h1: 28px;
    --font-h2: 24px;
    --font-h3: 22px;
    --font-h4: 18px;

    /* Paragraphes */
    --font-p-primary: 14px;
    --font-p-secondary: 13px;
    --font-p-tertiary: 12px;

    /* Boutons & UI */
    --font-btn-primary: 14px;
    --font-btn-secondary: 13px;
    --font-form-text: 12px;

    /* Line heights et letter-spacing */
    --line-height-default: 1.35;
    --line-height-title: 1.1;
    --line-height-paragraph: 1.4;
    --letter-spacing-default: 0.2px;
    --letter-spacing-button: 0.5px;
  }

  /* Ajustement de la marge du conteneur pour les très petits écrans */
  .container {
    margin: 0 8px;
  }
}

