/* ----- Variables & Reset ----- */
:root {
    --primary-color: #277599;
    --secondary-color: #1b3a4b;
    --accent-color: #00b4d8;
    --light-gray: #f6f8fa;
    --medium-gray: #eef3f8; /* Un peu plus doux */
    --dark-gray: #222f3e;
    --text-color: #2d3a4a;
    --text-light: #fff;
    --base-radius: 12px; /* Un peu plus subtil */
    --base-shadow: 0 8px 24px rgba(39, 117, 153, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Hauteur du header */
}

#propos, #entreprise, #competences, #projets, #contact {
  scroll-margin-top: 100px;
}
#entreprise {
  scroll-margin-top: 100px;
}
#competences {
  scroll-margin-top: 100px;
}
#projets {
  scroll-margin-top: 100px;
}
#contact {
  scroll-margin-top: 100px;
}
body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: #fff;
    color: var(--text-color);
    font-size: 17px;
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: auto;
    margin-left: auto;
    margin-right: auto;
}

.text-center { text-align: center; }
.intro-text { max-width: 700px; margin: 0 auto 32px auto; color: #5a6878; }

/* ----- Header & Navigation ----- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(27, 58, 75, 0.85);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(27, 58, 75, 0.10);
    transition: background 0.3s;
}

.header-content {
    max-width: 1350px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4vw;
    height: 80px;
}

.logo h1 {
    font-size: 1.4em;
    color: var(--text-light);
    letter-spacing: 1px;
    font-weight: 600;
}
.logo h1:hover { color: var(--accent-color); }

header nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
}

header nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    position: relative;
    text-decoration: none;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -2px;
    width: 0; height: 2px;
    background: var(--accent-color);
    transition: width 0.3s, left 0.3s;
    transform: translateX(-50%);
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #fff;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 50%;
    left: 50%;
}


/* ----- Hero Section ----- */
.hero-section {
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 80px 4vw 60px;
    text-align: center;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5em, 6vw, 4em); /* Responsive font size */
    margin-bottom: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.hero-section .tagline {
    color: #e0f7fa;
    font-size: clamp(1em, 2vw, 1.2em);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

/* ----- Sections générales ----- */
section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,2,.6,1), transform 0.8s cubic-bezier(.4,2,.6,1);
    will-change: opacity, transform;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}
.alternate-bg { background: var(--light-gray); }
.white-bg { background: #fff; }

/* ----- Vagues SVG de séparation ----- */
.wave-divider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    line-height: 0;
    height: 60px;
    overflow: hidden;
}
.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}
.white-bg + .wave { background: #fff; }

/* ----- Titres de section ----- */
h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    font-weight: 700;
}

h2::after {

    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 12px auto 48px;
    border-radius: 2px;
}
h3 {
    font-size: 1.25em;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

/* ----- Section "À Propos" & Soft Skills ----- */
.soft-skills { margin-top: 32px; }
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.skills-list span {
    background: var(--medium-gray);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95em;
}

/* ----- Grille & Cartes ----- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}



.card {
    background: #fff;
    padding: 28px;
    border-radius: var(--base-radius);
    box-shadow: var(--base-shadow);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
    border: 1px solid #e3eaf2;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(39, 117, 153, 0.15);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ----- Boutons ----- */
.btn, .btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.25s ease;
    margin: 10px 8px;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--accent-color);
}

#contact .btn-secondary {
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    position: relative;
}

.btn-link::after {
    content: '→';
    margin-left: 8px;
    transition: margin-left 0.2s;
}

.btn-link:hover::after {
    margin-left: 14px;
}


/* Ajustement des cartes pour la section compétences techniques */



#competences .grid-layout {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

#competences .card {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 260px;
    max-width: 350px; /* Corrigé ici */
    height: 350px;
    box-sizing: border-box;
    text-align: left;
}

/* Responsive : hauteur auto sur mobile */
@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
    .card {
        min-width: auto;
        max-width: 100%;
    }
}




/* Pour la section projets : même hauteur pour toutes les cartes */
#projets .grid-layout {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

#projets .card {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 280px;
    max-width: 350px;
    height: 100%;
    box-sizing: border-box;
}

#projets .grid-layout {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

#projets {
    margin-top: 5% !important;
}

/* ----- Timeline (Parcours) ----- */

#parcours {
    margin-top: -20% !important;
}


.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--medium-gray);
    top: 0;
    bottom: 0;
    left: 15px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-icon {
    position: absolute;
    width: 32px;
    height: 32px;
    left: 0;
    top: 0;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 1;
    border: 4px solid var(--light-gray);
}

.timeline-content .date {
    font-size: 0.9em;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 8px;
}

/* ----- Certification ----- */

.certif-img {
    height: 80px;
    width: auto;
    margin-bottom: 12px;
    border-radius: 12px;      /* coins arrondis */
    background: #f6f8fa;     /* fond doux */
    padding: 6px;            /* espace autour de l'image */
    box-shadow: 0 2px 8px rgba(39,117,153,0.08); /* ombre légère */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Veille Technologique ----- */
.badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.badge {
    background: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 50px;
    padding: 7px 6px;
    font-size: 1em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(39,117,153,0.10);
}
.veille-card {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.veille-grid {
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(350px, 1fr)); /* Plus large que d'origine */
    gap: 32px;
}

.veille-row {
    display: flex;
    flex-direction: row;
    gap: 40px; /* espace entre les cartes */
    justify-content: center;
    flex-wrap: nowrap; /* empêche un retour à la ligne */
}

.veille-row .card {
    min-width: 300px; /* largeur minimum plus grande */
    flex: 1 1 370px;   /* les cartes grandissent, mais restent alignées */
    max-width: 500px;  /* ajuste pour élargir encore si besoin */
    margin-top: 20%;
}

section.text-center {
    min-height: 800px;  
    padding-top: 50px;
    padding-bottom: 50px;
}

.container .text-center-veille {
    max-width: 1400%; 
    margin: 0 auto;
    padding: 50 6vw;    /* ajoute du padding si tu veux plus d'espace sur les côtés */

}

.carte-anssi,
.carte-image,
.carte-contenu,
.veille-row
.veille-card {
  width: 100%;
  max-width: 320px; /* Limite la carte sur desktop, mais autorise le 100% sur mobile */
  min-width: 0;
  margin-top: 5%;
}

@media (max-width: 700px) {
  .carte-anssi,
  .carte-image,
  .card-veille-card,
  .veille-row,
  .carte-contenu{
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  .veille-row {
    flex-direction: column !important;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap !important;
  }
}

.carte-image {
  width: 100%;
  height: 120px; /* hauteur de la zone d'image en haut */
  display:block;
  object-fit: cover;
  max-width: 100%;
  background-image: url('../img/anssi.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 10px 10px 0 0;
}

.carte-image-2 {
  width: 100%;
    height: 50px; /* hauteur de la zone d'image en haut */
  display:block;
  object-fit: cover;
  max-width: 100%;
  background-image: url('../img/it_connect.png');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 20%;
}

.carte-image-3 {
  width: 100%;
    height: 120px; /* hauteur de la zone d'image en haut */
  display:block;
  object-fit: cover;
  max-width: 100%;
  background-image: url('../img/osint.png');
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

.carte-contenu {
  padding: 20px;
}

section.visible.veille-section {
    opacity: 1;
    transform: translateY(0);
    margin-top: 6% !important;
    margin-bottom: 10% !important;
}



/* ----- Footer ----- */
footer {
    background: var(--dark-gray);
    color: #cfd8dc;
    text-align: center;
    padding: 32px 0;
    font-size: 0.95em;
}

/* ----- Responsive & Mobile Menu ----- */
.nav-toggle {
    display: none; /* Caché par défaut */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .header-content { height: 70px; }
    html { scroll-padding-top: 70px; }
    
    .nav-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 0; right: -100%; /* Commence en dehors de l'écran */
        width: 100%; height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    }
    .nav-menu li a { font-size: 1.5em; }

    /* Styles quand le menu est ouvert */
    body.nav-open .nav-menu { right: 0; }
    body.nav-open .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.nav-open .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .veille-themes { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    body { font-size: 16px; }
    section { padding: 60px 0; }
    h2 { font-size: 1.8em; }
    .timeline::before { left: 8px; }
    .timeline-item { padding-left: 35px; }
    .timeline-icon { width: 20px; height: 20px; border-width: 3px; }
}
/* ----- Fade-in animation for sections ----- */
section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,2,.6,1), transform 0.8s cubic-bezier(.4,2,.6,1);
    will-change: opacity, transform;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ----- Animated underline for navbar ----- */
header nav ul li a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -2px;
    width: 0; height: 2px;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(.4,2,.6,1), left 0.3s cubic-bezier(.4,2,.6,1);
    transform: translateX(-50%);
}
header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 80%;
    left: 50%;
}

/* ----- Animated buttons (wave effect) ----- */
.btn, .btn-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before, .btn-secondary::before {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    background: var(--primary-color);
    opacity: 0.10;
    border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: width 0.5s, height 0.5s;
    z-index: 0;
}
.btn:hover::before, .btn-secondary:hover::before {
    width: 220%;
    height: 220%;
}

/* ----- Card hover effect ----- */
.card {
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s cubic-bezier(.4,2,.6,1);
    box-shadow: 0 8px 24px rgba(0,180,216,0.08);
}
.card:hover {
    transform: translateY(-10px) scale(1.03) rotate(-1deg);
    box-shadow: 0 16px 40px rgba(0,180,216,0.18);
    border-color: var(--accent-color);
}

/* ----- Timeline animation ----- */
.timeline-item {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(.4,2,.6,1), transform 0.8s cubic-bezier(.4,2,.6,1);
}
.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ----- Veille item hover effect ----- */
.veille-item {
    transition: box-shadow 0.3s, transform 0.3s;
}
.veille-item:hover {
    box-shadow: 0 8px 32px rgba(0,180,216,0.13);
    transform: scale(1.03) rotate(1deg);
    background: #e0f7fa;
}

/* ----- Animated wave SVG (optional) ----- */
.wave path {
    animation: waveMove 6s linear infinite alternate;
}
@keyframes waveMove {
    0% { d: path("M0,96L80,117.3C160,139,320,181,480,186.7C640,192,800,160,960,138.7C1120,117,1280,107,1360,101.3L1440,96L1440,320L0,320Z"); }
    100% { d: path("M0,120L80,140C160,160,320,200,480,210C640,220,800,180,960,160C1120,140,1280,130,1360,125L1440,120L1440,320L0,320Z"); }
}

/* ----- Fade-in on scroll JS ----- */

@media (max-width: 900px) {
    .hero-section {
        padding-top: 70px;
    }
}

.skills-marquee {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: #f6f8fa;
    padding: 16px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.skills-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    align-items: center;
}


@keyframes marquee {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.skills-marquee img {
    height: 80px;
    width: auto;
    display: block;
    filter: grayscale(0.2);
    transition: filter 0.2s;
    margin-right: 40px;
}

.skills-marquee img:last-child {
    margin-right: 0; /* Pas d’espace après la dernière image */
}

/* Pour la page projet Zabbix - épuré et cohérent avec ton thème */

/* Centrage et largeur */
.container.text-center {
    max-width: 700px;
    margin: 48px auto;
    text-align: center;
}

/* Titre principal */
.hero-title {
    font-size: 2.5em;
    color: var(--primary-color, #277599);
    margin-bottom: 24px;
    margin-top: 100px;
    font-weight: bold;
}

/* Texte d’intro */
.intro-text {
    color: #5a6878;
    margin-bottom: 32px;
    margin-top: 24px;
    font-size: 1.15em;
    text-align: center;
}

/* Bloc procédure */
.veille{
    background: none !important;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(39,117,153,0.05);
    padding: 32px;
    text-align: left;
}

section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(39,117,153,0.05);
    padding: 32px;
    text-align: left;
}

/* Sous-titre procédure */
section h2 {
    font-size: 1.3em;
    color: var(--primary-color, #277599);
    margin-bottom: 16px;
    font-weight: bold;
}

/* Texte procédure */
section p {
    color: #5a6878;
    font-size: 1em;
}

/* Bouton retour */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1em;
    text-decoration: none;
    background: var(--accent-color, #00b4d8);
    color: var(--secondary-color, #fff);
    border: none;
    margin-top: 16px;
    transition: background 0.2s;
    cursor: pointer;
}
.btn:hover {
    background: var(--primary-color, #277599);
    color: #fff;
}




/* présentation */

.presentation-duo {
  display: flex;
  justify-content: stretch;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 11000px;
  margin: 0 auto 150px auto;
  min-height: 220px;
  position: relative;
  margin-top: 100px;
}

/* Parties à gauche et à droite */
.presentation-bts, .presentation-entreprise {
  flex: 1 1 0;
  padding: 24px 5vw 24px 5vw;
  font-size: 1em; /* texte plus petit */
  line-height: 1.55;
}

/* Titres plus petits et alignés à gauche/droite */
.presentation-bts h2,
.presentation-entreprise h2 {
  font-size: 1.25em;
  color: #277599;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
  letter-spacing: 0.5px;
}

/* Ligne centrale verticale */
.presentation-duo::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 50%;
  width: 2px;
  background: #e0e0e0;
  transform: translateX(-1px);
}

/* Responsive mobile */
@media (max-width: 900px) {
  .presentation-duo {
    flex-direction: column;
    min-height: unset;
  }
  .presentation-duo::before {
    display: none;
  }
  .presentation-bts, .presentation-entreprise {
    padding: 16px 5vw;
    font-size: 0.95em;
  }
  .presentation-bts h2,
  .presentation-entreprise h2 {
    font-size: 1.12em;
    text-align: center;
  }
}


/* ----- Contact ----- */
#contact .contact-links { margin-top: 18px; }

