.teriyaspc-titre{margin:0 0 14px;}
.teriyaspc-sep{margin:34px 0;border:0;border-top:1px solid rgba(0,0,0,.12);}
.teriyaspc-sec{border:1px solid rgba(0,0,0,.12);border-radius:16px;background:var(--teriyaspc-carte,#FFFDF9);margin:0 0 12px;overflow:hidden;}
.teriyaspc-sec>summary{list-style:none;cursor:pointer;padding:16px 18px;display:flex;align-items:center;gap:10px;font-weight:600;color:var(--teriyaspc-texte,#3F2F24);}
.teriyaspc-sec>summary::-webkit-details-marker{display:none;}
.teriyaspc-sec>summary::after{content:"\203A";font-size:22px;line-height:1;color:var(--teriyaspc-accent,#96604A);flex:none;display:inline-block;transition:transform .2s ease;}
.teriyaspc-sec[open]>summary::after{transform:rotate(90deg);}
.teriyaspc-sec[open]>summary{border-bottom:1px solid rgba(0,0,0,.1);}
.teriyaspc-sec-t{flex:1;}
.teriyaspc-sec-i{color:var(--teriyaspc-doux,#8A7A6D);font-weight:400;font-size:.86em;}
.teriyaspc-sec-c{padding:16px 18px 20px;}
.teriyaspc-sec-c>p:first-child{margin-top:0;}
.teriyaspc-doux{color:var(--teriyaspc-doux,#8A7A6D);font-size:.93em;}
.teriyaspc-groupe{margin:20px 0 8px;font-weight:600;color:var(--teriyaspc-accent,#96604A);font-size:.95em;}
.teriyaspc-case{display:block;margin-bottom:8px;}
.teriyaspc-liste{margin:0;padding-left:18px;}
.teriyaspc-liste li{margin-bottom:6px;}
.teriyaspc-sous-titre{margin:18px 0 4px;font-weight:600;color:var(--teriyaspc-texte,#3F2F24);}
.teriyaspc-etapes{list-style:none;margin:0;padding:0;}
.teriyaspc-etapes li{padding:5px 0 5px 26px;position:relative;color:var(--teriyaspc-doux,#8A7A6D);}
.teriyaspc-etapes li::before{position:absolute;left:0;top:5px;}
.teriyaspc-etapes li.faite{text-decoration:line-through;}
.teriyaspc-etapes li.faite::before{content:"\2713";color:var(--teriyaspc-accent,#96604A);}
.teriyaspc-etapes li.en-cours{font-weight:600;color:var(--teriyaspc-accent,#96604A);}
.teriyaspc-etapes li.en-cours::before{content:"\2192";}
.teriyaspc-etapes li.a-venir::before{content:"\2022";}
.teriyaspc-btn{display:inline-block;padding:12px 26px;border-radius:999px;background:var(--teriyaspc-accent,#96604A);color:#fff;border:0;text-decoration:none;font-weight:600;cursor:pointer;}
.teriyaspc-btn:hover{background:var(--teriyaspc-clair,#B98370);color:#fff;}
.teriyaspc-video{display:inline-block;padding:11px 20px;border-radius:999px;background:var(--teriyaspc-fond,#F4EFE7);color:var(--teriyaspc-accent,#96604A);text-decoration:none;font-weight:600;}
.teriyaspc-msg{margin-bottom:14px;}
.teriyaspc-ok{padding:12px 16px;background:var(--teriyaspc-fond,#F4EFE7);border-radius:12px;margin-bottom:14px;color:var(--teriyaspc-texte,#3F2F24);}
.teriyaspc-sec-c textarea,.teriyaspc-sec-c input[type=url],.teriyaspc-sec-c input[type=text]{width:100%;}
@media(max-width:600px){
.teriyaspc-sec>summary{padding:14px 15px;}
.teriyaspc-sec-c{padding:14px 15px 18px;}
}

/* --------------------------------------------------------------
   Champs de formulaire
   Volontairement neutres : la police et les couleurs sont heritees
   du theme actif. Seule la mise en boite est imposee, pour qu'aucun
   champ ne deborde de sa colonne, quel que soit le theme.
   -------------------------------------------------------------- */
.teriyaspc-sec-c input[type="file"],
.teriyaspc-sec-c input[type="text"],
.teriyaspc-sec-c input[type="url"],
.teriyaspc-sec-c input[type="email"],
.teriyaspc-sec-c input[type="tel"],
.teriyaspc-sec-c input[type="number"],
.teriyaspc-sec-c textarea,
.teriyaspc-sec-c select {
	/* Seule declaration en !important de la feuille : de rares themes
	   forcent box-sizing:content-box sur * et font alors deborder tout
	   champ en width:100%. C'est la propriete qui doit tenir. */
	box-sizing: border-box !important;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
}

.teriyaspc-sec-c input[type="file"] {
	min-height: 46px;
	padding: 7px 12px;
	border: 1px solid rgba(0, 0, 0, .18);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	overflow: hidden;
}

.teriyaspc-sec-c input[type="file"]::file-selector-button {
	margin: 0 12px 0 0;
	padding: 7px 15px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, .07);
	color: inherit;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.teriyaspc-sec-c input[type="file"]::-webkit-file-upload-button {
	margin: 0 12px 0 0;
	padding: 7px 15px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, .07);
	color: inherit;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.teriyaspc-sec-c input[type="file"]:hover::file-selector-button,
.teriyaspc-sec-c input[type="file"]:hover::-webkit-file-upload-button {
	background: rgba(0, 0, 0, .12);
}

/* --------------------------------------------------------------
   Robustesse thème
   Le plugin ignore dans quel thème il sera installé : colonne large
   ou étroite, classique ou FSE, clair ou sombre. Ces règles evitent
   tout debordement, quels que soient la largeur disponible et le
   contenu saisi par le client.
   -------------------------------------------------------------- */

/* La largeur annoncee inclut toujours bordures et marges internes,
   meme si le theme remet box-sizing a content-box. */
.teriyaspc-sec,
.teriyaspc-sec > summary,
.teriyaspc-sec-c,
.teriyaspc-ok,
.teriyaspc-titre,
.teriyaspc-msg {
	box-sizing: border-box;
	max-width: 100%;
}

/* Un lien colle par le client ou un nom de fichier tres long ne doit
   jamais elargir la page : il se coupe au lieu de pousser la colonne. */
.teriyaspc-sec-c,
.teriyaspc-liste li,
.teriyaspc-etapes li,
.teriyaspc-ok,
.teriyaspc-msg {
	overflow-wrap: anywhere;
}

/* Les titres de section ne se coupent qu'en dernier recours : un mot
   court comme « Documents » doit rester entier tant qu'il tient. */
.teriyaspc-sec-t {
	overflow-wrap: break-word;
	min-width: 0;
}

/* Boutons : ils se replient sur plusieurs lignes au lieu de deborder. */
.teriyaspc-btn,
.teriyaspc-video {
	box-sizing: border-box;
	max-width: 100%;
	overflow-wrap: anywhere;
	text-align: center;
}

/* Certains themes ajoutent leur propre fleche sur les blocs depliables. */
.teriyaspc-sec > summary::marker {
	content: "";
}

/* Images eventuellement presentes dans le contenu. */
.teriyaspc-sec-c img {
	max-width: 100%;
	height: auto;
}
/* Mode sans WooCommerce : page avec le shortcode [teriya_espace_client] */
.teriyaspc-espace,.teriyaspc-connexion{max-width:760px;margin:0 auto;}
.teriyaspc-connexion{padding:24px;border:1px solid rgba(0,0,0,.12);border-radius:16px;background:var(--teriyaspc-carte,#FFFDF9);max-width:440px;}
.teriyaspc-connexion label{display:block;margin-bottom:6px;font-weight:600;color:var(--teriyaspc-texte,#3F2F24);}
.teriyaspc-connexion input[type=text],.teriyaspc-connexion input[type=password]{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid rgba(0,0,0,.2);border-radius:10px;}
.teriyaspc-connexion .login-remember label{display:inline;font-weight:400;}
.teriyaspc-connexion input[type=submit]{padding:12px 26px;border-radius:999px;background:var(--teriyaspc-accent,#96604A);color:#fff;border:0;font-weight:600;cursor:pointer;}
.teriyaspc-connexion input[type=submit]:hover{background:var(--teriyaspc-clair,#B98370);}
