.minimalist-pro { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; background: var(--color-surface); color: var(--color-text); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); border-bottom: 1px solid var(--color-border); position: fixed; width: 100%; top: 0; z-index: 1000; box-sizing: border-box; /* important pour éviter l’élargissement avec le padding */ overflow-x: hidden; /* empêche toute barre de défilement horizontale */ overflow-y: hidden; /* évite une barre verticale dans le header fixe */ height: var(--header-height, 80px); transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; } /* Quand la page est tout en haut: enlever la bordure (et l’ombre pour un rendu plat) */ .minimalist-pro.is-top { border-bottom-color: transparent; box-shadow: none; } .minimalist-pro .logo { font-weight: 700; font-size: 1.25rem; min-width: 0; /* permet de rétrécir correctement en flex */ } .minimalist-pro .name { color: inherit; } .minimalist-pro .tagline { display: block; font-size: 0.85rem; color: var(--color-muted); font-weight: 400; } .minimalist-pro nav ul { display: flex; list-style: none; gap: 2rem; flex-wrap: wrap; /* évite le débordement: passe à la ligne si pas assez de place */ margin: 0; padding: 0; } .minimalist-pro nav a { text-decoration: none; color: inherit; font-weight: 600; transition: color 0.2s ease; white-space: nowrap; /* garde chaque lien sur une ligne, mais la UL peut retourner à la ligne */ } .minimalist-pro nav a:hover { color: var(--color-accent); } .minimalist-pro .cta { display: inline-flex; align-items: center; gap: 0.75rem; } .minimalist-pro .button { background: var(--color-accent); color: #fff; padding: 0.55rem 1rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; flex-shrink: 0; /* ne rétrécit pas, mais ne force pas l’élargissement grâce au wrap de la UL */ transition: background-color 0.2s ease, box-shadow 0.2s ease; } .minimalist-pro .button:hover { background: var(--color-accent-600); box-shadow: 0 6px 14px rgba(255, 107, 53, 0.2); } /* Bouton de bascule du thème */ .theme-toggle__btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.05s ease; cursor: pointer; } .theme-toggle__btn:hover { background: var(--color-accent-50); border-color: var(--color-accent-100); } .theme-toggle__btn:active { transform: translateY(0.5px); } /* Réduit l’espace entre liens sur écrans moyens pour limiter les risques de débordement */ @media (max-width: 1024px) { .minimalist-pro nav ul { gap: 1rem; } }