/* =====================================================================
   BUGEY NUMÉRIQUE : FEUILLE DE STYLE (l'apparence du site)
   Ce fichier ne contient AUCUN texte du site : seulement les couleurs,
   les tailles et la mise en page. Les textes sont dans index.html.
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. COULEURS ET RÉGLAGES PRINCIPAUX
   Changez une valeur ici : elle change partout sur le site.
   --------------------------------------------------------------------- */
:root {
  --marine:     #1E3F66;   /* titres, boutons, bande téléphone, pied de page */
  --bleu:       #3E78A8;   /* grands titres de section */
  --bleu-vif:   #4A94CE;   /* petits détails (puces, soulignements) */
  --bleu-clair: #DCEEFA;   /* fond de la section contact */
  --ciel:       #A9D3EF;   /* haut du bandeau */
  --sauge:      #97C1A9;   /* encadré vert de la zone d'intervention */
  --texte:      #17283D;   /* couleur du texte courant */
  --gris:       #4B5C72;   /* texte secondaire (petites mentions) */

  --largeur-page: 62rem;   /* largeur maximale du contenu */
  --arrondi: 14px;         /* arrondi des photos et encadrés */
}


/* ---------------------------------------------------------------------
   2. POLICE (celle de votre charte : DejaVu Sans)
   Les fichiers sont dans le dossier « fonts ».
   --------------------------------------------------------------------- */
@font-face {
  font-family: "DejaVu Sans Web";
  src: url("fonts/dejavu-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DejaVu Sans Web";
  src: url("fonts/dejavu-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}


/* ---------------------------------------------------------------------
   3. BASE (réglages communs à toute la page)
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DejaVu Sans Web", "DejaVu Sans", Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texte);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); }
a:hover { color: var(--marine); }

/* Cadre centré qui contient le contenu de chaque section */
.cadre {
  width: min(100% - 2.5rem, var(--largeur-page));
  margin-inline: auto;
}

/* Espace au-dessus et en dessous de chaque section */
section { padding: 4.5rem 0; }

h2 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--bleu);
}

.introduction { margin: 0 0 2rem; max-width: 100ch; }


/* ---------------------------------------------------------------------
   4. BANDEAU DU HAUT (logo, titre, slogan, montagnes)
   --------------------------------------------------------------------- */
.bandeau {
  position: relative;
  background: linear-gradient(to bottom, var(--ciel), #E3F1FB);
  color: var(--marine);
  overflow: hidden;
}

/* Liens « Services » et « Contact » en haut à droite */
.menu {
  display: flex;
  justify-content: flex-end;
  gap: 1.75rem;
  padding-top: 1.1rem;
  position: relative;
  z-index: 2;
}
.menu a {
  color: var(--marine);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.menu a:hover { text-decoration: underline; }

/* Logo à gauche, textes à droite */
.bandeau-contenu {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0 10rem;
}
.logo { width: 15rem; flex: none; }

.bandeau h1 {
  margin: 0;
  font-size: 3.6rem;
  line-height: 1.1;
}
.sous-titre {
  margin: 0.6rem 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bleu);
}
.slogan { margin: 1rem 0 0; max-width: 100ch; font-size: 1.15rem; }

/* Les montagnes en bas du bandeau (image dans le dossier « images ») */
.montagnes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9rem;
  background: url("images/montagnes.svg") no-repeat bottom / 100% 100%;
}


/* ---------------------------------------------------------------------
   5. BOUTONS
   --------------------------------------------------------------------- */
.bouton, button {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--marine);
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.bouton:hover, button:hover { background: var(--bleu); color: #fff; }
.bandeau .bouton { margin-top: 1.6rem; }


/* ---------------------------------------------------------------------
   6. BANDE TÉLÉPHONE (sous le bandeau)
   --------------------------------------------------------------------- */
.bande-telephone {
  background: var(--marine);
  border-top: 6px solid var(--bleu);
  color: #fff;
  text-align: center;
  padding: 1.6rem 0;
}
.bande-telephone a { color: #fff; text-decoration: none; }
.bande-telephone .telephone { display: block; font-size: 3.4rem; font-weight: 700; line-height: 1.2; }
.bande-telephone .courriel { display: block; color: #C9DCEE; font-size: 1.1rem; }


/* ---------------------------------------------------------------------
   7. PRÉSENTATION (photo + petit texte)
   --------------------------------------------------------------------- */
#presentation { padding-bottom: 0; }

.presentation {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.presentation img {
  width: 24rem;
  border-radius: var(--arrondi);
  box-shadow: 0 10px 28px rgba(30, 63, 102, 0.18);
}
.signature { font-weight: 700; color: var(--marine); margin: 0; }


/* ---------------------------------------------------------------------
   8. SERVICES (dépannage, installation, formation)
   --------------------------------------------------------------------- */
.zone {
  background: var(--sauge);
  border-radius: var(--arrondi);
  padding: 1.1rem 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.zone strong { display: block; }

/* Une ligne par service : le titre à gauche, le détail à droite */
.service {
  display: flex;
  gap: 3rem;
  padding: 2rem 0;
  border-top: 2px solid #BFE0F5;
}
.service:last-child { border-bottom: 2px solid #BFE0F5; }

.service h3 {
  flex: 0 0 12rem;
  margin: 0;
  font-size: 1.45rem;
  color: var(--marine);
}
.service-detail { flex: 1; }
.service p { margin: 0 0 0.9rem; max-width: 58ch; }
.service ul { margin: 0; padding-left: 1.25rem; }
.service li::marker { color: var(--bleu-vif); }

/* Ligne « Formation » : le texte et l'affiche côte à côte */
.avec-affiche { display: flex; gap: 2rem; align-items: flex-start; }
.avec-affiche img {
  width: 15rem;
  border-radius: var(--arrondi);
  box-shadow: 0 8px 22px rgba(30, 63, 102, 0.2);
}


/* ---------------------------------------------------------------------
   9. CONTACT (formulaire + coordonnées)
   --------------------------------------------------------------------- */
#contact { background: var(--bleu-clair); }

.contact {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.contact-formulaire { flex: 3; }
.contact-coordonnees {
  flex: 2;
  background: #fff;
  border-radius: var(--arrondi);
  padding: 1.75rem;
}
.contact-coordonnees h3 { margin: 0 0 0.8rem; font-size: 1.2rem; color: var(--marine); }
.contact-coordonnees p { margin: 0 0 1rem; }
.contact-coordonnees a { color: var(--marine); }
.gros { font-size: 1.3rem; font-weight: 700; }
.petit { margin: 0; font-size: 0.93rem; color: var(--gris); }

/* Formulaire */
form { display: grid; gap: 1.1rem; }
.champ { display: grid; gap: 0.35rem; }
label { font-weight: 700; font-size: 0.93rem; color: var(--marine); }
.facultatif { font-weight: 400; color: var(--gris); }

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.97rem;
  color: var(--texte);
  background: #fff;
  border: 1px solid #8FB0CC;
  border-radius: 10px;
}
textarea { min-height: 9rem; resize: vertical; }
button { justify-self: start; }

.mention { margin: 0; max-width: 60ch; font-size: 0.85rem; line-height: 1.6; color: var(--gris); }

/* Champ piège anti-spam : invisible pour les visiteurs (ne pas supprimer) */
.piege { position: absolute; left: -9999px; }


/* ---------------------------------------------------------------------
   10. PIED DE PAGE (informations légales)
   --------------------------------------------------------------------- */
footer {
  background: var(--marine);
  color: #C9DCEE;
  padding: 3rem 0 2.5rem;
  font-size: 0.9rem;
  line-height: 1.75;
}
footer a { color: #fff; }
footer h2 { margin: 0 0 0.6rem; font-size: 1.05rem; color: #fff; }
footer p { margin: 0 0 0.3rem; }

.legal { display: flex; flex-wrap: wrap; gap: 2rem 3rem; }
.legal > div { flex: 1 1 15rem; }

footer details { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #355B86; }
footer summary { cursor: pointer; font-weight: 700; color: #fff; }
footer details p { max-width: 72ch; margin-top: 0.8rem; }
.copyright { margin-top: 2rem; color: #9DB8D4; }


/* ---------------------------------------------------------------------
   11. AFFICHAGE SUR TÉLÉPHONE (écrans de moins de 760 pixels)
   Tout passe en colonne, les tailles de texte sont réduites.
   --------------------------------------------------------------------- */
@media (max-width: 760px) {
  section { padding: 3rem 0; }
  h2 { font-size: 0.9rem; }
  p { font-size: 0.9rem; }
  .menu { justify-content: flex-start; }
  .bandeau-contenu { flex-direction: column; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; }
  /*.logo { width: 4rem; } */
  .logo { width: 30%; margin-left:35%; }
  .bandeau h1 { font-size: 1.5rem;}
  .sous-titre { font-size: 0.9rem; }
  .slogan { font-size: 0.9rem; }
  .montagnes { height: 6rem; }
  .bande-telephone .telephone { font-size: 1rem; }
  .bouton {margin-left:10%; font-size: 0.7rem; text-align:center;}
  .presentation, .service, .avec-affiche, .contact { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .presentation img { width: 100%; }
  .cadre h1 { font-size: 1.5rem; }
  .service-detail { font-size: 0.9rem; }
  .service h3 { flex: none; }
  .avec-affiche img { width: 15rem; }
}
