/* ==========================================================================
   clementbattistini.fr — feuille de style principale
   Sommaire :
   01. Variables et reset
   02. Base et typographie partagée
   03. En-tête et navigation
   04. Hero
   05. Parcours
   06. Expertise
   07. Réalisations et valeurs (cartes à filet)
   08. Projets
   09. Chiffres
   10. Formation
   11. FAQ
   12. Contact
   13. Modale mentions légales
   14. Pied de page
   15. Animations d'apparition
   16. Responsive (à conserver en fin de fichier)
   ========================================================================== */

/* ==========================================================================
   01. Variables et reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #faf8f3;
  --bg-alt: #f4efe4;
  --sand: #f0e7d4;
  --ink: #16202e;
  --dim: #5a6573;
  --navy: #16365c;
  --navy-deep: #0f243c;
  --navy-soft: rgba(22, 54, 92, 0.08);
  --gold: #d8a94b;
  --gold-deep: #a9802f;
  --line: rgba(22, 32, 46, 0.12);
  --line-strong: rgba(22, 32, 46, 0.28);

  --font-title: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================================================
   02. Base et typographie partagée
   ========================================================================== */

/* Conteneur commun à toutes les sections */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(58px, 7.6vw, 100px) clamp(20px, 5vw, 64px);
}

/* Fonds de section */
.section--bg {
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
}

.section--line-top {
  border-top: 1px solid var(--line);
}

.section--line-bottom {
  border-bottom: 1px solid var(--line);
}

/* Sur-titre numéroté ("01 · Parcours") */
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.eyebrow--gold {
  color: var(--gold);
}

/* Titre de section */
.h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.h2--light {
  color: #fff;
}

/* Blocs d'en-tête de section */
.section-head {
  max-width: 30em;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head--roomy {
  max-width: 30em;
  margin-bottom: clamp(34px, 4.2vw, 54px);
}

.section-head--full {
  margin-bottom: clamp(34px, 4.2vw, 52px);
}

/* Paragraphe courant des cartes */
.card-text {
  font-size: 16px;
  line-height: 1.62;
  color: var(--dim);
  margin: 0;
}

/* Boutons */
.btn-cta {
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-cta:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line-strong);
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  transition: border-color 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--navy);
}

/* ==========================================================================
   03. En-tête et navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--dim);
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--navy);
}

.nav-cta {
  font-size: 14px;
  padding: 11px 22px;
}

/* Bouton burger */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

/* Menu mobile déroulant */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(250, 248, 243, 0.98);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px clamp(20px, 5vw, 64px) 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-link {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.nav-mobile-link--cta {
  margin-top: 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  padding: 15px 22px;
  border-radius: 999px;
  border-bottom: none;
}

/* ==========================================================================
   04. Hero
   ========================================================================== */

.hero {
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 85% 0%, var(--sand) 0%, var(--bg) 60%);
}

.hero-grid {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 6.6vw, 86px) clamp(20px, 5vw, 64px) clamp(54px, 7.4vw, 92px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-soft);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(42px, 6.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}

.hero-tagline {
  font-family: var(--font-title);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 26px;
}

.hero-lead {
  font-size: clamp(17px, 2.3vw, 19px);
  line-height: 1.66;
  color: var(--dim);
  max-width: 31em;
  margin: 0 0 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .btn-cta {
  font-size: 15px;
  padding: 16px 30px;
}

.hero-photo {
  position: relative;
  justify-self: end;
  max-width: 100%;
}

/* Bloc marine décalé derrière la photo */
.hero-photo-block {
  position: absolute;
  inset: auto -22px -22px 22px;
  top: 34px;
  background: var(--navy);
  border-radius: 18px;
}

/* Carré doré en haut à droite */
.hero-photo-frame {
  position: absolute;
  right: -14px;
  top: -14px;
  width: 84px;
  height: 84px;
  border: 2px solid var(--gold);
  border-radius: 18px;
  opacity: 0.6;
}

.hero-photo img {
  position: relative;
  width: min(440px, 82vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 30px 60px -28px rgba(16, 39, 61, 0.5);
}

/* ==========================================================================
   05. Parcours
   ========================================================================== */

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(58px, 7.6vw, 100px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 5vw, 76px);
}

.about-text {
  font-size: clamp(17px, 2.2vw, 19.5px);
  line-height: 1.74;
  color: var(--ink);
}

.about-text p {
  margin: 0 0 22px;
  color: var(--dim);
}

/* Premier paragraphe en couleur pleine, dernier sans marge basse */
.about-text p:first-child {
  color: var(--ink);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   06. Expertise
   ========================================================================== */

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 5vw, 72px);
}

.expertise-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.expertise-num {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-deep);
  min-width: 30px;
}

.expertise-title {
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.38;
  color: var(--ink);
  font-weight: 400;
}

.expertise-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim);
  margin-top: 9px;
}

/* ==========================================================================
   07. Réalisations et valeurs (cartes à filet)
   ========================================================================== */

/* Carte au filet marine, partagée par Réalisations et Valeurs */
.rule-card {
  border-top: 2px solid var(--navy);
  padding-top: 24px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
}

.achievement-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 25px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 52px);
}

.value-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 25px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}

.values-heading {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 20em;
  color: var(--ink);
  text-wrap: balance;
}

/* ==========================================================================
   08. Projets
   ========================================================================== */

.projects {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-row {
  display: grid;
  grid-template-columns: auto 0.85fr 1.15fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.project-logo {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.project-logo--tight {
  padding: 8px;
}

.project-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.project-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 29px);
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.project-role {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-soft);
  padding: 7px 14px;
  border-radius: 999px;
}

.project-text {
  font-size: clamp(16px, 2.1vw, 18px);
  line-height: 1.66;
  color: var(--dim);
  margin: 0;
}

/* ==========================================================================
   09. Chiffres
   ========================================================================== */

.section--navy {
  background: var(--navy);
  color: #fff;
}

.wrap--stats {
  padding-top: clamp(58px, 7.6vw, 98px);
  padding-bottom: clamp(58px, 7.6vw, 98px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat {
  border-top: 2px solid rgba(255, 255, 255, 0.18);
  padding-top: 20px;
}

.stat-value {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

.institutions {
  margin-top: clamp(42px, 5.4vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: clamp(30px, 3.4vw, 40px);
}

.institutions-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
}

.institutions-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

.institution {
  display: flex;
  align-items: center;
  gap: 13px;
}

.institution-logo {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.institution-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.institution-name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}

/* ==========================================================================
   10. Formation
   ========================================================================== */

.education-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 52em;
}

.education-item {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.education-item--last {
  border-bottom: 1px solid var(--line);
}

.education-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 25px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}

.education-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  margin: 22px 0 0;
  font-style: italic;
}

/* ==========================================================================
   11. FAQ
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 52em;
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item summary {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--dim);
  margin: 14px 0 0;
}

.faq-item a {
  color: var(--navy);
}

/* ==========================================================================
   12. Contact
   ========================================================================== */

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(62px, 8vw, 104px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}

.contact-eyebrow {
  margin-bottom: 20px;
}

.contact-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
}

.contact-lead {
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.7;
  color: var(--dim);
  margin: 0;
  max-width: 34em;
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  padding: 26px;
  border-radius: 14px;
}

.contact-form input,
.contact-form textarea {
  font-size: 15px;
  font-family: var(--font-body);
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
}

.contact-form button {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.contact-form button:hover {
  background: var(--navy-deep);
}

/* Mention d'information RGPD sous le formulaire */
.form-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dim);
  margin: 2px 0 0;
}

.form-note a {
  color: var(--navy);
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  padding: 22px 26px;
  border-radius: 14px;
  transition: transform 0.25s ease;
}

.card-link:hover {
  transform: translateY(-2px);
}

.card-link-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.card-link-value {
  font-size: 18px;
  font-weight: 600;
}

/* ==========================================================================
   13. Modale mentions légales
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22, 32, 46, 0.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal.is-open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 18px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(16, 39, 61, 0.35);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--dim);
  line-height: 1;
}

.modal-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 64px);
}

.modal-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 26px);
  margin: 0 0 28px;
  color: var(--ink);
  padding-right: 32px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--dim);
}

.modal-label {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.modal-body a {
  color: var(--navy);
}

/* ==========================================================================
   14. Pied de page
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 64px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 34em;
}

.footer-text strong {
  color: #fff;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

/* ==========================================================================
   15. Animations d'apparition
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-ready [data-reveal] {
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-ready [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Respect de la préférence système "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .reveal-ready [data-reveal] {
    transition: none;
  }
}

/* ==========================================================================
   16. Responsive
   Ces règles doivent rester en fin de fichier : à spécificité égale,
   c'est la dernière déclaration qui l'emporte.
   ========================================================================== */

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  .hero-grid,
  .about-grid,
  .achievements-grid,
  .contact-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-photo {
    order: -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .expertise-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
