/* ISND Primaire — feuille de style principale */

:root {
	--isnd-navy: #141b2e;
	--isnd-cream: #fbf3e3;
	--isnd-yellow: #f6ce73;
	--isnd-mint: #63cda0;
	--isnd-mint-dark: #4bb587;
	--isnd-text: #1b2438;
	--isnd-white: #ffffff;
	--isnd-radius: 18px;
	--isnd-max-width: 1180px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--isnd-cream);
	color: var(--isnd-text);
	font-family: "Poppins", "Segoe UI", Arial, sans-serif;
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.isnd-container {
	width: 100%;
	max-width: var(--isnd-max-width);
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	flex-shrink: 0;
}

/* ---------- En-tête ---------- */

.isnd-topbar {
	background: var(--isnd-navy);
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	flex-shrink: 0;
}

.isnd-topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 24px;
	max-width: var(--isnd-max-width);
	margin: 0 auto;
	flex-wrap: wrap;
	gap: 12px;
}

.isnd-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.isnd-nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--isnd-white);
	border-radius: 1px;
}

.isnd-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 860px) {
	.isnd-nav-toggle {
		display: flex;
	}

	.isnd-nav-wrap {
		display: none;
		width: 100%;
	}

	.isnd-nav-wrap--open {
		display: block;
	}

	.isnd-nav {
		flex-direction: column;
		gap: 2px;
		padding: 8px 0 4px;
	}

	.isnd-nav a {
		display: block;
		padding: 10px 4px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}
}

.isnd-nav a {
	display: inline-block;
	background: none;
	color: var(--isnd-white);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.2px;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.isnd-nav a:hover {
	color: var(--isnd-mint);
}

.isnd-nav .current-menu-item a,
.isnd-nav .current_page_item a {
	color: var(--isnd-mint);
	border-bottom-color: var(--isnd-mint);
}

.isnd-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}

.isnd-logo img {
	width: 44px;
	height: 44px;
	display: block;
}

.isnd-hero {
	background: var(--isnd-navy);
	color: var(--isnd-white);
	padding: 20px 24px;
	width: 100%;
	flex-shrink: 0;
	box-sizing: border-box;
}

.isnd-hero h1 {
	text-align: center;
	max-width: var(--isnd-max-width);
	margin: 0 auto;
	padding: 0 24px;
	font-size: clamp(1.3rem, 2.4vw, 1.9rem);
	font-weight: 700;
}

.isnd-hero--accueil {
	padding: 20px 24px;
}

.isnd-hero--accueil h1 {
	text-align: center;
	font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}

.isnd-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--isnd-radius);
	border: 2px solid var(--isnd-mint);
}

.isnd-photo--entree-seule {
	width: 100%;
	max-width: 560px;
	height: 450px;
	margin: 14px auto 0;
}

.isnd-accueil-layout {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 48px;
	align-items: start;
	margin: 0 0 16px;
}

.isnd-accueil-layout__actus {
	margin-top: 14px;
}

.isnd-actus-scroll {
	height: 450px;
	overflow-y: auto;
	padding-right: 8px;
}

@media (max-width: 900px) {
	.isnd-accueil-layout {
		grid-template-columns: 1fr;
	}

	.isnd-photo--entree-seule {
		height: 320px;
	}
}

@media (max-width: 480px) {
	.isnd-photo--entree-seule {
		height: 220px;
	}
}

/* ---------- Bandeaux de section ---------- */

.isnd-banner {
	background: var(--isnd-yellow);
	color: var(--isnd-navy);
	border-radius: var(--isnd-radius);
	padding: 12px 32px;
	font-weight: 800;
	font-size: 1.4rem;
	text-transform: uppercase;
	margin: 32px 0;
}

.isnd-banner--center {
	text-align: center;
}

.isnd-banner--compact {
	padding: 5px 32px;
	margin-top: 16px;
	margin-bottom: 10px;
}

.isnd-banner--split {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 20px 0 4px;
}

.isnd-section-heading {
	text-align: center;
	color: var(--isnd-navy);
	font-size: 1.3rem;
	font-weight: 800;
	margin: 40px 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--isnd-mint);
}

/* ---------- Cartes ---------- */

.isnd-card {
	background: var(--isnd-white);
	border: 2px solid var(--isnd-mint);
	border-radius: var(--isnd-radius);
	padding: 24px;
}

.isnd-card--soft {
	background: #fbf3e3;
	border: none;
}

.isnd-card--full {
	width: 100%;
	margin: 16px 0;
}

.isnd-card--icon {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 12px 16px;
}

.isnd-card--warning {
	padding: 12px 16px;
}

.isnd-card__icon--warning {
	background: #fdecd2;
	color: #c98a1f;
}

.isnd-card--icon h3 {
	margin-top: 0;
	margin-bottom: 8px;
}

.isnd-card--icon p {
	margin: 0 0 8px;
}

.isnd-card--icon p:last-child {
	margin-bottom: 0;
}

.isnd-card--icon ul {
	margin: 0;
	padding-left: 18px;
}

.isnd-card--icon li {
	margin-bottom: 4px;
}

.isnd-card__icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #e7f6ee;
	color: var(--isnd-mint-dark);
	display: flex;
	align-items: center;
	justify-content: center;
}

.isnd-card__icon svg {
	width: 20px;
	height: 20px;
}

.isnd-grid {
	display: grid;
	gap: 24px;
	margin: 24px 0;
}

.isnd-grid--compact {
	gap: 16px;
	margin: 16px 0;
}

.isnd-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.isnd-grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.isnd-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.isnd-photo-placeholder {
	aspect-ratio: 4 / 3;
	border-radius: var(--isnd-radius);
	border: 2px solid var(--isnd-mint);
	background: linear-gradient(135deg, #fdf8ed, #f3e6c8);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9c8a63;
	font-size: 0.85rem;
	text-align: center;
	padding: 12px;
}

/* ---------- Boutons ---------- */

.isnd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--isnd-mint);
	color: var(--isnd-navy);
	font-weight: 700;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.15s ease;
}

.isnd-btn:hover {
	background: var(--isnd-mint-dark);
}

.isnd-btn--small {
	padding: 8px 16px;
	font-size: 0.82rem;
	border-radius: 999px;
}

/* ---------- Actualités : abonnement ---------- */

.isnd-dialog {
	border: 2px solid var(--isnd-mint);
	border-radius: var(--isnd-radius);
	padding: 32px;
	max-width: 420px;
	width: calc(100% - 48px);
	color: var(--isnd-text);
	background: var(--isnd-white);
}

.isnd-dialog::backdrop {
	background: rgba(20, 27, 46, 0.55);
}

.isnd-dialog__close-form {
	display: flex;
	justify-content: flex-end;
	margin: -12px -12px 4px 0;
}

.isnd-dialog__close {
	background: none;
	border: none;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: var(--isnd-text);
	padding: 4px 8px;
}

.isnd-dialog h3 {
	margin-top: 0;
	color: var(--isnd-navy);
}

.isnd-subscribe-form {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.isnd-subscribe-form input[type="email"] {
	flex: 1;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid #d8cba3;
	font-size: 0.95rem;
}

.isnd-form-message {
	font-weight: 600;
	padding: 10px 14px;
	border-radius: 10px;
}

.isnd-form-message--success {
	background: #e3f5ec;
	color: #2f7a56;
}

.isnd-form-message--error {
	background: #fbe5e1;
	color: #b3402c;
}

/* ---------- Onglets (Notre école / Notre équipe / Contact) ---------- */

.isnd-tabs {
	margin: 32px 0;
}

.isnd-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	border-bottom: 2px solid #e7ddc4;
	margin-bottom: 24px;
}

.isnd-tabs__content {
	min-width: 0;
}

.isnd-tabs__nav button {
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	padding: 12px 2px;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--isnd-navy);
	cursor: pointer;
	text-align: center;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.isnd-tabs__nav button:hover {
	color: var(--isnd-mint-dark);
}

.isnd-tabs__nav button[aria-selected="true"] {
	color: var(--isnd-mint-dark);
	border-bottom-color: var(--isnd-mint);
}

.isnd-tabs__panel {
	background: var(--isnd-white);
	border: 2px solid var(--isnd-mint);
	border-radius: var(--isnd-radius);
	padding: 28px;
	height: 450px;
	overflow-y: auto;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.isnd-tabs__panel[hidden] {
	display: none;
}

.isnd-tabs__panel h2 {
	margin-top: 0;
	color: var(--isnd-navy);
}

.isnd-tabs__panel--centered {
	display: flex;
	align-items: center;
}

.isnd-tabs__panel--centered > .isnd-contact-block {
	width: 100%;
}

.isnd-contact-block {
	display: flex;
	align-items: center;
	gap: 20px;
}

.isnd-contact-block h2 {
	margin-bottom: 6px;
}

.isnd-contact-block__photo {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--isnd-mint);
	background: var(--isnd-cream);
}

.isnd-contact-block__photo--logo {
	object-fit: contain;
	padding: 8px;
}

@media (max-width: 500px) {
	.isnd-contact-block {
		flex-direction: column;
		text-align: center;
	}
}

.isnd-histoire {
	display: flex;
	gap: 24px;
	align-items: center;
}

.isnd-histoire__photo {
	width: 400px;
	flex-shrink: 0;
	border-radius: 12px;
	border: 2px solid var(--isnd-mint);
}

.isnd-histoire__text {
	min-width: 0;
}

@media (max-width: 800px) {
	.isnd-histoire {
		flex-direction: column;
	}

	.isnd-histoire__photo {
		width: 60%;
	}
}

/* ---------- Nos partenaires ---------- */

.isnd-partner-intro {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 20px;
}

.isnd-partner-intro__photo {
	width: 140px;
	height: 140px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 2px solid var(--isnd-mint);
	object-fit: cover;
}

.isnd-partner-intro__photo--logo {
	border: 2px solid var(--isnd-mint);
	background: var(--isnd-cream);
	object-fit: contain;
	padding: 16px;
}

.isnd-partner-intro p {
	margin: 0;
}

.isnd-details {
	margin: 16px 0;
}

.isnd-details summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--isnd-mint-dark);
}

.isnd-partner-sub-card {
	background: var(--isnd-cream);
	border: 2px solid #e7ddc4;
	border-radius: var(--isnd-radius);
	padding: 20px;
	margin: 20px 0;
}

.isnd-partner-sub-card__header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 4px;
}

.isnd-partner-sub-card__header h3 {
	margin: 0;
}

.isnd-partner-sub-card__logo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--isnd-mint);
	flex-shrink: 0;
}

.isnd-partner-banner {
	width: 100%;
	max-height: 160px;
	object-fit: cover;
	border-radius: 8px;
	margin: 12px 0;
}

/* ---------- Nos projets ---------- */

.isnd-project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}

.isnd-project-grid--compact {
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

.isnd-project-tile {
	display: block;
	background: var(--isnd-cream);
	border: 1px solid #e7ddc4;
	border-radius: 12px;
	padding: 18px 12px;
	text-align: center;
	font-weight: 700;
	color: var(--isnd-navy);
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.isnd-project-tile:hover {
	border-color: var(--isnd-mint);
	background: var(--isnd-white);
}

.isnd-mini-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 24px 0 4px;
}

.isnd-mini-heading h3 {
	margin: 0;
}

.isnd-mini-heading .isnd-card__icon {
	flex-shrink: 0;
}

.isnd-contact-with-map {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	align-items: flex-start;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

.isnd-contact-with-map__text {
	flex: 1 1 260px;
	min-width: 0;
}

.isnd-map-embed {
	flex: 0 0 auto;
	margin-top: 14px;
	border-radius: 12px;
	overflow: hidden;
	border: 2px solid var(--isnd-mint);
	max-width: 400px;
	width: 100%;
}

.isnd-map-embed iframe {
	display: block;
	width: 100%;
	height: 220px;
}

@media (min-width: 700px) {
	.isnd-map-embed {
		flex: 0 0 320px;
		margin-top: 0;
		margin-left: auto;
	}
}

@media (max-width: 600px) {
	.isnd-partner-intro {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- Règlement et projet - Boutons ---------- */

.isnd-btn-container {
    display: flex;       /* Active le mode Flexbox */
    gap: 20px;           /* Crée un espace uniforme entre les boutons */
    flex-wrap: wrap;     /* Permet aux boutons de passer à la ligne sur mobile */
    margin-top: 50px;    /* Ajoute un peu d'espace au-dessus des boutons */
	justify-content: center;
}


/* ---------- Tableaux horaire ---------- */

.isnd-schedule {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin: 16px 0 32px;
}

.isnd-schedule caption {
	text-align: left;
	font-weight: 700;
	margin-bottom: 8px;
}

.isnd-schedule th,
.isnd-schedule td {
	text-align: left;
	padding: 10px 14px;
	border-bottom: 1px solid #e7ddc4;
}

.isnd-schedule th {
	background: var(--isnd-yellow);
	color: var(--isnd-navy);
}

/* ---------- Nous Rejoindre ---------- */

/* Conteneur principal */
.isnd-rejoindre-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* La colonne de gauche est légèrement plus large que celle de droite */
    gap: 40px;                        /* Espace entre la colonne de texte et la carte */
    align-items: start;                /* Aligne le haut des deux colonnes */
    margin-top: 20px;
}

/* Améliorations de la colonne de la carte */
.isnd-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;                  /* Optionnel : Garde la carte visible lors du défilement */
    top: 20px;
}

/* Règle Responsive : Sur les écrans de moins de 768px (smartphones) */
@media (max-width: 768px) {
    .isnd-rejoindre-layout {
        grid-template-columns: 1fr;    /* Les colonnes s'empilent sur une seule colonne */
        gap: 20px;
    }
    
    .isnd-map-container {
        position: static;              /* Désactive le sticky sur mobile */
    }
}

/* ---------- Équipe ---------- */

.isnd-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

@media (min-width: 720px) {
	.isnd-team-grid--3col {
		grid-template-columns: repeat(3, 1fr);
	}
}

.isnd-team-card {
	background: var(--isnd-cream);
	border: 1px solid #e7ddc4;
	border-radius: 12px;
	padding: 16px;
}

.isnd-team-card h3 {
	margin: 0 0 10px;
	font-size: 0.95rem;
	color: var(--isnd-navy);
	border-bottom: 2px solid var(--isnd-mint);
	padding-bottom: 8px;
}

.isnd-team-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.isnd-team-card li {
	font-size: 0.88rem;
	padding: 3px 0;
}

/* ---------- Contenu éditable (pages modifiables) ---------- */

.isnd-editable-content {
	background: var(--isnd-white);
	border: 2px dashed var(--isnd-mint);
	border-radius: var(--isnd-radius);
	padding: 28px;
	margin: 24px 0;
}

.isnd-editable-content img {
	border-radius: 12px;
}

/* ---------- Liste Actualités ---------- */

.isnd-post-card {
	background: var(--isnd-white);
	border: 2px solid var(--isnd-mint);
	border-radius: var(--isnd-radius);
	padding: 24px;
	padding-bottom : 10px;
	margin-bottom: 10px;
}

.isnd-post-card__title {
	font-size: 1.1rem;
	margin: 0 0 6px;
}

.isnd-post-card__title a {
	color: var(--isnd-navy);
	text-decoration: none;
}

.isnd-post-card__title a:hover {
	text-decoration: underline;
}

.isnd-post-card__date {
	display: block;
	color: #7c7563;
	font-size: 0.8rem;
	margin-bottom: 8px;
}

.isnd-post-card__excerpt {
	font-size: 0.92rem;
}

/* ---------- Pied de page ---------- */

.isnd-footer {
	background: var(--isnd-navy);
	color: var(--isnd-white);
	padding: 20px 24px;
	margin-top: auto;
	width: 100%;
	flex-shrink: 0;
	box-sizing: border-box;
}

.isnd-footer__inner {
	max-width: var(--isnd-max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
}

.isnd-footer__brand {
	display: flex;
	align-items: center;
	gap: 24px;
}

.isnd-footer__credit {
	display: flex;
	align-items: center;
	gap: 14px;
	text-align: left;
	font-size: 0.72rem;
	opacity: 0.85;
}
