/* =========================================================
   STYLE DU SITE LOGIX
   Pour changer les couleurs, modifie seulement la partie
   "COULEURS" juste en dessous.
   ========================================================= */

/* ---------- COULEURS ---------- */
:root {
  --fond: #fff;         /* fond de la page */
  --fond-clair: #f5f5ff;   /* fond des sections grises-bleues */
  --texte: #222222;        /* couleur du texte */
  --texte-doux: #555;   /* texte secondaire */
  --bleu: #25a;         /* bleu principal */
  --bleu-fonce: #038;   /* bleu quand on passe la souris */
  --bordure: #e9e9ff;  /* petits traits et cadres */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;   /* évite que le menu cache les titres */
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.7;
}

/* ---------- MENU ---------- */
nav {
  position: fixed;             /* le menu reste en haut */
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--fond);
  border-bottom: 1px solid var(--bordure);
  z-index: 10;
}

.logo {
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--bleu);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 22px;                   /* espace entre les liens */
  font-size: 15px;
}

nav ul a {
  color: var(--texte);
  text-decoration: none;
}

nav ul a:hover {
  color: var(--bleu);
}

/* ---------- ACCUEIL ---------- */
header {
  text-align: center;
  padding: 120px 6% 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.photo {
  width: 220px;                /* taille de ta photo */
  height: 220px;
  border-radius: 50%;          /* 50% = rond, 0 = carré */
  object-fit: cover;
  border: 4px solid var(--bordure);
  margin-bottom: 26px;
}

h1 {
  font-size: 70px;
  letter-spacing: 4px;
  color: var(--bleu);
  margin-bottom: 14px;
}

header p {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 18px;
  color: var(--texte-doux);
}

/* ---------- BOUTONS ---------- */
.bouton {
  display: inline-block;
  padding: 12px 26px;
  background: var(--bleu);
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.bouton:hover {
  background: var(--bleu-fonce);
}

.bouton-contour {
  display: flex;
  padding: 12px 24px;
  color: #22f;
  border-radius: 20px;
}

.bouton-contour:hover {
  background: var(--bleu);
  color: white;
}

/* ---------- SECTIONS ---------- */
section {
  padding: 80px 6%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* Les sections à fond coloré prennent toute la largeur */
.fond-clair {
  background: var(--fond-clair);
  max-width: none;
}

h2 {
  font-size: 34px;
  font-weight: normal;
  margin-bottom: 28px;
}

section > p {
  max-width: 620px;
  margin: 0 auto 14px;
  font-size: 18px;
  color: var(--texte-doux);
}

/* ---------- GRILLE ET CARTES ---------- */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.carte {
  background: var(--fond);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  padding: 24px;
}

.carte h3 {
  font-size: 19px;
  font-weight: normal;
  color: var(--bleu);
  margin-bottom: 6px;
}

.carte p {
  font-size: 15px;
  color: var(--texte-doux);
}

/* ---------- TRAVAUX ET GALERIES ---------- */
.projet {
  margin-bottom: 70px;
  text-align: left;
}
.projet h3 {
  font-size: 26px;
  font-weight: normal;
  color: var(--bleu);
}

.projet > p {
  color: var(--texte-doux);
  margin-bottom: 20px;
}


/* Images d'un projet : plus la page est large, plus il y a de colonnes.
   220px = taille minimale d'une image. Plus petit = plus de colonnes. */
#travaux {
  max-width: 1400px;            /* laisse la place à plus de colonnes */
}

.images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.images img {
  width: 100%;
  aspect-ratio: 0.8 / 1;
  border: 1px solid var(--bordure);
  object-fit: cover;        /* "cover" = remplit le cadre en coupant */
  display: block;
}

.images figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--texte-doux);
}

/* ---------- CONTACT ---------- */
.liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- BAS DE PAGE ---------- */
footer {
  padding: 26px 6%;
  text-align: center;
  font-size: 14px;
  color: var(--texte-doux);
  border-top: 1px solid var(--bordure);
}

/* ---------- TÉLÉPHONE ---------- */
@media (max-width: 640px) {
  nav ul { gap: 12px; font-size: 13px; }
  h1 { font-size: 48px; }
}

.contact{
  height: 30px;
  width: auto;
}
