:root {
	--green: #4cae4f;
	--green-dark: #3d9340;
	--text: #222;
	--muted: #666;
	--light: #f7f7f7;
	--border: #e9e9e9;
	--card: #ffffff;
}

*{margin:0;padding:0;box-sizing:border-box;}

html {
	scroll-behavior: smooth;
}

body {
	font-family:'Lato',sans-serif;
	color: var(--text);
	line-height: 1.5;
	background: #fff;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--green);
	text-decoration: none;
}

h2 {
	text-align: center;
	font-size: 2.2rem;
	margin-bottom: 40px;
	color: #333;
}

.container {
	width: min(1100px, 90%);
	margin: 0 auto;
}

.narrow {
	width: min(760px, 90%);
	text-align: left;
}

/* HEADER */

.header {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	background:white;
	z-index:1000;
	display:flex;
	transform:translateY(-100%);
	transition:0.3s ease;
	box-shadow:0 2px 10px rgba(0,0,0,0.05);
	padding: 12px 25px
}

.header.visible {
	transform: translateY(0);
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: clamp(10px, 5vw, 40px);
	font-weight: 700;
}

.brand span{
    color: var(--green);
	margin-left: -5px;
}	

.avatar {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid var(--border);
}

.subtitle {
	color: var(--green);
	font-size: 0.95rem;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.nav a {
	color: var(--muted);
	transition: 0.2s;
}

.nav a.active {
	color: var(--green);
	font-weight: 600;
}

.nav a:hover {
	color: var(--green);
}

/* BOUTONS */

.btn {
	display: inline-block;
	background: var(--green);
	color: #fff !important;
	padding: 0.7rem 1rem;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	border: 1px solid var(--green);
}

.btn:hover {
	background: var(--green-dark);
	border-color: var(--green-dark);
}

.btn.secondary {
	background: transparent;
	color: var(--green) !important;
}

.btn.secondary:hover {
	background: rgba(76, 174, 79, 0.08);
}

/* HERO */

.hero{
	background: linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.65)),
	url('https://www.charbonneau.fr/fond.avif') center/cover no-repeat;
	padding:80px 20px;
	text-align:center;
	min-height:100vh;
	min-height:100svh;
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
	position: relative;
}

.hero-avatar {
	width: min(150px, 40vw);
	height: auto;
	border-radius: 50%;
	margin: 0 auto 1rem;
	border: 3px solid white;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero h2{
	font-size:42px;
	margin-bottom:0px;
	line-height:1;
}

.hero h2 span {
	color: var(--green);
}


.hero p{
	max-width:700px;
	margin:auto;
}


.hero-subtitle {
	color: var(--muted);
	margin-bottom: 1rem;
}

.hero-desc {
	color: var(--muted);
	margin-bottom: 1.5rem;
}

.hero-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.hero-contact{
	display:flex;
	flex-direction:column;
	align-items:center;
	margin-top:25px;
}

.main-mail{
	display:flex;
	align-items:center;
	gap:10px;
	background:var(--green);
	color:white;
	padding:12px 22px;
	border-radius:30px;
	text-decoration:none;
	font-weight:600;
	font-size:16px;
	transition:0.25s;
}

.main-mail i{
	font-size:18px;
}

.main-mail:hover{
	background:var(--green-dark);
	transform:translateY(-2px);
}

.hero-social{
	display:flex;
	justify-content:center;
	gap:18px;
	margin-top:15px;
}

.hero-social a{
	color:#333;
	font-size:18px;
	transition:0.2s;
	text-decoration:none;
}

.hero-social a:hover{
	color:var(--green);
	transform:translateY(-2px);
}

/* Flèche */

.scroll-down {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  color: var(--green);
  animation: bounce 2s infinite;
  text-decoration: none;
  z-index: 10;
}

.scroll-down:hover {
  color: var(--green-dark);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* SECTIONS */

.section {
	scroll-margin-top: 90px;
	padding: 4rem 0;
}

.section.alt {
	background: var(--light);
	border-top: 1px solid #efefef;
	border-bottom: 1px solid #efefef;
}

.section-intro {
	color: var(--muted);
	margin-bottom: 1.4rem;
}

.center {
	text-align: center;
}

.grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1rem;
}

.card img {
	border-radius: 12px;
	margin-bottom: 0.9rem;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.card h3,
.skill h3 {
	font-size: 1.1rem;
	margin-bottom: 0.65rem;
}

.card ul {
	padding-left: 1.1rem;
	margin-top: 0.5rem;
}

.card ul li {
	margin-bottom: 0.4rem;
}

.card a {
	text-decoration: none;
}

.card a:hover {
	text-decoration: underline;
}

.link {
	display: inline-block;
	margin-top: 0.8rem;
	color: var(--green);
	text-decoration: none;
	font-weight: 600;
}

/* SKILLS */

.skills-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 30px;
}

.skills-nav a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(76,174,79,0.08);
	border: 1px solid rgba(76,174,79,0.2);
	font-size: 14px;
	color: var(--text);
	text-decoration: none;
	transition: 0.2s;
}

.skills-nav a:hover {
	background: var(--green);
	color: white;
}

.skill i {
	color: var(--green);
	margin-right: 6px;
}

.skills {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.skill {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1rem;
}

.skill ul {
	padding-left: 1.1rem;
}

.detail {
	display: block;
	color: var(--muted);
	font-size: 0.9em;
	margin-top: 3px;
}

/* CONTACT */

.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 1rem;
}

.contact-links a {
	text-decoration: none;
	border: 1px solid rgba(76, 174, 79, 0.25);
	background: rgba(76, 174, 79, 0.05);
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
}

/* FOOTER */

.footer {
	padding: 2rem 0;
	text-align: center;
	color: var(--muted);
	font-size: 0.95rem;
}

/* MOBILE */

@media (max-width: 1118px) {
	
	.header-content {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.hero {
		height: auto;
		padding: 3rem 0;
	}
	
}

@media (max-width: 600px) {
	
	.nav {
		justify-content: center;
		gap: 10px;
	}
	
	.nav a {
		font-size: 14px;
	}
	
}

