/*
	Retouches modernes par-dessus Ethereal (main.css).
	Le concept, la structure et le défilement horizontal restent ceux d'origine :
	ce fichier ne change que la typographie, les couleurs et quelques détails.
*/

:root {
	--teal: #0f9b8e;
	--teal-dark: #0b6f66;
	--ink: #0f1c20;
	--ink-soft: #3b4a4f;
}

/* ---------- Typographie ---------- */
body, input, select, textarea {
	font-family: "Inter", "Source Sans Pro", Helvetica, sans-serif;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.82);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Inter", Helvetica, sans-serif;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: #fff;
}

h1 { font-size: 3.25rem; line-height: 1.1; }
h2 { font-size: 1.9rem; }

h1.major:after, h2.major:after, h3.major:after {
	width: 2.5rem;
	height: 2px;
	background-color: rgba(255, 255, 255, 0.55);
}

p { line-height: 1.7; }

/* Annule la règle globale i { font-size: 50px } de main.css */
i { font-size: inherit; font-style: normal; }

/* ---------- Panneaux turquoise ---------- */
.panel.color1 {
	background-image: linear-gradient(150deg, #12a594 0%, var(--teal) 45%, var(--teal-dark) 100%);
	background-color: var(--teal);
}

.panel.color1 + .panel.color1 {
	box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.1);
}

.panel.color1 .intro p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.95rem;
}

/* ---------- Grille de compétences (même esprit que les grid-icons d'origine) ---------- */
ul.skill-grid {
	display: grid;
	grid-template-columns: repeat(3, 5.25rem);
	gap: 1.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.skill-grid.cols-4 {
	grid-template-columns: repeat(4, 5.25rem);
}

ul.skill-grid li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	padding: 0;
	margin: 0;
}

ul.skill-grid i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	font-size: 1.85rem;
	color: #fff;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

ul.skill-grid li:hover i {
	background-color: rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

ul.skill-grid span {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.75);
	white-space: nowrap;
}

/* ---------- Panneaux blancs (certifications, partenaires) ---------- */
.white {
	background-color: #f6f7f7 !important;
	color: var(--ink-soft) !important;
}

.white h2 {
	color: var(--ink) !important;
}

.white h2.major:after {
	background-color: var(--teal);
}

.panel.white + .panel.white {
	box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.06);
}

/* Les images ont un fond blanc : on les fond dans le gris clair du panneau */
.panel.white img {
	mix-blend-mode: multiply;
}

/* ---------- Contact ---------- */
.panel.color4-alt {
	background-image: none;
	background-color: #13262a;
}

input[type="text"], input[type="email"], textarea {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
	border-color: var(--teal);
	box-shadow: none;
	background-color: rgba(255, 255, 255, 0.08);
}

label {
	font-weight: 500;
	font-size: 0.85rem;
	letter-spacing: 0;
	text-transform: none;
}

form input[type="submit"].button.primary {
	background-color: var(--teal);
	color: #fff !important;
	font-size: 0.9rem;
	border-radius: 8px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

form input[type="submit"].button.primary:hover {
	background-color: #12b3a4;
}

ul.contact-icons > li:before,
ul.contact-icons.color1 > li:before {
	background-color: var(--teal);
	color: #fff;
}

ul.contact-icons > li a {
	color: rgba(255, 255, 255, 0.85);
}

ul.contact-icons > li a:hover {
	color: #fff;
}

.inner.columns.divided > * {
	border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ---------- Divers ---------- */
a:hover { color: #9ff0e4; }

.copyright {
	opacity: 0.55;
	font-size: 0.8rem;
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 736px) {
	h1 { font-size: 2.4rem; }
	h2 { font-size: 1.6rem; }

	ul.skill-grid,
	ul.skill-grid.cols-4 {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem 0.75rem;
		justify-items: center;
	}
}

/* ---------- Menu indicateur ---------- */
#topnav {
	position: fixed;
	top: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10200;
	display: flex;
	gap: 0.15rem;
	padding: 0.3rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(15, 28, 32, 0.08);
	box-shadow: 0 6px 24px -10px rgba(15, 28, 32, 0.35);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	opacity: 0;
	transition: opacity 0.6s ease 0.4s;
}

#topnav.ready { opacity: 1; }

#topnav a {
	position: relative;
	z-index: 1;
	padding: 0.45rem 0.95rem;
	border: 0;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--ink-soft);
	white-space: nowrap;
	transition: color 0.3s ease;
}

#topnav a:hover { color: var(--ink); }
#topnav a.active { color: #fff; }

#topnav .indicator {
	position: absolute;
	top: 0.3rem;
	bottom: 0.3rem;
	left: 0;
	width: 0;
	border-radius: 999px;
	background: var(--teal);
	transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
}

/* ---------- Carte principale : coins arrondis, ombre plus douce ---------- */
#wrapper {
	border-radius: 16px;
	box-shadow: 0 2.5rem 4rem -1.5rem rgba(15, 40, 45, 0.45);
}

#wrapper > .panel:first-of-type { border-radius: 16px 0 0 16px; overflow: hidden; }
#wrapper > #contact { border-radius: 0 16px 16px 0; }

/* ---------- Hero ---------- */
#home h1.major { font-size: 3.4rem; }
#home .content p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); }

@media screen and (max-width: 736px) {
	#topnav {
		top: 0.75rem;
		max-width: calc(100% - 1.5rem);
		overflow-x: auto;
		scrollbar-width: none;
	}
	#topnav::-webkit-scrollbar { display: none; }
	#topnav a { padding: 0.4rem 0.6rem; font-size: 0.72rem; }
	#topnav a[href="#home"] { display: none; }

	#page-wrapper { padding-top: 4.25rem; }
	#wrapper > .panel:first-of-type { border-radius: 16px 16px 0 0; }
	#wrapper > #contact { border-radius: 0 0 16px 16px; }
	#home h1.major { font-size: 2.4rem; }
}

/* ---------- Certifications ---------- */
.white .intro p {
	color: var(--ink-soft);
	font-size: 0.95rem;
}

ul.cert-list {
	display: grid;
	grid-template-columns: repeat(3, 15.5rem);
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.cert-list li {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0;
	padding: 0.8rem 0.9rem;
	background: #fff;
	border: 1px solid rgba(15, 28, 32, 0.08);
	border-radius: 10px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

ul.cert-list li:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -12px rgba(15, 28, 32, 0.35);
}

ul.cert-list .badge {
	flex: 0 0 4.25rem;
	height: 2.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

ul.cert-list .badge img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: normal;
}

/* Logos seuls (pas de badge officiel) : posés sur une pastille neutre */
ul.cert-list .badge.logo {
	background: #f1f4f4;
	border-radius: 8px;
	padding: 0.5rem;
}

ul.cert-list .text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

ul.cert-list .issuer {
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7a80;
}

ul.cert-list strong {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.01em;
	line-height: 1.3;
}

ul.cert-list .detail {
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--ink-soft);
}

@media screen and (max-width: 736px) {
	ul.cert-list { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
	ul.cert-list li { padding: 0.8rem 0.9rem; }
}

@media screen and (max-width: 400px) {
	ul.cert-list { grid-template-columns: 1fr; }
}
