/* ═══════════════════════════════════════════
   Home page FTP — Corporate communication theme
   ═══════════════════════════════════════════ */

/* Police moderne et professionnelle depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Variables principales du design */
:root {
  --color-bg: #f4f1ec;
  --color-bg-soft: #fbf8f3;
  --color-card: rgba(255, 255, 255, 0.78);
  --color-dark: #17211f;
  --color-text: #34403d;
  --color-muted: #6e7a76;
  --color-border: rgba(23, 33, 31, 0.12);
  --color-primary: #17463c;
  --color-primary-light: #236b5d;
  --color-accent: #d9a441;
  --color-accent-soft: rgba(217, 164, 65, 0.16);
  --shadow-soft: 0 24px 70px rgba(23, 33, 31, 0.12);
  --shadow-card: 0 14px 35px rgba(23, 33, 31, 0.08);
  --radius-large: 32px;
  --radius-medium: 22px;
  --radius-small: 999px;
  --font-main: 'Inter', Arial, sans-serif;
}

/* Reset simple pour éviter les espacements par défaut */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Réglages généraux de la page */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 10%, rgba(217, 164, 65, 0.22), transparent 28rem),
    radial-gradient(circle at 85% 15%, rgba(35, 107, 93, 0.18), transparent 30rem),
    linear-gradient(135deg, var(--color-bg), #ece6dc);
  overflow-x: hidden;
}

/* Canvas décoratif en arrière-plan */
#brand-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.42;
  pointer-events: none;
}

/* Conteneur principal au-dessus du décor */
.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 32px;
}

/* Grande carte d'introduction */
.hero-card {
  overflow: hidden;
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 246, 0.76)),
    linear-gradient(120deg, rgba(23, 70, 60, 0.08), transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

/* Forme graphique pour rappeler une identité d'agence */
.hero-card::after {
  content: '';
  position: absolute;
  right: -90px;
  top: -100px;
  width: 320px;
  height: 320px;
  border-radius: 48%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  opacity: 0.12;
  transform: rotate(18deg);
}

/* Petite mention au-dessus des titres */
.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 70, 60, 0.14);
  border-radius: var(--radius-small);
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Grille du haut de page */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: end;
}

/* Titre principal */
h1 {
  max-width: 760px;
  color: var(--color-dark);
  font-size: clamp(2.4rem, 7vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

/* Texte d'introduction */
.hero-text {
  max-width: 680px;
  margin-top: 24px;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

/* Zone des deux boutons principaux */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Style commun des boutons */
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-small);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Bouton principal */
.primary-button {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 14px 28px rgba(23, 70, 60, 0.22);
}

/* Bouton secondaire */
.secondary-button {
  color: var(--color-primary);
  border: 1px solid rgba(23, 70, 60, 0.18);
  background: rgba(255, 255, 255, 0.64);
}

/* Effet au survol des boutons */
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* Encadré d'information dans la hero */
.profile-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius-medium);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(23, 70, 60, 0.96), rgba(35, 107, 93, 0.9)),
    var(--color-primary);
  box-shadow: var(--shadow-card);
}

/* Petite étiquette dans l'encadré */
.profile-kicker {
  display: block;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nom dans l'encadré */
.profile-panel strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
}

/* Texte descriptif de l'encadré */
.profile-panel p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
}

/* Section des projets */
.projects-section {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

/* En-tête de section */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

/* Titre secondaire */
h2 {
  color: var(--color-dark);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Grille responsive des cartes */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Carte de lien */
.project-card {
  position: relative;
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  color: var(--color-text);
  background: var(--color-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

/* Flèche de sortie visuelle */
.project-card::after {
  content: '↗';
  position: absolute;
  right: 20px;
  top: 18px;
  color: var(--color-primary);
  font-weight: 800;
  opacity: 0.35;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Mise en avant des deux liens importants */
.project-card.featured {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-light));
}

/* Étiquette de catégorie */
.project-label {
  display: inline-flex;
  margin-bottom: 32px;
  padding: 6px 10px;
  border-radius: var(--radius-small);
  color: var(--color-primary);
  background: var(--color-accent-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Étiquette adaptée aux cartes sombres */
.project-card.featured .project-label {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* Titre de carte */
.project-card strong {
  display: block;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1.15;
}

/* Description de carte */
.project-card small {
  display: block;
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

/* Description adaptée aux cartes sombres */
.project-card.featured small {
  color: rgba(255, 255, 255, 0.72);
}

/* Interaction au survol des cartes */
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 70, 60, 0.26);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

/* Interaction spécifique pour les cartes mises en avant */
.project-card.featured:hover {
  background: linear-gradient(145deg, #12382f, var(--color-primary-light));
}

/* Animation de la flèche au survol */
.project-card:hover::after {
  transform: translate(3px, -3px);
  opacity: 1;
}

/* Pied de page */
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Animation d'apparition utilisée par JavaScript */
.reveal-card {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Adaptation tablette */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 460px;
  }

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

/* Adaptation mobile */
@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 24px;
  }

  .hero-card,
  .projects-section {
    border-radius: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 150px;
  }

  .site-footer {
    width: min(100% - 24px, 1120px);
  }
}
