/* =========================================================
   ANO Studio — agence d'architecture
   Feuille de style principale
   ========================================================= */

:root {
  --brun: #766556;
  --blanc: #ffffff;
  --police: "HelveticaNeueW01-45Ligh", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--police);
  font-weight: 300;
  color: var(--brun);
  background: var(--blanc);
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.conteneur {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------------- En-tête ---------------- */

.entete {
  background: var(--blanc);
  padding: 30px 40px 20px;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.entete__logo img {
  width: 263px;
  height: auto;
}

.nav {
  display: flex;
  gap: 48px;
  padding-top: 48px;
}

.nav a {
  font-size: 16px;
  letter-spacing: 1.6px;
  color: var(--brun);
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.nav a:hover { opacity: 0.6; }

/* ---------------- Pied de page ---------------- */

.pied {
  background: var(--brun);
  color: var(--blanc);
  margin-top: 100px;
  padding: 40px 40px 30px;
}

.pied__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.pied__logo { grid-column: 3; justify-self: end; }
.pied__logo img { width: 104px; height: auto; }

.pied__centre {
  grid-column: 1 / 4;
  grid-row: 2;
  text-align: center;
  margin-top: 10px;
}

.pied__centre a.mail {
  font-size: 14px;
  color: var(--blanc);
}
.pied__centre a.mail:hover { text-decoration: underline; }

.sociaux {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  list-style: none;
}
.sociaux img { width: 28px; height: 28px; }
.sociaux a:hover { opacity: 0.75; }

/* ---------------- Titres de section ---------------- */

.titre-section {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -2px;
  text-align: center;
  color: var(--brun);
}

/* ---------------- Accueil : Missions ---------------- */

.missions { padding-top: 60px; }

.missions__intro {
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  max-width: 700px;
  margin: 28px auto 0;
}

.missions__colonnes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1000px;
  margin: 55px auto 0;
}

/* Repère décoratif : timeline — une ligne horizontale continue reliant les trois points */
.missions__col { position: relative; }

.repere {
  position: relative;
  height: 7px;
  margin: 10px 0 28px;
}

/* Le point, centré au-dessus de chaque colonne */
.repere::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brun);
  z-index: 1;
}

/* La ligne : chaque segment déborde dans l'espacement de la grille pour former une ligne continue */
.repere::after {
  content: "";
  position: absolute;
  top: 3px;
  height: 1px;
  background: var(--brun);
  left: -60px;
  right: -60px;
}

/* La ligne commence au premier point et s'arrête au dernier */
.missions__col:first-child .repere::after { left: 50%; }
.missions__col:last-child .repere::after { right: 50%; }

.missions__col h3 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.2px;
  text-align: center;
  margin-bottom: 22px;
}

.missions__col p { font-size: 16px; text-align: center; margin-bottom: 6px; }

/* ---------------- Accueil / Portfolio : grille projets ---------------- */

.projets { padding-top: 90px; }

.grille-projets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1160px;
  margin: 55px auto 0;
  padding: 0 40px;
}

.carte-projet__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.carte-projet__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carte-projet:hover .carte-projet__image img { transform: scale(1.03); }

.carte-projet figcaption {
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
  margin-top: 24px;
}

/* ---------------- Page projet ---------------- */

.projet { max-width: 980px; margin: 0 auto; padding: 40px 40px 0; }

.projet__entete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.projet__titre {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.projet__details { margin-top: 14px; font-size: 14px; }
.projet__details p { margin-bottom: 2px; }

.projet__description {
  font-size: 14px;
  max-width: 300px;
  text-align: left;
  padding-top: 8px;
}

.galerie {
  margin-top: 45px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.galerie__item--large { grid-column: 1 / 3; }

.galerie__item--large img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.galerie__item img {
  width: 100%;
  aspect-ratio: 430 / 555;
  object-fit: cover;
}

.projet__pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  font-size: 15px;
}

.projet__pagination a:hover { text-decoration: underline; }
.projet__pagination .droite { margin-left: auto; }

/* ---------------- L'Agence ---------------- */

.agence {
  max-width: 1160px;
  margin: 0 auto;
  padding: 50px 40px 0;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
}

.agence__photo img { width: 100%; height: auto; }

.agence__legende { margin-top: 22px; font-size: 16px; }
.agence__legende .nom { margin-bottom: 2px; }
.agence__diplomes { margin-top: 24px; font-size: 14px; }
.agence__diplomes p { margin-bottom: 3px; }

.agence__texte { font-size: 16px; text-align: justify; padding-top: 10px; }
.agence__texte p { margin-bottom: 22px; }

.bouton {
  display: inline-block;
  background: var(--brun);
  color: var(--blanc);
  font-size: 15px;
  letter-spacing: 1px;
  padding: 14px 34px;
  margin-top: 10px;
  transition: opacity 0.2s ease;
}
.bouton:hover { opacity: 0.85; }

/* ---------------- Contact ---------------- */

.contact { display: grid; grid-template-columns: 480px 1fr; }

.contact__panneau {
  background: var(--brun);
  color: var(--blanc);
  padding: 125px 90px 90px;
  min-height: 565px;
}

.contact__panneau h2 {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -2px;
  margin-bottom: 60px;
}

.contact__panneau p { font-size: 16px; margin-bottom: 4px; }
.contact__panneau .bloc { margin-bottom: 26px; }
.contact__panneau a:hover { text-decoration: underline; }

.contact__panneau .sociaux {
  justify-content: flex-start;
  margin-top: 34px;
  gap: 18px;
}

.contact__formulaire {
  padding: 110px 90px 60px 175px;
  max-width: 790px;
}

.champs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 26px;
}

.champ { display: flex; flex-direction: column; }
.champ--large { grid-column: 1 / 3; }

.champ label {
  font-size: 14px;
  margin-bottom: 8px;
}

.champ input,
.champ textarea {
  font-family: var(--police);
  font-size: 15px;
  color: var(--brun);
  border: 1px solid var(--brun);
  background: var(--blanc);
  padding: 8px 10px;
  border-radius: 0;
  outline: none;
}

.champ textarea { min-height: 80px; resize: vertical; }
.champ input:focus, .champ textarea:focus { border-width: 2px; }

.contact__formulaire .bouton {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--police);
  text-align: center;
  margin-top: 26px;
  padding: 13px 0;
  font-size: 15px;
}

.message-merci {
  display: none;
  text-align: center;
  font-size: 16px;
  margin-top: 22px;
}
.message-merci.visible { display: block; }

.cache { position: absolute; left: -9999px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .entete { flex-direction: column; align-items: center; gap: 10px; padding-top: 24px; }
  .nav { padding-top: 10px; gap: 24px; flex-wrap: wrap; justify-content: center; }
  .missions__colonnes { grid-template-columns: 1fr; gap: 40px; }
  /* En mobile (colonnes empilées), la ligne horizontale n'a plus de sens : on garde seulement le point */
  .repere::after { display: none; }
  .grille-projets { grid-template-columns: 1fr; }
  .projet__entete { flex-direction: column; gap: 24px; }
  .galerie { grid-template-columns: 1fr; }
  .galerie__item--large { grid-column: auto; }
  .agence { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; }
  .contact__panneau { padding: 60px 40px; min-height: 0; }
  .contact__formulaire { padding: 50px 40px; }
  .champs { grid-template-columns: 1fr; }
  .champ--large { grid-column: auto; }
  .pied__inner { grid-template-columns: 1fr; }
  .pied__logo { grid-column: 1; justify-self: center; margin-bottom: 10px; }
  .pied__centre { grid-column: 1; }
}

/* ---------------- Pages légales ---------------- */
.legale {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 0 24px;
}

.legale .titre-section { margin-bottom: 10px; }

.legale__maj {
  text-align: center;
  font-size: 13px;
  color: var(--brun);
  opacity: 0.7;
  margin-bottom: 40px;
}

.legale h2 {
  font-size: 20px;
  font-weight: 400;
  color: var(--brun);
  margin: 38px 0 12px;
}

.legale p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--brun);
  margin-bottom: 12px;
}

.legale a {
  color: var(--brun);
  text-decoration: underline;
}
.legale a:hover { opacity: 0.75; }

/* Liens légaux dans le footer */
.pied__legal {
  max-width: 1360px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
}

.pied__legal a {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--blanc);
  opacity: 0.8;
  margin: 0 12px;
  display: inline-block;
}
.pied__legal a:hover { opacity: 1; text-decoration: underline; }

.pied__copyright {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--blanc);
  opacity: 0.7;
  margin-top: 14px;
}
