﻿

/* Portfolio personnel — styles du portfolio */
*, *::before, *::after {
  box-sizing: border-box;
}

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

:root {;;;;;;;;;;;;;;;;
  --transition: all 0.25s ease;;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-main);
}

body {
  overflow-x: hidden;
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;;;
}

.nav-container {
  margin: 0 auto;
  padding: 0 20px;;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.nav-logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  color: var(--navy);
  text-decoration: none;
}

.nav-logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav-logo-text span {
  font-weight: 800;
  font-size: 1.05rem;
}

.nav-logo-text small {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--blue);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;;
  width: 34px;
  justify-self: end;
}

.bar {
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 150px max(20px, calc((100% - 1180px) / 2)) 90px;

  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);

  overflow: hidden;;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 680px;
}

.hero-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.8rem, 4vw, 4.3rem);
  line-height: 1.05;
  font-weight: 900;
}

.highlight {
  color: var(--blue);
}

.hero-job-title {
  margin: 1.1rem 0 1.75rem;
  color: var(--blue);
  font-size: clamp(1.75rem, 2.3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero-description {
  max-width: 640px;
  margin: 0 0 2.2rem;;
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}

#profile-img {
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  object-fit: cover;
  border: 2px solid rgba(207, 216, 255, 0.95);
  box-shadow: 0 24px 60px rgba(31, 43, 95, 0.18);
  background: #f8fbff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#profile-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(31, 43, 95, 0.14);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  border: 2px solid rgba(207, 216, 255, 0.9);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
}

.btn-primary {;;
  box-shadow: var(--shadow-xs);
}

.btn-outline {;;
}

.btn:hover,
.btn-hover-purple:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  color: var(--white);
}

.btn-outline:hover {;
  border-color: var(--blue);
}


/* Sections */
section {
  padding: 100px 0;
  background: transparent;
  scroll-margin-top: 100px;
}

.section-title {
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--navy);
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.about {
  background: var(--page-bg);
}

.about-content {
  max-width: 920px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.03rem;
  line-height: 1.85;
  color: #33415d;
}

.skills {
  margin-top: 2.7rem;
}

.skills h3 {
  margin-bottom: 1.25rem;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 700;
}

.skills-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.skill-group {
  padding: 1.6rem;
  background: linear-gradient(180deg, var(--white), var(--panel-light));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-group h4 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.skill-list {;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.skill-badge {
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: rgba(30, 94, 255, 0.12);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(30, 94, 255, 0.12);
}

/* Portfolio Section */
.portfolio {
  background: var(--white);
}

.portfolio-grid {
  display: grid;;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project-card {;;;;;
}

.project-card:hover {
  transform: translateY(-8px);;
}

.project-image {
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 94, 255, 0.9), rgba(91, 75, 219, 0.84));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.project-link:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
}

.project-content {
  padding: 1.85rem;
}

.project-content h3 {
  margin: 0 0 0.85rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.project-content p {
  margin: 0 0 1rem;
  color: #4f5f88;
  line-height: 1.75;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;;
}

.project-tech span {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(30, 94, 255, 0.1);
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 600;
}

.project-tech-flex {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
  margin-top: 1.5rem;
}

.project-col {
  background: linear-gradient(180deg, var(--white), var(--panel-light));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: var(--shadow-xs);
}

.project-col h4 {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
}

.project-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.project-col ul li {
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: rgba(30, 94, 255, 0.1);
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 600;
}

.project-col ul li::marker {
  content: none;
}

@media (max-width: 900px) {
  .project-tech-flex {
    grid-template-columns: 1fr;
  }
}

/* CV Section */
.cv-section {
  background: var(--page-bg);
}

.cv-content {
  max-width: 860px;
  margin: 0 auto;
}

.cv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 3rem;
  text-align: center;
}

.cv-header h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 3vw, 2.3rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cv-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.cv-body {
  margin-top: 2rem;
  text-align: left;
}

.cv-section-item {
  margin-bottom: 1.8rem;
}

.cv-section-item h4 {
  margin: 0 0 0.85rem;
  color: var(--navy);
  font-size: 1rem;
}

.cv-section-item p {
  margin: 0.35rem 0;
  color: var(--muted);
  line-height: 1.75;
}

.cv-download {
  text-align: center;
}

.cv-download-note {
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.cv-download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Contact Section */
.contact {
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item i {
  width: 48px;
  min-height: 48px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--white);
}

.contact-item h4 {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-size: 1rem;
}

.contact-item p {
  margin: 0;
  color: var(--muted);
}

.contact-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.contact-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  color: var(--navy);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(207, 216, 255, 0.95);
  border-radius: 18px;
  background: var(--panel-light);
  color: var(--navy);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 94, 255, 0.1);
  background: var(--white);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

span[data-fs-error] {
  min-height: 1.25rem;
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

div[data-fs-success],
div[data-fs-error] {
  min-height: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

div[data-fs-success] {
  color: #16a34a;
}

div[data-fs-error] {
  color: #dc2626;
}

.footer {
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

.footer p {
  margin: 0;
  color: #f8fafc;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE — VERSION CONSOLIDÉE
   ========================================================= */

@media (max-width: 1100px) {
  .hero {
    gap: 2.2rem;
  }

  .contact-content {
    gap: 2rem;
  }
}

@media (max-width: 1000px) {
  .hero {
    min-height: auto;
    padding: 130px max(20px, calc((100% - 760px) / 2)) 70px;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content {
    max-width: 760px;
    margin: 0 auto;
  }

  .hero-description {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    grid-row: 1;
    margin: 0 auto;
  }

  #profile-img {
    width: min(300px, 70vw);
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .portfolio-grid,
  .project-tech-flex,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .cv-card {
    padding: 2.5rem;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 72px 0;
  }.hero {
    padding-top: 110px;
    padding-bottom: 42px;
  }

  .cv-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 78px;
  }

  .nav-container {
    grid-template-columns: auto 1fr auto;
    height: 70px;
    padding: 0 16px;
    overflow: hidden;
  }

  .nav-logo-img {
    width: 54px;
    height: 54px;
  }

  .nav-logo-text {
    display: none;
  }

  .hamburger {
    position: relative;
    z-index: 1002;
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: calc(100dvh - 70px);
    margin: 0;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    overflow-y: auto;
    background: #ffffff;
    list-style: none;
    transform: none;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }.nav-link {
    display: block;
    width: 100%;
    padding: 12px;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
    opacity: 1;
    visibility: visible;
  }

  .nav-link::after {
    bottom: 4px;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }.nav-item-formation .formation-badge-top:hover.hero {
    padding: 105px 16px 36px;
    gap: 1.25rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .hero-job-title {
    margin: 0.8rem 0 1rem;
    font-size: clamp(1.28rem, 4.4vw, 1.8rem);
  }

  .hero-description {
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .btn {
    width: 100%;
    padding: 0.95rem 1.15rem;
  }

  #profile-img {
    width: min(220px, 72vw);
  }

  .section-title {
    margin-bottom: 2rem;
    font-size: 1.85rem;
  }

  .skill-group,
  .cv-card,
  .project-content {
    padding: 1.25rem;
  }

  .project-image {
    min-height: 220px;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-item i {
    width: 44px;
    height: 44px;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .cv-download-buttons {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 14px;
  }

  section {
    padding: 56px 0;
  }.hero {
    padding: 100px 14px 28px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .hero-job-title {
    font-size: clamp(1.1rem, 5.5vw, 1.45rem);
  }

  .project-image {
    min-height: 190px;
  }
}

@media (max-height: 700px) and (min-width: 1001px) {
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 42px;
  }

  section {
    padding: 64px 0;
  }}

/* Réalisations professionnelles : présentation plus proche des projets */
#realisations-professionnelles { background: var(--panel); }
#realisations-professionnelles .cv-card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
#realisations-professionnelles .cv-section-item { padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
#realisations-professionnelles .cv-section-item:last-child { border-bottom: 0; padding-bottom: 0; }

.professional-demo {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.professional-demo-media {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.professional-demo-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1904 / 860;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.professional-demo-media:hover img {
  transform: scale(1.015);
}

.professional-demo-media:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.professional-demo-content {
  padding: 1.5rem;
}

.professional-demo-content .professional-demo-label {
  margin: 0 0 0.4rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.professional-demo-content h4 {
  margin: 0 0 0.8rem;
  color: var(--navy);
  font-size: 1.35rem;
}

.professional-demo-content p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

.professional-demo-content .professional-demo-note {
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--blue);
  background: var(--panel);
  color: var(--text);
  font-size: 0.92rem;
}

.professional-demo .project-tech {
  margin-top: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Cartes projets : hauteur uniforme et détails accessibles au clic */
.portfolio-grid { }
.project-card { display: flex; flex-direction: column; min-width: 0; }
.project-card > a:has(.project-image), .project-card > .project-image { display: block; flex: 0 0 auto; }
.project-card .project-image { min-height: 0; }
.project-card .project-content { display: flex; flex-direction: column; flex: 1; gap: 0; }
.project-card .project-content > p { flex: 1; }
.project-card .project-tech { margin-top: auto; }
.project-details { position: relative; margin-top: 1rem; }
.project-details summary { cursor: pointer;; font-weight: 700;; }
.project-details summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.project-details-panel { z-index: 20; left: -1.1rem; right: -1.1rem; bottom: calc(100% + .35rem);; overflow-y: auto;; background: var(--white); border: 1px solid var(--border);;; }
.project-details-head { font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.project-details-head span { font-weight: 500; color: var(--muted); }
.project-details-panel .project-tech-flex { margin-top: 0;; gap: .7rem; }
.project-details-panel .project-col { padding: .8rem;; }
.project-details-panel .project-col ul li {; }
.project-card:has(.project-details[open]) { }
@media (max-width: 768px) {
  .project-card .project-image { height: 200px; }
  .project-details-panel { left: -.5rem; right: -.5rem; }
}

/* Projets : liens explicites et projets full stack */
.project-type { display: inline-block; vertical-align: middle; margin-left: .4rem; font-size: .72rem; font-weight: 700;;; border: 1px solid var(--border); border-radius: 7px; padding: .3rem .5rem; }
.project-actions { margin-top: 1.1rem; padding-top: .85rem;; }
.project-actions a { display: inline-flex; align-items: center; gap: .55rem;; font-weight: 700; text-decoration: none; }
.project-actions a:hover, .project-actions a:focus-visible { text-decoration: underline; color: var(--navy); }
.project-card-featured { border-color: #a9bfff; }
@media (min-width: 769px) and (max-width: 1100px) { .nav-menu { gap: .85rem; } .nav-link { font-size: .85rem; } }


/* Refonte visuelle inspirée des principes de sobriété et d'accessibilité du design public.
   Portfolio personnel : aucun composant ni bloc-marque officiel DSFR. */
:root {
  --blue: #000091;
  --blue-light: #3558a2;
  --purple: #3558a2;
  --navy: #000071;
  --text: #161616;
  --muted: #4b5563;
  --white: #ffffff;
  --page-bg: #ffffff;
  --panel: #f6f6f6;
  --panel-light: #ffffff;
  --border: #dddddd;
  --shadow: 0 4px 16px rgba(0, 0, 80, .07);
  --shadow-sm: 0 2px 9px rgba(0, 0, 80, .05);
  --shadow-xs: 0 1px 6px rgba(0, 0, 80, .05);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --font-main: Arial, Helvetica, sans-serif;
}
html,body { background: var(--page-bg); color: var(--text); }
.navbar { background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: none; }
.nav-container { max-width: 1380px; height: 88px; }
.nav-logo a, .nav-logo-text span { color: var(--navy); }
.nav-link { color: var(--navy); }
.nav-link:hover, .nav-link:focus-visible { color: var(--blue); }
.hero { }
.hero-title, .hero-job-title, .section-title { color: var(--navy); }
.hero-title .highlight { color: var(--blue); }
.hero-description { color: #252c43; }
.hero-chips { display: flex; flex-wrap: wrap;;; }
.hero-chips span {;;;;;;; }
.btn, .project-actions a { border-radius: 5px; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }
.btn-outline { color: var(--blue); border-color: var(--blue); background: transparent; }
.btn-outline:hover { background: #ececfe; color: var(--navy); }
.portfolio, .about, .cv, .contact { background: #fff; }
.portfolio-grid { gap: 1.35rem; align-items: stretch; }
.project-card { background: #fff; border: 1px solid #dce0eb; border-radius: 10px; box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.project-card:hover { border-color: #a8b6dc; box-shadow: var(--shadow); }
.project-card .project-image { height: 210px; }
.project-card .project-content { padding: 1.2rem; }
.project-card h3 { color: var(--navy); }
.project-tech span, .skill-badge { background: #ececfe; color: var(--navy); border: 1px solid #e1e4f4; border-radius: 999px; }
.project-type { background: var(--blue); color: #fff; border-color: var(--blue); }
.project-actions { border-top: 1px solid #e8e8ee; }
.project-actions a { border: 1px solid var(--blue); padding: .6rem .85rem; color: var(--blue); }
.project-actions a:hover, .project-actions a:focus-visible { background: #ececfe; color: var(--navy); }
.project-card:has(.project-details[open]) { position: relative;; }
.project-details-panel {; }
.footer { background: var(--navy); }
:where(a,button,input,textarea,summary):focus-visible { outline: 3px solid #e1000f; outline-offset: 3px; }
.hamburger { background: transparent; border: 0; cursor: pointer; padding: .65rem; }
@media(max-width:768px) { .nav-container { height: 72px; } .project-card .project-image { height: 190px; } .hero-chips { gap: .45rem; } .hero-chips span { font-size: .76rem; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .01ms!important; transition-duration: .01ms!important; } }


/* Étiquettes techniques : style rectangulaire cohérent avec les boutons,
   mais sans interaction ni effet de survol. */
.project-tech span,
.skill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .8rem;
  background: #ececfe;
  color: #000091;
  border: 1px solid #000091;
  border-radius: 4px;
  box-shadow: none;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: default;
  transition: none;
}
.skill-list { display: flex; flex-wrap: wrap; gap: .65rem; }
.project-tech { gap: .55rem; }
@media (max-width: 480px) {
  .project-tech span, .skill-badge { padding: .45rem .65rem; font-size: .8rem; }
}


/* Harmonisation accueil et panneaux de stack technique */
.hero { background: #ffffff; }
.hero-chips { margin-top: 1.4rem; gap: .55rem; }
.hero-chips span {
  display: inline-flex;
  align-items: center;
  background: #ececfe;
  border: 1px solid #000091;
  color: #000091;
  border-radius: 4px;
  padding: .5rem .75rem;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: none;
  cursor: default;
  transition: none;
}
.project-details summary { color: #000091; }
.project-details-panel .project-col { background: #fff; border: 1px solid #dddddd; border-radius: 6px; box-shadow: none; }
.project-details-panel .project-col ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.project-details-panel .project-col ul li {
  display: inline-flex;
  align-items: center;
  padding: .5rem .7rem;
  border: 1px solid #000091;
  border-radius: 4px;
  background: #ececfe;
  color: #000091;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: none;
  cursor: default;
  transition: none;
}
@media(max-width:480px) { .hero-chips span { padding: .45rem .65rem; font-size: .8rem; } }


/* Étiquettes de compétences et de stack : fond blanc, contour bleu. */
.project-tech span,
.skill-badge,
.hero-chips span,
.project-details-panel .project-col ul li {
  background: #ffffff;
}


/* Finition : hiérarchie des projets et panneaux techniques dans le flux. */
.portfolio-intro { text-align: center; color: var(--muted); margin: -1.4rem auto 2rem; max-width: 680px; line-height: 1.6; }
.portfolio-subtitle { color: var(--navy); font-size: 1.35rem; font-weight: 750; margin: 3.5rem 0 1.5rem; }
.portfolio-grid-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portfolio-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portfolio-grid-secondary .project-card { box-shadow: none; }
.project-card:has(.project-details[open]) { overflow: hidden; z-index: auto; }
.project-details-panel { position: static; inset: auto; max-height: none; overflow: visible; margin-top: .65rem; padding: 1rem; border-radius: 6px; box-shadow: none; }
.project-details-panel .project-tech-flex { grid-template-columns: 1fr; }
.project-details summary { display: list-item; padding: .75rem 0; }
@media(max-width:1000px) { .portfolio-grid-primary,.portfolio-grid-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .portfolio-grid-primary,.portfolio-grid-secondary { grid-template-columns: 1fr; } .portfolio-subtitle { margin-top: 2.5rem; } }


/* Réalisations professionnelles : contraintes de l'environnement sécurisé */
.professional-constraints {
  margin: 2rem 0 0;
  padding: 1.5rem;
  border: 2px solid var(--blue);
  border-left-width: 8px;
  border-radius: var(--radius);
  background: #f5f5fe;
  text-align: left;
}

.professional-constraints-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.professional-constraints-icon {
  display: inline-flex;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.1rem;
}

.professional-constraints-kicker {
  margin: 0 0 .3rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.professional-constraints h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.35;
}

.professional-constraints > p {
  margin: .75rem 0 0;
  color: var(--text);
  line-height: 1.7;
}

.professional-constraints-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.25rem;
}

.professional-constraints-tags span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .7rem;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--white);
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .professional-constraints {
    padding: 1.2rem;
    border-left-width: 5px;
  }

  .professional-constraints-heading {
    flex-direction: column;
    gap: .75rem;
  }
}
