/* ============================================================
   STYLE.CSS — Feuille de style unique du site
   ------------------------------------------------------------
   Tout le design du site est ici. Pour changer une couleur,
   une police ou un espacement, modifie les variables ci-dessous
   (la section :root) : le changement s'applique partout.
   ============================================================ */

/* ---------- 1. VARIABLES (couleurs, polices, espacements) ---------- */
:root {
  /* Couleurs principales : change-les ici pour rethèmer tout le site */
  --bg: #faf7f2;            /* fond général, blanc cassé chaud */
  --bg-alt: #f1ece3;        /* fond des sections alternées */
  --ink: #26221c;           /* texte principal, presque noir */
  --ink-soft: #5c554a;      /* texte secondaire */
  --accent: #b4552d;        /* terracotta : liens, boutons, accents */
  --accent-dark: #8f4223;   /* terracotta foncé : survol */
  --sage: #5b7b6a;          /* vert sauge : accents secondaires */
  --card: #ffffff;          /* fond des cartes */
  --line: #e2dbce;          /* bordures fines */

  /* Polices (chargées depuis Google Fonts dans chaque page HTML) */
  --font-display: "Fraunces", Georgia, serif;   /* titres */
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif; /* texte */

  /* Largeur maximale du contenu */
  --content-width: 1080px;
}

/* ---------- 2. BASES ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.0625rem; /* 17px */
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; color: var(--ink-soft); }
p strong { color: var(--ink); }

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- 3. EN-TÊTE / NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px; /* min-height (et non height) pour autoriser la nav sur 2 lignes sur mobile */
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--accent); }

.nav-links { display: flex; gap: 1.6rem; align-items: center; }

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

.nav-links a.btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-links a.btn-nav:hover { background: var(--accent-dark); color: #fff; }

/* ---------- 4. HÉROS (haut de la page d'accueil) ---------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  /* Deux halos très légers (terracotta et sauge) pour réchauffer le fond
     sans casser la sobriété. Supprime ces deux lignes pour un fond uni. */
  background:
    radial-gradient(600px 320px at 85% 15%, rgba(180, 85, 45, 0.08), transparent 70%),
    radial-gradient(520px 300px at 8% 85%, rgba(91, 123, 106, 0.10), transparent 70%);
}

/* Disposition photo + texte du héros */
.hero-flex {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  text-align: left;
}
.hero-flex .hero-text { flex: 1; }
.hero-flex h1 { margin: 0 0 1.2rem; }
.hero-flex .lede { margin: 0 0 1.5rem; }

/* Cadre du portrait. REMPLACER LA PHOTO : dépose ton portrait dans
   assets/img/ (format vertical, ~800x1000 px) puis dans index.html
   remplace le bloc <svg>...</svg> par :
   <img src="assets/img/portrait.jpg" alt="Bastien Agostinelli"> */
.hero-photo {
  flex: 0 0 260px;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: 0 20px 45px rgba(38, 34, 28, 0.18);
  transform: rotate(-2deg); /* légère inclinaison, façon photo posée sur une table */
}
.hero-photo img, .hero-photo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 780px) {
  .hero-flex { flex-direction: column; gap: 2rem; text-align: center; }
  .hero-photo { flex-basis: auto; width: 190px; }
  .hero-flex .lede { margin: 0 auto 1.5rem; }
}

.hero .kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.hero h1 { max-width: 760px; margin: 0 auto 1.2rem; }

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lede {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

.hero .scroll-hint {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- 5. GRILLE DE CARTES (les domaines) ---------- */
.domains { padding: 2rem 0 5rem; }

.domains-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Chaque carte est un lien entier : toute la surface est cliquable */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(38, 34, 28, 0.12);
  color: inherit;
}

/* L'illustration en haut de la carte.
   REMPLACER PAR UNE PHOTO : supprime le <svg> dans le HTML et mets
   <img src="assets/img/ma-photo.jpg" alt="..."> à la place.
   La classe .card-visual cadre l'image automatiquement. */
.card-visual {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.card-visual img, .card-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card:hover .card-visual img,
.card:hover .card-visual svg { transform: scale(1.04); }
.card-visual img, .card-visual svg { transition: transform 0.4s ease; }

.card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; }

/* Étiquette de famille au-dessus du titre de chaque carte.
   Quatre familles pour aider l'œil à se repérer parmi les 13 cartes.
   Pour changer la famille d'une carte : change la classe tag-xxx. */
.card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.tag-mind { color: var(--sage); }        /* Mind & Method */
.tag-field { color: var(--accent); }     /* Field & Action */
.tag-business { color: #a8842f; }        /* Business & Trade */
.tag-people { color: #8a4f63; }          /* People & Care */

/* Liseré de famille en haut de chaque carte : c'est lui qui rend la
   classification visible au premier coup d'œil. Pour le retirer,
   supprime les 5 lignes ci-dessous. */
.card { border-top: 4px solid var(--line); }
.card.fam-mind { border-top-color: var(--sage); }
.card.fam-field { border-top-color: var(--accent); }
.card.fam-business { border-top-color: #a8842f; }
.card.fam-people { border-top-color: #8a4f63; }

.card-body h3 { font-size: 1.25rem; }

.card-body p { font-size: 0.95rem; margin-bottom: 0; }

.card-body .card-cta {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- 6. PAGES DE DOMAINE ---------- */
.page-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.page-hero .kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 0.8rem;
}

.page-hero p { max-width: 680px; font-size: 1.1rem; margin-top: 1rem; }

.page-content { padding: 3.5rem 0; }

.page-content section { margin-bottom: 3rem; }

.page-content section p { max-width: 720px; }

/* Liste sobre pour les exemples concrets */
.plain-list {
  list-style: none;
  max-width: 720px;
}
.plain-list li {
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  position: relative;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.plain-list li strong { color: var(--ink); }

/* Encadré chiffres / repères */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  min-width: 150px;
}
.fact .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
}
.fact .label { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- 6bis. PHOTOS DANS LES PAGES ----------
   Deux composants prêts à l'emploi, à coller dans n'importe quelle page :

   Photo pleine largeur avec légende :
   <figure class="photo-wide">
     <img src="../assets/img/ma-photo.jpg" alt="Description">
     <figcaption>Une légende courte et concrète.</figcaption>
   </figure>

   Galerie de 2 à 4 photos côte à côte :
   <div class="photo-grid">
     <img src="../assets/img/photo1.jpg" alt="...">
     <img src="../assets/img/photo2.jpg" alt="...">
     <img src="../assets/img/photo3.jpg" alt="...">
   </div>
*/
.photo-wide {
  margin: 1.8rem 0;
  max-width: 720px;
}
.photo-wide img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(38, 34, 28, 0.12);
}
.photo-wide figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.8rem 0;
  max-width: 720px;
}
.photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
}

/* ---------- 7. APPEL À CONTACT (bas de chaque page) ---------- */
.contact-cta {
  background: var(--ink);
  color: #f5f1ea;
  padding: 4rem 0;
  text-align: center;
}
.contact-cta h2 { color: #fff; }
.contact-cta p {
  color: #cfc8bc;
  max-width: 520px;
  margin: 0.8rem auto 1.8rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- 8. NAVIGATION ENTRE DOMAINES ---------- */
.explore-more {
  padding: 3rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.explore-more h2 { text-align: center; margin-bottom: 1.8rem; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
}
.mini-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mini-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--accent); }

/* ---------- 9. PAGE CONTACT ---------- */
.contact-page { padding: 4.5rem 0; text-align: center; }
.contact-page .lede { max-width: 560px; margin: 1rem auto 2.5rem; font-size: 1.1rem; }

.contact-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- 9bis. BANDEAU SOFT SKILLS (page d'accueil) ---------- */
.character-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 4rem 0;
  text-align: center;
}
.character-band .kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.8rem;
}
.character-band p {
  max-width: 560px;
  margin: 0.5rem auto 1.6rem;
}

/* ---------- 10. PIED DE PAGE ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }

/* ---------- 11. ANIMATION D'APPARITION (gérée par js/main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Si l'utilisateur préfère réduire les animations, on les coupe */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .mini-card { transition: none; }
}

/* ---------- 12. ÉCRANS MOYENS ET PETITS (responsive) ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 2.5rem; }
  /* Sur mobile, tous les liens de nav restent visibles : ils passent
     sur une deuxième ligne, en plus compact, sous le nom. */
  .site-header .wrap { padding-top: 0.6rem; padding-bottom: 0.6rem; row-gap: 0.35rem; }
  .nav-links { gap: 0.9rem; flex-wrap: wrap; width: 100%; justify-content: flex-start; }
  .nav-links a { font-size: 0.85rem; }
  .nav-links a.btn-nav { padding: 0.35rem 0.9rem; margin-left: auto; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
}
